Skip to content

Instantly share code, notes, and snippets.

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/"
['maşallah',
'maşallah',
'maşallah',
'maşallah',
'maşallah',
'maşallah',
'maşallah',
'maşallah',
'maşallah',
'maşallah',
maşallah
maşallah
maşallah
maşallah
maşallah
maşallah
maşallah
maşallah
maşallah
maşallah
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();
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)
{
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)
{
using System;
using System.Collections.Generic;
namespace DictionaryTraining
{
public class Program
{
static void Main(string[] args)
{
Reporter reporter = new Reporter();
@mhkoca
mhkoca / dictionary1.cs
Last active September 30, 2019 10:58
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();
}
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({
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({