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
struct tauto { | |
int sb; | |
char pro[30]; | |
char mod[30]; | |
int god; | |
} auto; | |
struct stack { | |
int sb[21]; | |
char pro[21][30]; |
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
I would like to propose moving support for the PulseAudio sound server into Arch Linux proper. This would also be in preparation for the eventual arrival of Gnome 3, since it will be unlikely we can effectively maintain the needed GStreamer patch any more. | |
To that effect I have created a plan: | |
--- | |
To provide PulseAudio in [extra]... | |
Move the following packages from [community] to [extra]: | |
- libasyncns |
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
// ==UserScript==// | |
// @name Kottke Blue Border Remover | |
// @namespace http://gist.github.com/49129 | |
// @description Gets rid of that annoying blue border wrapping kottke.org | |
// @include http://*.kottke.org | |
// @include http://*.kottke.org/* | |
// ==/UserScript== | |
var els = ['t', 'b', 'l', 'r', 'tl', 'tr', 'bl', 'br'] | |
for(var i in els) { |
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/local/bin/macruby | |
## | |
# Remove any duplicate tracks in iTunes | |
# PJ Hyett was here 11/2008 | |
framework "Cocoa" | |
framework "ScriptingBridge" | |
itunes = SBApplication.applicationWithBundleIdentifier("com.apple.iTunes") |
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 ruby | |
require 'yaml' | |
if ARGV.size < 1 | |
puts "Usage: github-test.rb my-project.gemspec" | |
exit | |
end | |
require 'rubygems/specification' | |
data = File.read(ARGV[0]) |
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
require 'rubygems' | |
require 'mq' | |
require 'json' | |
EM.run do | |
AMQP.start(:vhost => '/heroku', | |
:user => 'face', | |
:pass => 'thisisheroku!') | |
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
chars = ('A'..'Z').to_a + ('a'..'z').to_a + ('0'..'9').to_a | |
str = chars.sort_by { rand }.first(50) |
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
config.action_controller.asset_host = Proc.new do |source, request| | |
non_ssl_host = "http://asset#{source.hash % 4}.backpackit.com" | |
ssl_host = "https://asset1.backpackit.com" | |
if request.ssl? | |
case | |
when source =~ /\.js$/ | |
ssl_host | |
when request.headers["USER_AGENT"] =~ /(Safari)/ | |
non_ssl_host |
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
alias gb='for k in `git branch|perl -pe s/^..//`;do echo -e `git show --pretty=format:"%Cblue%cr%Creset" $k|head -n 1`\\t$k;done' | |
# Output | |
# ------ | |
# ~/Development/github(master)$ gb | |
# 4 weeks ago config-gem | |
# 9 days ago dropdown | |
# 5 weeks ago faucet | |
# 3 weeks ago health |
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
lines = `git log --oneline`.split("\n") | |
lines.map! do |line| | |
sha, *msg = line.split | |
msg = msg.join(' ') # unused | |
color = '#' + sha[0..-2] | |
%{<div class="box" style="background:#{color}"></div>} | |
end | |
File.open('colors.html', 'w') do |f| | |
f.puts <<-HTML |
NewerOlder