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 'httparty' | |
response = HTTParty.get('http://www.google.com/ig/api?weather=Chicago') | |
data = response.parsed_response | |
puts data['xml_api_reply']['weather']['current_conditions']['condition']['data'] |
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 bash | |
echo "@@@ @@@ @@@@@@@@ @@@ @@@ @@@@@@@ @@@@@@@@ @@@ @@@ " | |
echo "@@@ @@@ @@@@@@@@ @@@@ @@@ @@@@@@@ @@@@@@@@ @@@ @@@ " | |
echo "@@! !@@ @@! @@!@!@@@ @@! @@! @@! !@@ " | |
echo "!@! @!! !@! !@!!@!@! !@! !@! !@! @!! " | |
echo " !@@!@! @!!!:! @!@ !!@! @!! @!!!:! @!@@!@! " | |
echo " @!!! !!!!!: !@! !!! !!! !!!!!: !!@!!! " | |
echo " !: :!! !!: !!: !!! !!: !!: !!: :!! " | |
echo ":!: !:! :!: :!: !:! :!: :!: :!: !:! " |
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 rake | |
# Add your own tasks in files placed in lib/tasks ending in .rake, | |
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | |
# If certain tasks are called, don't load Rails! | |
if %w(spork:start spork:restart spork:stop).include?(Rake.application.top_level_tasks.first) | |
# Load the rake tasks | |
Dir.glob("#{File.expand_path("../lib/tasks", __FILE__)}/*.rake").each { |r| import r } | |
else | |
require File.expand_path('../config/application', __FILE__) |
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
PROMPT='%{$fg[white]%}☁ %{$fg[green]%}%M%{$reset_color%}:%{$fg[blue]%}%~%b%{$reset_color%} $(git_time_since_commit) $(check_git_prompt_info) | |
%{$fg[yellow]%}⚡ %{$reset_color%}' | |
PS2='%{$fg[yellow]%}⚡ %{$reset_color%}' | |
RPROMPT='%{$fg[grey]%}⚡%{$reset_color%}' | |
RPS2='%{$fg[grey]%}⚡%{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}[ %{$fg[yellow]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}]" |
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
// includes bindings for fetching/fetched | |
var PaginatedCollection = Backbone.Collection.extend({ | |
baseUrl: '/items', // set this to your restful route on the server | |
initialize: function() { | |
_.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage'); | |
typeof(options) != 'undefined' || (options = {}); | |
this.page = 1; | |
typeof(this.perPage) != 'undefined' || (this.perPage = 10); |
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
<?php | |
/* | |
Plugin Name: Upload Override | |
Plugin URI: http://xentek.net/ | |
Description: Override the Upload Path so that it is always set the way you want | |
Version: 0.1 | |
Author: Eric Marden | |
Author URI: http://xentek.net/ | |
*/ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<playlist version="1" xmlns="http://xspf.org/ns/0/"> | |
<title>Exported from Turntable.fm</title> | |
<trackList> | |
<track><creator>Ephixa</creator><title>Lost Woods Dubstep Remix</title><duration>227000</duration></track> | |
<track><creator>Amon Tobin</creator><title>Four Ton Mantis (Bonobo Mix)</title><album>Bonobo: One Offs... Remixes & B-Sides</album><duration>249000</duration></track> | |
<track><creator>Playgroup</creator><title>Make It Happen (Zongamin Remix)</title><album>Channel 2 - A Compilation Of Output Recordings</album><duration>284000</duration></track> | |
<track><creator>Nobukazu Takemura</creator><title>perch</title><album>10th</album><duration>469000</duration></track> | |
<track><creator>Meat Beat Manifesto</creator><title>I Hold the Mic!</title><album>Autoimmune</album><duration>285000</duration></track> | |
<track><creator>Shigeto</creator><title>Sky Of The Revolution</title><album>Full Circle</album><image>http://images.mndigital.com/albums/046/726/889/m.jpeg</image><dura |
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] | |
commit = ci | |
ci = commit | |
co = checkout | |
st = status | |
info = status | |
svn-diff = !git-svn-diff |
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
# GIT | |
alias gst='git status' | |
alias gb='git branch' | |
alias gitp='git pull && git push' | |
alias gitundo='git commit --amend' | |
alias fixgit='git config branch.master.remote origin && git config branch.master.merge refs/heads/master' |
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
debugfile /var/log/ha-debug | |
logfile /var/log/ha-log | |
logfacility daemon | |
keepalive 2 | |
deadtime 15 | |
warntime 5 | |
initdead 120 | |
udpport 694 | |
ucast eth0 173.255.201.40 | |
auto_failback on |