Skip to content

Instantly share code, notes, and snippets.

@lot224
lot224 / events.js
Created September 13, 2013 01:18
Simple Javascript Event Engine.
; (function (window, undefined) {
window.events = function (name) {
if (typeof name !== 'string')
return undefined;
name = name.toLowerCase();
if (!(window.events.collection[name] instanceof window.events.event))
window.events.collection[name] = new window.events.event(name);
@lot224
lot224 / Concatenate.cs
Created December 19, 2012 16:28
Microsoft Build Task to Concatenate/Compress/Obfuscate javascript files.
// Uses a port of the Yahoo YUI Compressor
// http://yuicompressor.codeplex.com/
using System;
using System.IO;
using System.Text;
using Microsoft.Build.Utilities;
using Microsoft.Build.Framework;
using Yahoo.Yui.Compressor;
using System.Resources;
@lot224
lot224 / _fizzbuzz.scss
Created September 7, 2012 23:19
FizzBuzz in SASS3
/*
http://en.wikipedia.org/wiki/Bizz_buzz
*/
$count: 100 !default;
@mixin fizzbuzz(
$count
) {
@for $i from 1 through $count {
@lot224
lot224 / _mixin_button.scss
Created September 6, 2012 12:50
A scss mixin for a button style.
@import "compass";
$button-radius: 4px !default;
@mixin button(
$base-color:#fff,
$size:small,
$radius:$button-radius
) {