Skip to content

Instantly share code, notes, and snippets.

@Zaidos
Zaidos / Ideas.md
Last active August 29, 2015 13:58
Sketch Ideas
  • Cup of coffee
  • Skyline
  • Headphones
  • Hot air balloons
  • Rainy day
  • Lake / Cabin
  • Airplanes
  • Planets
  • Table with Chairs
  • Bicyclist / Motorcycle
@Zaidos
Zaidos / Expose
Last active August 29, 2015 13:58
Faster Expose and Mission Control Animations
defaults write com.apple.dock expose-animation-duration -float 0.1 && killall Dock
@Zaidos
Zaidos / ToC.md
Last active January 2, 2016 06:29
Open Source for the .NET Developer

Open Source for the .NET Developer

A Guide to the Modern Development Stack

By Alven Diaz

Introduction

Intro goes here.

@Zaidos
Zaidos / prime.js
Last active December 19, 2015 13:39
Prime Number Utilities
var number = {
primes: [],
computeSieve: function(max) {
var composites = [], primes = [];
for ( var composite = 2; composite < max; composite++ ) {
this.computeComposite(primes, composites, composite, max);
}
return primes;
@Zaidos
Zaidos / Notes.md
Last active December 19, 2015 01:09
GitHub script(cs) meetup

script(cs)

Glenn Block @gblock

Justin Rushbatch @jrusbatch

  • C# on a diet
  • node.js + npm
  • nuget
@Zaidos
Zaidos / SerializationExtensions.cs
Last active December 10, 2015 00:09
Serialize. ANYTHING.
public static class SerializationExtensions
{
public static string Serialize<T>( this T obj )
{
var serializer = new DataContractSerializer( obj.GetType() );
using ( var writer = new StringWriter() )
{
using ( var stm = new XmlTextWriter( writer ) )
{
serializer.WriteObject( stm, obj );
@Zaidos
Zaidos / request.rb
Created November 18, 2012 00:03
ruby request
require 'net/http'
require 'uri'
uri = URI.parse('http://hidemyaccess.info/includes/process/php?action=update')
response = Net::HTTP.post_form(uri, {'u' => 'http://www.google.com'})
puts response
@Zaidos
Zaidos / gist:4026588
Created November 6, 2012 18:34
Migrating TFS shelves w/ TFS power tools
tfpt unshelve "Shelveset name" /migrate /source:"$/project/branch/1.2" /target:"$/project/trunk"
@Zaidos
Zaidos / .vimrc
Created October 5, 2012 05:20
dotfiles
set history=700
filetype plugin on
filetype indent on
set autoread
set nocompatible
" Show line numbers
set number
@Zaidos
Zaidos / guid.cs
Created May 18, 2012 17:49
Find GUID
private bool TryToFindGuid( string html, out string guid )
{
const string guidRegexString = @"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
var match = Regex.Match( html, guidRegexString, RegexOptions.Compiled );
guid = match.Value;
return match.Success;
}