Skip to content

Instantly share code, notes, and snippets.

View Getting spacemacs working.md
@bobbychopra
bobbychopra / git-export
Created Sep 21, 2017 — forked from kristofferh/git-export
"Export" a git repository to zip file
View git-export
git archive --format zip --output /full/path/to/zipfile.zip master
@bobbychopra
bobbychopra / kiss_docker
Created Dec 8, 2015 — forked from include/kiss_docker
homebrew > cask > Virtualbox > Vagrant > CentOS > Docker > Ubuntu
View kiss_docker
#homebrew > cask > Virtualbox > Vagrant > CentOS > Docker > Ubuntu
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
$ brew tap caskroom/homebrew-cask
$ brew install brew-cask
$ brew cask install virtualbox
$ brew cask install vagrant
$ brew tap homebrew/completions
$ brew install vagrant-completion
View TypeAheadFormRx.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reactive.Disposables;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Text;
View StashInAkka.fs
module Program
open System
open Akka
open Akka.Actor
open Akka.FSharp
open Akka.Configuration
View PubSubInAkka.fs
module Program
open System
open Akka
open Akka.Actor
open Akka.FSharp
open Akka.Configuration
type Message =
@bobbychopra
bobbychopra / ObjectExt.cs
Created Apr 23, 2014
Helpful Extension Methods for any object
View ObjectExt.cs
using Newtonsoft.Json;
namespace System
{
public static class ObjectExt
{
public static string Dump(this object obj)
{
return JsonConvert.SerializeObject(obj, Formatting.Indented);
@bobbychopra
bobbychopra / StringExt.cs
Created Feb 27, 2014
Helpful Extension Methods for Strings
View StringExt.cs
namespace System
{
public static class StringExt
{
public static bool EqualsWithCaseIgnore(this string a, string b)
{
if (a == null && b == null)
return true;
else if (a == null && b != null)
@bobbychopra
bobbychopra / DateTimeExt.cs
Last active Aug 29, 2015
Helpful Extension Methods for DateTime
View DateTimeExt.cs
namespace System
{
public static class DateTimeExt
{
public static DateTime ToUnspecified(this DateTime dt)
{
return DateTime.SpecifyKind(dt, DateTimeKind.Unspecified);
}
}
}
@bobbychopra
bobbychopra / DoubleExt.cs
Created Feb 27, 2014
Helpful Extension Methods for Double
View DoubleExt.cs
namespace System
{
public static class DoubleExt
{
public static bool IsZero(this double input)
{
return Math.Abs(0 - input) < Double.Epsilon;
}
public static double Divide(this double numerator, double denominator)