$ cpp -P input.css
This file contains hidden or 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
#!/bin/bash | |
TEST_FILES=`find test/ -name "*.js"` | |
run_tests() { | |
local tests="$@" | |
for test in $tests; do | |
echo -ne "\033[1;33m$test\033[0m" | |
tape $test | tap-dot |
This file contains hidden or 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: | |
* | |
* DOM("div#notebook") | |
* DOM("ul.tabs[data-target=notebook]") | |
*/ | |
var DOM = function(selector, textContent) { | |
var tokens = selector.split(/\b/) | |
var tagName = tokens.shift() |
This file contains hidden or 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
-- Standard awesome libraries | |
local gears = require("gears") | |
local awful = require("awful") | |
local wibox = require("wibox") | |
local beautiful = require("beautiful") | |
-- Notification library | |
local naughty = require("naughty") | |
local menubar = require("menubar") | |
awful.rules = require("awful.rules") |
This file contains hidden or 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 hasEvents = (function() { | |
function on(name, callback, listener) { | |
var listener = listener || this | |
this._events = this._events || [] | |
this._events.push({ | |
name: name, | |
callback: callback, | |
listener: listener | |
}) |
This file contains hidden or 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
PAGES = $(shell find sources/pages -name *.jade 2>/dev/null) | |
LAYOUTS = $(wildcard sources/layouts/*.jade) | |
STYLESHEETS = $(filter-out %_.styl,$(wildcard sources/stylesheets/*.styl)) | |
OTHER = $(shell find static -type f 2>/dev/null) | |
HTML = $(addsuffix .html,\ | |
$(basename $(PAGES:sources/pages%=output%))) | |
CSS = $(addsuffix .css,\ | |
$(basename $(STYLESHEETS:sources/stylesheets%=output/assets/css%))) | |
STATIC = $(OTHER:static/%=output/assets/%) |
This file contains hidden or 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
#!/bin/bash | |
function __my_git_dirty { | |
git diff --quiet 2>/dev/null || echo -e "*" | |
} | |
function __my_git_sha1 { | |
sha1="$(git log --no-color -1 --pretty=format:%h 2>/dev/null)" | |
if [ $? = 0 ]; then echo "$sha1"; fi | |
} |
This file contains hidden or 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
[user] | |
name = "François Vaux" | |
email = [email protected] | |
identity = default | |
[identity "wyplay"] | |
name = "François Vaux" | |
email = [email protected] | |
[identity "default"] | |
name = "François Vaux" | |
email = [email protected] |
This file contains hidden or 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 ruby | |
require "ostruct" | |
require "json" | |
require "net/http" | |
SERVER_URI = URI("http://projects.hcilab.org/tapsnap/notification/php/get.php?version=10002") | |
# Seen notifications | |
@ids = [] |