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
↑のStar押してみて! |
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 "nestful" | |
require "roauth" | |
def upload(path_to_file) | |
twitpic_key = "my_twitpic_api_key" | |
oauth_url = "https://api.twitter.com/1/account/verify_credentials.json" | |
oauth = { | |
:access_key => "account_access_key", | |
:access_secret => "account_access_secret", |
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
<html> | |
<head> | |
<style type="text/css"> | |
.log { | |
color: red; | |
} | |
</style> | |
<script> | |
ws = new WebSocket("ws://localhost:8080"); | |
ws.onopen = function (e) { |
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 'ruby-debug' | |
require 'socket' | |
require 'forwardable' | |
class SporkDebugger | |
DEFAULT_PORT = 10_123 | |
HOST = '127.0.0.1' | |
extend Forwardable | |
def_delegators :state, *[:prepare_debugger, :initialize] |
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
# Pass in a tweet id to open a link in the text | |
# | |
# :open $xx | |
Earthquake.init do | |
command %r|^:open\s+([^\/\s]+)$|, :as => :open do |m| | |
twitter.status(m[1]).tap do |s| | |
if s["text"] | |
link_match = s["text"].match(/(https?:\/\/\S*)/) | |
if link_match | |
Launchy.open(link_match[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
#!/usr/bin/env node | |
//http://vimeo.com/22429969 | |
var fs = require('fs'); | |
var spawn = require('child_process').spawn; | |
var cap = "/path/to/cap.jpg"; | |
var glt = "/path/to/cap_glitch.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
##earthquake.ge plugin | |
##post url to instapaper.com | |
Earthquake.init do | |
_ = config[:instapaper] ||= {} | |
_[:user] ||= '' | |
_[:password] ||= '' | |
command :instapaper do |m| | |
tweet = twitter.status(m[1])["text"] |
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
# -*- coding: utf-8 -*- | |
#earthquake.gem plugin | |
#javascript via phantomjs | |
require 'tempfile' | |
def do_bmklt(js,url) | |
tmp = Tempfile.new("tmpjs") | |
begin | |
tmp.puts js |
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
# source 'http://rubygems.org' | |
source :gemcutter | |
gem 'rails', '3.1.0.beta1' | |
# Asset template engines | |
gem 'json' | |
gem 'sass' | |
gem 'coffee-script' | |
gem 'uglifier' |
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/sh | |
make realclean | |
autoconf | |
./configure --prefix=~/tmp/ruby-trunk \ | |
--with-gcc=gcc-4.2 \ | |
--with-arch=x86_64 \ | |
--with-readline-dir=/usr/local \ |
OlderNewer