Skip to content

Instantly share code, notes, and snippets.

View d3banjan's full-sized avatar

Debanjan d3banjan

View GitHub Profile
@d3banjan
d3banjan / yaml_OrderedDict.py
Created October 22, 2018 11:02 — forked from oglops/yaml_OrderedDict.py
write to and load from yaml file with OrderedDict
#!/usr/bin/env python
try:
# for python newer than 2.7
from collections import OrderedDict
except ImportError:
# use backport from pypi
from ordereddict import OrderedDict
import yaml
module ConstrainedTypes =
open System
// General hints on defining types with constraints or invariants
//
// Just as in C#, use a private constructor
// and expose "factory" methods that enforce the constraints
//
// In F#, only classes can have private constructors with public members.
//
@d3banjan
d3banjan / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console