Skip to content

Instantly share code, notes, and snippets.

@bobbychopra
bobbychopra / git-export
Created September 21, 2017 18:39 — forked from kristofferh/git-export
"Export" a git repository to zip file
git archive --format zip --output /full/path/to/zipfile.zip master
@bobbychopra
bobbychopra / kiss_docker
Created December 8, 2015 01:32 — forked from include/kiss_docker
homebrew > cask > Virtualbox > Vagrant > CentOS > Docker > Ubuntu
#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
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;
module Program
open System
open Akka
open Akka.Actor
open Akka.FSharp
open Akka.Configuration
module Program
open System
open Akka
open Akka.Actor
open Akka.FSharp
open Akka.Configuration
type Message =
@bobbychopra
bobbychopra / ObjectExt.cs
Created April 23, 2014 15:44
Helpful Extension Methods for any object
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 February 27, 2014 14:45
Helpful Extension Methods for Strings
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 August 29, 2015 13:56
Helpful Extension Methods for DateTime
namespace System
{
public static class DateTimeExt
{
public static DateTime ToUnspecified(this DateTime dt)
{
return DateTime.SpecifyKind(dt, DateTimeKind.Unspecified);
}
}
}
@bobbychopra
bobbychopra / DoubleExt.cs
Created February 27, 2014 14:42
Helpful Extension Methods for Double
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)