Skip to content

Instantly share code, notes, and snippets.

View jedilando's full-sized avatar

Jan Święcki jedilando

View GitHub Profile
@taterbase
taterbase / system-beep.js
Created July 21, 2012 05:01
System Beep in Node.js
function alertTerminal(){
console.log("\007");
}
@scribu
scribu / coco.sed
Created August 6, 2011 22:02
Javascript To Coco
# remove useless punctuation
s/;$//g
s/,$//g
# comments start with #
s:// :# :g
# var is out
s/var //g
/var$/d
@AndrewRayCode
AndrewRayCode / gist:825583
Created February 14, 2011 07:15
recursive read directory in node.js returning flattened list of files and directories
function readDir(start, callback) {
// Use lstat to resolve symlink if we are passed a symlink
fs.lstat(start, function(err, stat) {
if(err) {
return callback(err);
}
var found = {dirs: [], files: []},
total = 0,
processed = 0;
function isDir(abspath) {

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