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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>on</key> | |
<integer>1</integer> | |
<key>replace</key> | |
<string>:smile:</string> | |
<key>with</key> |
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
gem 'rumoji', :git => "git://github.com/mwunsch/rumoji.git", :tag => "v0.2.0" | |
gem 'osxsub', :git => "git://github.com/mwunsch/osxsub.git", :tag => "v0.1.2" |
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 'formula' | |
class Osxsub < Formula | |
homepage 'https://github.com/mwunsch/osxsub' | |
url 'https://github.com/mwunsch/osxsub/tarball/v0.1.2' | |
sha1 '93c766bfde5aa27c186018d4450c0c41ddae6ffa' | |
head 'https://github.com/mwunsch/osxsub.git' | |
def install | |
bin.install 'bin/osxsub' |
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
// (c) 2012 Mark Wunsch http://markwunsch.com | |
// MIT license. | |
if (!String.fromCodePoint) { | |
/*! | |
* ES6 Unicode Shims 0.1 | |
* (c) 2012 Steven Levithan <http://slevithan.com/> | |
* MIT License | |
*/ | |
String.fromCodePoint = function fromCodePoint () { |
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
/*! | |
* From: (c) 2012 Steven Levithan <http://slevithan.com/> | |
* MIT License | |
*/ | |
if (!String.fromCodePoint) { | |
/*! | |
* ES6 Unicode Shims 0.1 | |
* (c) 2012 Steven Levithan <http://slevithan.com/> | |
* MIT License | |
*/ |
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 | |
movie_title=$(python -c "import urllib; print urllib.quote('''$*''')") | |
curl -G \ | |
-d "\$filter=substringof('$movie_title',Name)%20and%20Instant/Available" \ | |
-d '$format=json' \ | |
-d '$select=Synopsis,AverageRating,ReleaseYear,BoxArt,Instant,Url,Name' \ | |
"http://odata.netflix.com/Catalog/Titles" |
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
--- | |
state: published | |
tags: tumblr | |
date: '2012-10-29 16:42:00 GMT' | |
format: markdown | |
slug: tumblr-cli-2 | |
id: 34571571533 | |
type: photo | |
--- | |
http://24.media.tumblr.com/tumblr_mcnyevcIOH1qzykueo1_1280.jpg |
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 | |
EMOJI_NAME_TO_CODEPOINT = { | |
"1F604" => :smile, | |
"1F606" => :laughing, | |
"1F60A" => :blush, | |
"1F603" => :smiley, | |
"263A" => :relaxed, | |
"1F60F" => :smirk, | |
"1F60D" => :heart_eyes, |
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
1.9.3p194 :003 > Rack::Utils.build_nested_query "body" => "What the fuck encoding" | |
=> "body=What+the+fuck+encoding" | |
1.9.3p194 :004 > Rack::Utils.build_nested_query "body" => Rack::Utils.escape("What the fuck encoding") | |
=> "body=What%2Bthe%2Bfuck%2Bencoding" | |
1.9.3p194 :005 > { "body" => Rack::Utils.escape("What the fuck encoding")} | |
=> {"body"=>"What+the+fuck+encoding"} | |
1.9.3p194 :006 > require 'uri' | |
=> true | |
1.9.3p194 :007 > { "body" => URI.escape("What the fuck encoding")} | |
=> {"body"=>"What%20the%20fuck%20encoding"} |
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
1.9.3p194 :001 > snowman = "\u2603" | |
=> "☃" | |
1.9.3p194 :002 > hash = {"d" => snowman} | |
=> {"d"=>"☃"} | |
1.9.3p194 :003 > require 'rack' | |
=> true | |
1.9.3p194 :004 > query = Rack::Utils.build_nested_query hash | |
=> "d=%E2%98%83" | |
1.9.3p194 :005 > query.encoding | |
=> #<Encoding:US-ASCII> |