Skip to content

Instantly share code, notes, and snippets.

Ryan Cromwell cromwellryan

Block or report user

Report or block cromwellryan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Pilchie
Pilchie / gist:5087540
Created Mar 5, 2013
Getting variables declared in a session.
View gist:5087540
using Roslyn.Scripting.CSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
class Program
{
static void Main(string[] args)
{
@jlong
jlong / uri.js
Created Apr 20, 2012
URI Parsing with Javascript
View uri.js
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@rauchg
rauchg / ms.md
Created Dec 21, 2011
Milliseconds conversion utility.
You can’t perform that action at this time.