Skip to content

Instantly share code, notes, and snippets.

View MACSkeptic's full-sized avatar
🏠
Working from home

♥♥♥♥♥ ����� MACSkeptic

🏠
Working from home
View GitHub Profile
// ... see http://github.com/MACSkeptic/MACSkeptic.Commons
public static DateTime DaysAgo(this int days)
{
return days.DaysAgo(DateTime.Now);
}
// ... see http://github.com/MACSkeptic/MACSkeptic.Commons
// usage
2.DaysAgo(); // DateTime.Now - 2 days ;)
var updateColors = _collectiveTime > Threshhold;
_collectiveTime += updateColors ? -_collectiveTime : elapsed.Time;
_random = new Random(_seed = updateColors ? 2.SecondsAgo().Millisecond : _seed);
5.TimesWithIndex(column => 5.TimesWithIndex(line => new Block(
origin: new Vector3(_right + -30 + column * 12, _up + (-15 + line * 8), 0),
width: 5,
height: 3,
depth: 8,
color: _colors[_random.Next(_colors.Length)]).Draw()));
"use strict";
var presentation = presentation || {};
presentation.slides = (function ($) {
var index = -1,
list = [],
hideEffects = ["hide", "fadeOut", "slideUp"],
showEffects = ["show", "fadeIn", "slideDown"],
cachedContainer = null;
@MACSkeptic
MACSkeptic / gist:1178704
Created August 29, 2011 15:57
useless stuff
private TestContext testContextInstance;
/// <summary>
///Gets or sets the test context which provides
///information about and functionality for the current test run.
///</summary>
public TestContext TestContext
{
get
{
>> require 'net/http'
=> true
>> uri = URI('http://images.wikia.com/villains/images/a/a9/Vegeta.png')
=> #<URI::HTTP:0x10e5e7298 URL:http://images.wikia.com/villains/images/a/a9/Vegeta.png>
>> Net::HTTP.get(uri)
@MACSkeptic
MACSkeptic / .gitignore
Created October 6, 2012 13:17 — forked from cv/.gitignore
*.sw?
tags
@MACSkeptic
MACSkeptic / .gitignore
Created October 6, 2012 19:42
radar plotting shenanigans
.DS_Store
GTAGS
GRTAGS
GPATH
*.swp*
*.swo*
gem install nyan-cat-formatter --no-ri --no-rdoc
export SPEC_OPTS="-f NyanCatFormatter"
rake smoke
#profit
SC.draw = function () {
var renderer = SC.renderer2d;
renderer.requestAnimFrame.apply(window, [function() { renderer.draw(); }]);
}
{
"name": "application-name",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node app"
},
"engines": {
"node": "0.8.x",
"npm": "1.1.x"