Skip to content

Instantly share code, notes, and snippets.

View jamesmanning's full-sized avatar

James Manning jamesmanning

View GitHub Profile
This file has been truncated, but you can view the full file.
[{"em-text-transform":"uppercase","tags":["berrypunch","","new"],"em-height":"73px","em-overflow":"hidden","height":200,"em-width":"130px","names":["bpsign"],"em-position":"absolute","background-image":"http://a.thumbs.redditmedia.com/GJefDqUOKmm5aXNH.png","em-font-style":"normal","em-color":"#c25098","em-top":"8px","sr":"marmemotes2","em-font-size":"12px","em-font-weight":"bold","em-font-family":"\"arial\"","width":151,"em-left":"15px","background-position":["0px","-980px"],"em-text-align":"center"},{"background-image":"http://a.thumbs.redditmedia.com/-UJ20dLxrm_8r4kr.png","tags":["lyra"],"sr":"marmemotes","height":140,"width":126,"names":["welliwashungryandwhenyoucravehands"],"apng_url":"http://berrymotes.com/images/a/-UJ20dLxrm_8r4kr.png"},{"background-image":"http://a.thumbs.redditmedia.com/1ERLWojxsUO7nFQT.png","tags":["luna",""],"sr":"marmemotes","height":140,"width":121,"names":["doodoodooluna"],"apng_url":"http://berrymotes.com/images/a/1ERLWojxsUO7nFQT.png"},{"background-image":"http://a.thumbs.reddi
@jamesmanning
jamesmanning / contrived.cs
Created July 17, 2014 20:14
why empty list is better than null
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
@jamesmanning
jamesmanning / Gruntfile.js
Created August 22, 2014 23:59
Gruntfile.js from default 'yo angular' generation
// Generated on 2014-08-22 using generator-angular 0.9.5
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
@jamesmanning
jamesmanning / simpleclass.js
Created August 30, 2014 00:12
simple class example
class Foo {
constructor(someCtorParam) {
this.someClassVar = someCtorParam;
}
someMethod() {
console.log('in some method: ' + this.someClassVar);
}
}
@jamesmanning
jamesmanning / LambdaLoad.cs
Created January 14, 2012 07:23
C# sample for loading lambdas from a file
using System;
using System.Xml.Linq;
using System.Linq;
using System.IO;
using Microsoft.CSharp;
using System.CodeDom.Compiler;
using System.Reflection;
using System.Linq.Expressions;
class Program
using System;
using System.Xml.Linq;
using System.Linq;
using System.IO;
using Microsoft.CSharp;
using System.CodeDom.Compiler;
using System.Reflection;
using System.Linq.Expressions;
class Program
using System;
using System.Xml.Linq;
using System.Linq;
using System.IO;
using Microsoft.CSharp;
using System.CodeDom.Compiler;
using System.Reflection;
using System.Linq.Expressions;
class Program
using System;
using System.Xml.Linq;
using System.Linq;
using System.IO;
using Microsoft.CSharp;
using System.CodeDom.Compiler;
using System.Reflection;
using System.Linq.Expressions;
class Program
@jamesmanning
jamesmanning / Program.cs
Created March 4, 2012 17:40
download urls, async, takes string
using System;
using System.Net.Http;
namespace ItsBigItsHeavyItsWood
{
class Program
{
static void Main()
{
var urlsToDownload = new[]
@jamesmanning
jamesmanning / Program.cs
Created March 4, 2012 17:32
download urls, non-async, takes collection
using System;
using System.Collections.Generic;
using System.Net;
namespace ItsBigItsHeavyItsWood
{
class Program
{
static void Main()