This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env escript | |
-mode(compile). | |
-export([main/1]). | |
main(_) -> | |
Mode = subtree_mode(), | |
Repos = read_repos(), | |
ok = filelib:ensure_dir(apps_path()), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# usage: | |
# git log | ruby not_in_svn.rb | less | |
# license: Apache 2.0 | |
# copyright: J Chris Anderson 2011 | |
# this might be too trivial to copyright | |
buffer = [] | |
while(line = gets) | |
if line.match(/^commit/) | |
puts buffer, "\n" unless buffer.any? {|x| x =~ /git-svn/} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin some_sprite($state) { | |
background-image: url(...); | |
background-position: if($state is hover, 18px, 0px) 18px; | |
} | |
// somewhere down the line .......... | |
.thingy { | |
@include some_sprite(default); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'), | |
url = require('url'), | |
mylog="log:\r\n"; | |
function log(str) { | |
mylog += str + "\r\n"; | |
} | |
var server = http.createServer(function (request, response) { | |
switch (url.parse(request.url).pathname) { |