My (mac) screensaver. Download and install the IdleWeb screensaver. Put the files above into a folder somewhere along with twitterlib.min.js. Then setup.
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: sh splitconv.sh "some.pdf" | |
echo "Making temporary directory..." | |
mkdir "splitconv-tmp" | |
echo "Splitting pdf..." | |
convert -size 1x2@ "$1" "splitconv-tmp/split.png" | |
echo "Rotating pages..." | |
convert -rotate 270 "tmp-tmp-tmp/split-*.png" "splitconv-tmp/rot.png" |
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 sh | |
# Needs to be on $PATH as "img-testing". | |
function usage { | |
echo "testing [args]" | |
} | |
function short { | |
echo "A script to test external img scripts." | |
} |
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
package main | |
import ( | |
"code.google.com/p/graphics-go/graphics" | |
"github.com/nfnt/resize" | |
"github.com/hawx/img/blend" | |
"github.com/hawx/img/contrast" | |
"github.com/hawx/img/hsla" | |
"github.com/hawx/img/utils" |
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 sh | |
function usage { | |
echo "lomo [options]" | |
} | |
function short { | |
echo "applies a simple lomo effect to the image." | |
} |
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
package main | |
import ( | |
"github.com/hawx/hadfield" | |
"fmt" | |
"os" | |
) | |
var cmdGreet = &hadfield.Command{ | |
Usage: "greet [options]", |
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
module MiniTestWithHooks | |
class Unit < MiniTest::Unit | |
attr_reader :before_suites, :after_suites | |
def before_suites(&block) | |
(@before_suites ||= []) << block | |
end | |
def after_suites(&block) |
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
javascript: ( | |
function() { | |
var widenGithubs = '.container { width: 1280px; } ' + | |
'.container .repository-content { width: 1230px; } ' + | |
'.container .repository-with-sidebar.with-full-navigation .repository-content { width: 1080px; } ' + | |
'.container .column { width: 1092px; } ' + | |
'#files .diffstat+.css-truncate-target { max-width: 855px !important;} ' + | |
'.discussion-timeline { width: 1055px; } ' + | |
'.comment-holder { width: 952px !important; } ' + | |
'.inline-comments .comment-holder { width: 1100px !important; max-width: 1100px !important; } ' + |
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
require 'nokogiri' | |
module Deserialisable | |
def root(selector) | |
@__root = selector | |
@__elements = {} | |
end | |
def element(name, selector, type=String) | |
@__elements[name] = [selector, type] |
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
public static class Exts | |
{ | |
public static T Tap<T>(this T that, Action<T> action) | |
{ | |
action(that); | |
return that; | |
} | |
public static TOut Into<TIn, TOut>(this TIn that, Func<TIn, TOut> func) | |
{ |