Skip to content

Instantly share code, notes, and snippets.

@Zaidos
Zaidos / skilltree
Created August 11, 2011 20:21
Level Up as a Developer
Learn a variety of programming paradigms:
Write a program in assembly language
Write an application in a functional language
Write an application in an object-oriented language
Write an application in a prototype-based language
Write an application in a logic programming language
Write an application using the Actor model
Write an application in Forth [C]
Experience the ins and outs of programming for different platforms:
@Zaidos
Zaidos / Url.cs
Created November 17, 2011 00:02
Url Helper
using System.Web.Mvc;
/// <summary>
/// URL Extension Class
/// </summary>
public static class Url
{
/// <summary>
/// Returns a relative URL to Home.
/// </summary>
@Zaidos
Zaidos / Talks.md
Created January 14, 2012 01:17
Waza Talks
@Zaidos
Zaidos / ApiAreaRegistration.cs
Created April 1, 2012 08:32
The Backbone Experience
public class ApiAreaRegistration : AreaRegistration
{
public override string AreaName
{
get { return "Api"; }
}
public override void RegisterArea(AreaRegistrationContext context)
{
const string url = "Api/Issues";
@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;
}
@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 / 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 / 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 / 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 / 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