brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| # vi: ft=dosini | |
| [user] | |
| name = Pavan Kumar Sunkara | |
| email = [email protected] | |
| username = pksunkara | |
| [core] | |
| editor = nvim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| pager = delta | |
| [column] |
| class Observer | |
| bind : (event, fn) -> | |
| this._events ||= {} | |
| this._events[event] ||= [] | |
| this._events[event].push(fn) | |
| unbind: (event, fn) -> | |
| @_events ||= {} |
| #r "System.Xml.Linq" | |
| open System | |
| open System.IO | |
| open System.Xml.Linq | |
| let script = seq { | |
| //TODO: this currently loads fsproj's in alphabeticall order, we should instead | |
| //build the dependencies graph of the fsproj's and load them in topological sort order |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| var isThrottled = false, | |
| throttleDuration = 24; // ms | |
| function thingToThrottle() { | |
| if (isThrottled) { return; } | |
| isThrottled = true; | |
| setTimeout(function () { isThrottled = false; }, throttleDuration); | |
| // do your work here | |
| } |
The Scope class regulates lexical scoping within CoffeeScript. As you
generate code, you create a tree of scopes in the same shape as the nested
function bodies. Each scope knows about the variables declared within it,
and has a reference to its parent enclosing scope. In this way, we know which
variables are new and need to be declared with var, and which are shared
with the outside.
Import the helpers we plan to use.
{extend, last} = require './helpers'
| public class LRUObservableCollection<T> : ObservableCollection<T> | |
| { | |
| private readonly int _length; | |
| public LRUObservableCollection(int length) | |
| { | |
| _length = length; | |
| } | |
| protected override void InsertItem(int index, T item) |
| open Simple.Data | |
| open Xunit | |
| open Swensen.Unquote | |
| open ImpromptuInterface.FSharp | |
| let adapter = new InMemoryAdapter() | |
| adapter.SetKeyColumn("Test", "Id"); | |
| adapter.SetKeyColumn("Test", "Name"); | |
| Database.UseMockAdapter(adapter); |
| public static void AddGreeter() | |
| { | |
| AddInmemory("Greeter", @"using System; | |
| class Greeter | |
| { | |
| public string Greet() | |
| { | |
| return ""Hello World""; | |
| } |
| using System; | |
| using System.Linq; | |
| using Raven.Abstractions.Data; | |
| using Raven.Abstractions.Logging; | |
| using Raven.Bundles.Replication.Plugins; | |
| using Raven.Json.Linq; | |
| namespace RavenConflictResolverPlugin | |
| { | |
| public class LastInWinsReplicationConflictResolver |