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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>beforeRunningCommand</key> | |
<string>nop</string> | |
<key>command</key> | |
<string>#!/usr/bin/ruby | |
$LOAD_PATH << "#{ENV["TM_SUPPORT_PATH"]}/lib" | |
require 'ui' |
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/sh | |
FILES="$@" | |
for filename in $FILES | |
do | |
newname=`echo $filename | sed -e 's/\(.*\)\.[a-zA-Z0-9]*$/\1.ogg/g'` | |
sox $filename $newname pad 0 0.25 | |
done |
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
ddns-update-style interim; | |
# If you have fixed-address entries you want to use dynamic dns | |
update-static-leases on; | |
key rndc-key { | |
algorithm hmac-md5; | |
secret YourSecretKeyHere; | |
} |
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
# In Gemfile | |
gem 'savon', :git => 'http://github.com/rubiii/savon.git', :branch => 'eight' | |
gem 'httpclient' | |
# Run this in the console to fetch the name and address of the first debtor | |
client = Savon::Client.new do | |
wsdl.document = "https://www.e-conomic.com/secure/api1/EconomicWebservice.asmx?WSDL" | |
end | |
# Authenticate |
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 ApplicationHelper | |
# Helper for html element in haml using this method: | |
# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither | |
def html_tag(lang = "en") | |
str = '<!--[if lt IE 7 ]> <html lang="' + lang + '" class="no-js ie6"> <![endif]-->' | |
str << '<!--[if IE 7 ]> <html lang="' + lang + '" class="no-js ie7"> <![endif]-->' | |
str << '<!--[if IE 8 ]> <html lang="' + lang + '" class="no-js ie8"> <![endif]-->' | |
str << '<!--[if IE 9 ]> <html lang="' + lang + '" class="no-js ie9"> <![endif]-->' | |
str << '<!--[if (gt IE 9)|!(IE)]><!-->' | |
precede str do |
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
int timer; | |
String buffer; | |
int relay = 7; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(115200); | |
while (!Serial) { | |
; // Wait for serial port to connect | |
} |