Skip to content

Instantly share code, notes, and snippets.

@kagemusha
kagemusha / gist:5866759
Created June 26, 2013 11:37
Using Debugger with Grunt
version: grunt-cli v0.1.8
1. Install node-inspector globally (-g)
npm install -g node-inspector
2. Add debugger statements to your code
3. Run your grunt task in debug mode
function Def( arg ) {
if( arg instanceof Def )
this.parent = arg;
else if( typeof arg !== "undefined" )
this.v = arg;
}
Def.prototype = {
chain: function(v){
@johan
johan / README.md
Last active April 23, 2017 16:37
Roger Zelazny's "For a Breath I Tarry" (typotastic origin: http://www.kulichki.com/moshkow/ZELQZNY/forbreat.txt)

Roger Zelazny. For a Breath I Tarry

They called him Frost. Of all things created of Solcom, Frost was the finest, the mightiest, the most difficult to understand.

This is why he bore a name, and why he was given dominion over half the Earth.

On the day of Frost's creation, Solcom had suffered a discontinuity of complementary functions, best described as madness. This was brought on by an unprecedented solar flareup which lasted for a little over thirty-six hours. It occurred during a vital phase of circuit-structuring, and when it was finished so was Frost.

Solcom was then in the unique position of having created a unique being during a period of temporary amnesia.

@kirbysayshi
kirbysayshi / LICENSE
Created August 6, 2011 05:35 — forked from kriskowal/LICENSE
Nano-promises
Copyright 2011 Kristopher Michael Kowal. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
@kirbysayshi
kirbysayshi / LICENSE.txt
Created August 4, 2011 21:44 — forked from 140bytes/LICENSE.txt
when: Easily fire a callback when all deferreds are complete
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Andrew Petersen <http://kirbysayshi.github.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@jed
jed / LICENSE.txt
Created May 13, 2011 06:38 — forked from 140bytes/LICENSE.txt
extend/unextend objects
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@140bytes
140bytes / LICENSE.txt
Created May 9, 2011 16:13
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables

@isaacs
isaacs / node-and-npm-in-30-seconds.sh
Last active May 16, 2024 16:51
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
dojo.provide("dojox.charting.axis2d.Titled");
dojo.require("dojox.charting.axis2d.Default");
dojo.require("dojox.gfx");
dojo.require("dojox.gfx.matrix");
(function(){
var dc = dojox.charting,
g = dojox.gfx,
m = dojox.gfx.matrix,