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 'twitter' | |
Twitter.configure do |config| | |
config.consumer_key = 'xxx' | |
config.consumer_secret = 'xxx' | |
config.oauth_token = 'xxx' | |
config.oauth_token_secret = 'xxx' | |
end | |
threads = [] |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Gamepad Shit</title> | |
<script type="text/javascript"></script> | |
<style type="text/css"></style> | |
</head> | |
<body> | |
<h1>Gamepad Shit</h1> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>How Old Was That?</title> | |
<script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<script type="text/javascript"> | |
var username = ""; | |
$.xhrPool = []; |
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 'daemons' | |
require 'tweetstream' | |
$output_file = '???/deleted_tweets.txt' | |
Daemons.run_proc( | |
'deletweet', | |
log_output: true, | |
dir_mode: :script | |
) do |
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 'twitter' | |
require 'active_support/core_ext' | |
timeline = Twitter.user_timeline("skattyadz", count: 200, include_rts: true) | |
puts timeline.select{|t| t.created_at > 1.day.ago}.count |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
</head> | |
<body> | |
<h1>canvas</h1> | |
<canvas width="400" height="400" id="canvasElement"></canvas> | |
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
var i = 0; | |
var addPhotoInterval = setInterval(function() { | |
instawall.renderImage(data.data[i++]); | |
if (i == data.data.length) clearInterval(addPhotoInterval); | |
}, 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
require 'rubygems' | |
require 'sinatra' | |
require 'json' | |
require 'omniauth' | |
require 'omniauth-facebook' | |
require 'omniauth-twitter' | |
class SinatraApp < Sinatra::Base | |
configure do | |
set :sessions, true |
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
convert 1.jpg -scale '225x225^' -gravity center -extent 225x225 1-square.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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>iOS6 Safari Photo Capture Demo</title> | |
<script type="text/javascript"> | |
window.onload = function() { | |
var input = document.getElementById("input"); | |
input.addEventListener("change", handleFile); | |
} |