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
| export interface Action<T> { | |
| type: string | |
| payload: T | |
| } | |
| interface ActionCreator<T> { | |
| type: string | |
| (payload: T): Action<T> | |
| } |
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
| <div ng-app="videoApp" ng-controller="VideoController"> | |
| <table> | |
| <thead> | |
| <th>Title</th> | |
| <th>Length</th> | |
| <th></th> | |
| </thead> | |
| <tbody> | |
| <tr data-id="{{video.Id}}" ng-repeat="video in videos"> |
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
| @echo off | |
| setlocal EnableExtensions | |
| set tfuser=glombard | |
| set tflogin=/login:DOMAIN\%tfuser%,password | |
| set tfworkspace=TFSWorkspace | |
| set tfdir=C:\temp\MyWorkspace | |
| set tfsource=$/PROJ/Source | |
| set tfurl=http://127.0.0.1:8080/tfs/TEAM/ |
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
| @echo off | |
| setlocal EnableExtensions | |
| set tfuser=glombard | |
| set tflogin=/login:DOMAIN\%tfuser%,password | |
| set tfworkspace=TFSWorkspace | |
| set tfdir=C:\temp\MyWorkspace | |
| set tfsource=$/PROJ/Source | |
| set tfurl=http://127.0.0.1:8080/tfs/TEAM/ |
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
| [Test] | |
| public void TestDynamic() { | |
| dynamic employee = new ExpandoObject(); | |
| employee.Name = "Nothing"; | |
| ((INotifyPropertyChanged)employee).PropertyChanged += | |
| new PropertyChangedEventHandler(HandlePropertyChanges); | |
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; | |
| using System.ComponentModel; | |
| using System.Data; | |
| using System.Drawing; | |
| using System.Text; | |
| using System.Windows.Forms; | |
| // Add the CertEnroll namespace | |
| using CERTENROLLLib; |
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
| AppDomain.CurrentDomain.AssemblyResolve += (sender, args) => { | |
| String resourceName = "AssemblyLoadingAndReflection." + | |
| new AssemblyName(args.Name).Name + ".dll"; | |
| using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName)) { | |
| Byte[] assemblyData = new Byte[stream.Length]; |
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 interface IUnitOfWork | |
| { | |
| void SaveChanges(); | |
| IRepository CustomerRepository { get; } | |
| IRepository ProductRepository { get; } | |
| IRepository OrderRepository { get; } | |
| } | |
| public OrderController(IUnitOfWork unitOfWork ) | |
| { |
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
| #!/bin/bash | |
| # from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/ | |
| # and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server | |
| ############################################### | |
| # To use: | |
| # wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh | |
| # chmod 777 install-redis.sh | |
| # ./install-redis.sh | |
| ############################################### | |
| echo "*****************************************" |
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
| var HTTPS = require('https'); | |
| var QueryString = require('querystring'); | |
| /** | |
| * Facebook API Wrapper | |
| * @constructor | |
| * @param {Object} info Info about a Facebook application | |
| */ | |
| var Client = function (info) { | |
| if (!info.KEY || !info.SECRET || !info.ID) { |