This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Remember to eat your food while watching Netflix | |
// @namespace https://www.tarikguney.com | |
// @version 0.1 | |
// @description Kids watching cartoons on Netflix often forget to eat and chew their food, which drives parents crazy. You need to sit down with them and pause the video and remind them to eat their food. This script will automate that. | |
// @author Tarik Guney | |
// @match https://www.netflix.com/watch/* | |
// @icon https://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Netflix_icon.svg/1200px-Netflix_icon.svg.png | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program { | |
static void Main(){ | |
Canta paraDoluCanta = new Canta(); | |
var zengin = new Yazilimci(paraDoluCanta) { Isim="Tosun", Yas=21 } | |
// Zengin birisi olarak, farkli ozelliklerimi farkli siniflar ile temsil ediyorum. | |
// Mesela para sayma ozelligim: ParaSayar, saldiri ozelligim: HizliVeOfkeli, vs. | |
// GetIterator() genelde standard bir isim. Onun icin kullandim. Geriye Iterator ustipinden ParaSayar tipini gonderiyor. | |
ParaSaymaIterator paraSayanOzelligim = zengin.GetIterator(); | |
double toplamPara = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.login-form-flex { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
height: 100%; | |
} | |
.button-flex-container { | |
display: flex; | |
width: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AccountChecker{ | |
public bool Exists(Account account){ | |
//.... | |
} | |
public bool ExistsInAmazonWebServices(Account account){ | |
//.... | |
} | |
public bool ExistsInAzure(Account account){ | |
//.... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Account{ | |
private ILogin _loginInfo; | |
private IProfile _profileInfo; | |
public Account(IProfile profileInfo, ILogin loginInfo){ | |
_loginInfo = loginInfo; | |
_profileInfo = profileInfo; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Account { | |
private Profile _profileInfo; | |
private Login _loginInfo; | |
public Account(Profile profileInfo, Login loginInfo){ | |
_profile = profileInfo; | |
_loginInfo = loginInfo; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"os" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AccountCreatorTest{ | |
private IAccountChecker _accountCheckerMock; | |
private IAccountRepository _accountRepositoryMock; | |
[TestInitialize] | |
public void Initialize(){ | |
_accountCheckerMock = new AccountCheckerMock(); | |
_accountRepositoryMock = new AccountRepositoryMock(); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AccountCreator{ | |
// Interface'ler tanımlıyoruz. Dolayısıyla kendi sınıflarımızı rahatlıkla kullanabiliriz. | |
private IAccountChecker _accountChecker; | |
private IAccountRepository _accountRepository; | |
// Dependency'lerimizi constructor method vasıtasıyla enjekte ediyoruz. | |
public AccountCreator(IAccountChecker accountChecker, IAccountRepository accountRepository){ | |
_accountChecker = accountChecker; | |
_accountRepository = new accountRepository; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WarriorModule : NinjectModule | |
{ | |
public override void Load() | |
{ | |
this.Bind<IWeapon>().To<Sword>(); | |
} | |
} |
NewerOlder