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
version: '2.2.3' | |
services: | |
redis-master: | |
container_name: "redis-master" | |
image: redis | |
ports: | |
- "6379:6379" | |
command: "redis-server /etc/redis.conf" | |
volumes: | |
- "./data/master:/data/" |
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
['maşallah', | |
'maşallah', | |
'maşallah', | |
'maşallah', | |
'maşallah', | |
'maşallah', | |
'maşallah', | |
'maşallah', | |
'maşallah', | |
'maşallah', |
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
maşallah | |
maşallah | |
maşallah | |
maşallah | |
maşallah | |
maşallah | |
maşallah | |
maşallah | |
maşallah | |
maşallah |
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
static Dictionary<ReportType, Action> dictReports = new Dictionary<ReportType, Action>(); | |
static void Main(string[] args) | |
{ | |
Reporter reporter = new Reporter(); | |
dictReports.Add(ReportType.Daily, new Action(reporter.GetDailyReport)); | |
dictReports.Add(ReportType.Weekly, new Action(reporter.GetWeeklyReport)); | |
dictReports.Add(ReportType.Monthly, new Action(reporter.GetMonthlyReport)); | |
dictReports.Add(ReportType.Annual, new Action(reporter.GetAnnualReport)); | |
Stopwatch stopwatch = new Stopwatch(); |
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
using System; | |
using System.Collections.Generic; | |
namespace DictionaryTraining | |
{ | |
public class Program | |
{ | |
static Dictionary<ReportType, Func<int, string>> dictReports = new Dictionary<ReportType, Func<int, string>>(); | |
static void Main(string[] args) | |
{ |
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
using System; | |
using System.Collections.Generic; | |
namespace DictionaryTraining | |
{ | |
public class Program | |
{ | |
static Dictionary<ReportType, Action> dictReports = new Dictionary<ReportType, Action>(); | |
static void Main(string[] args) | |
{ |
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
using System; | |
using System.Collections.Generic; | |
namespace DictionaryTraining | |
{ | |
public class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Reporter reporter = new Reporter(); |
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
static void Main(string[] args) | |
{ | |
Dictionary<string, Action> dict = new Dictionary<string, Action>(); | |
dict.Add("foo", bar); | |
dict["foo"].Invoke(); | |
Console.WriteLine("World"); | |
Console.ReadLine(); | |
} |
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
import { Component, OnInit, NgZone } from '@angular/core'; | |
import { Router, ActivatedRoute } from '@angular/router'; | |
import { FormBuilder, FormGroup, Validators } from '@angular/forms'; | |
import { first } from 'rxjs/operators'; | |
import { AuthenticationService } from '../../services/authentication.service'; | |
import { AlertService } from '../../services/alert.service'; | |
import { CookieService } from 'ngx-cookie-service'; | |
@Component({ |
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
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |
import { LoginComponent } from './login.component'; | |
describe('LoginComponent', () => { | |
let component: LoginComponent; | |
let fixture: ComponentFixture<LoginComponent>; | |
beforeEach(() => { | |
TestBed.configureTestingModule({ |
NewerOlder