Skip to content

Instantly share code, notes, and snippets.

@sushovande
sushovande / SpiroGifs.cs
Last active January 3, 2016 20:49
SpiroGifsCreates the frames of a [Spirograph](http://en.wikipedia.org/wiki/Spirograph) animation. Modify the variables in lines 12-22 for various patterns. After stitching the resulting images into a gif, they look like this: http://imgur.com/FPrWHOw, http://imgur.com/pFeMozI
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace SpiroGifs
{
class Program
@sushovande
sushovande / CreateColorfulBackgrounds.cs
Created November 5, 2012 04:44
Create a checkered background image
// example output: http://imgur.com/dSix8
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace CreateColorfulBackgrounds
@sushovande
sushovande / GetAllWp7Locales.cs
Created April 3, 2012 00:17
A small C# function that gets all the locales currently supported by the windows phone ecosystem.
static Dictionary<string, string> GetAllLocales()
{
var reply = new Dictionary<string, string>();
reply.Add("es-ar", "Argentina (es-ar)");
reply.Add("en-au", "Australia (en-au)");
reply.Add("de-at", "Austria (de-at)");
reply.Add("ar-bh", "Bahrain (ar-bh)");
reply.Add("fr-be", "Belgium (fr-be)");
reply.Add("nl-be", "Belgium (nl-be)");
reply.Add("bg-bg", "Bulgaria (bg-bg)");
Our whole universe was in a hot dense state,
Then nearly fourteen billion years ago expansion started. Wait...
The Earth began to cool,
The autotrophs began to drool,
Neanderthals developed tools,
We built a wall (we built the pyramids),
Math, science, history, unraveling the mysteries,
That all started with the big bang!
"Since the dawn of man" is really not that long,