Skip to content

Instantly share code, notes, and snippets.

View cararemixed's full-sized avatar
🏳️‍🌈

Cara Mitchell cararemixed

🏳️‍🌈
View GitHub Profile
@cararemixed
cararemixed / merge
Last active August 29, 2015 14:11 — forked from anonymous/merge
#!/usr/bin/env escript
-mode(compile).
-export([main/1]).
main(_) ->
Mode = subtree_mode(),
Repos = read_repos(),
ok = filelib:ensure_dir(apps_path()),
@cararemixed
cararemixed / not_in_svn.rb
Created July 22, 2011 02:05 — forked from jchris/not_in_svn.rb
you want to know the commits that never made it into svn
# 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/}
@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);
}
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) {