View gist:70c757e8f1e4bf4578ff
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
cd ~/Desktop/ticonf2014testappdemo/alloytest | |
titanium clean | |
titanium build --platform=iphone --test & | |
sleep 30 | |
killall "iPhone Simulator" | |
export PATH="/Users/andrewmcelroy/.rbenv/shims:/Applications/Postgres.app/Contents/MacOS/bin:/Users/andrewmcelroy/bin:/usr/local/bin:/Users/andrewmcelroy/.rbenv/bin:/Users/andrewmcelroy/android/tools:/Users/andrewmcelroy/android/:/Users/andrewmcelroy/android//tools:/Users/andrewmcelroy/android/platform-tools/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/andrewmcelroy/.ec2/bin" | |
echo | titanium calabash --platform=iphone |
View ios-sim
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
#!/bin/zsh | |
# you need to install npm install -g ios-sim before this will work | |
# there is an irony in the fact that ios-sim is phonegap's version, but it was forked from Jeff Haynie (CEO Appcelerator) | |
ios-sim $1 $2 $5 $6 $7 $8 |
View gist:40c8bb9ff14c4429615d
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
➜ hyperloop-android git:(master) ../hyperloop-cli/bin/hyperloop clean compile package launch --src=examples/touches --platform=android | |
[INFO] Cleaned build | |
[INFO] Generating library | |
[INFO] Generating system metabase will take up to a minute (or greater) depending on your environment.This file will be cached and will execute faster on subsequent builds. | |
◠ Generating system metabase |
View gist:190033
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
Loaded suite NestingLevelTest | |
Started | |
........ | |
Finished in 0.030731 seconds. | |
8 tests, 9 assertions, 0 failures, 0 errors | |
Loaded suite TryRubyOutputTest | |
Started | |
.F..... | |
Finished in 0.002457 seconds. |
View mindet output
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
Last login: Sat Oct 24 21:06:31 on console | |
~/Desktop/pythinkgear/thinkgear$ python thinkgear.py | |
No handlers could be found for logger "__main__.bytes" | |
DEBUG:__main__:discarding '\x02' while syncing | |
DEBUG:__main__:discarding '\x95' while syncing | |
DEBUG:__main__:discarding '\xe8' while syncing | |
DEBUG:__main__:bad checksum | |
DEBUG:__main__:putting back 60 bytes | |
DEBUG:__main__:discarding '\x02' while syncing |
View update_profile_image.rb
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 | |
# This script performs an OAuth authorized POST with multipart encoding to | |
# http://twitter.com/account/update_profile_image.json | |
# | |
# This code is primarily taken from my Grackle library's implementation at | |
# http://github.com/hayesdavis/grackle | |
# | |
# RUNNING THIS WILL CHANGE AN ACCOUNT'S PROFILE IMAGE. BE CAREFUL. | |
# |
View sandbox ruby 1.9 compile fail
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
sophrinix$ ./ruby ../why_sandbox/setup.rb | |
---> bin | |
<--- bin | |
---> lib | |
---> lib/sandbox | |
<--- lib/sandbox | |
<--- lib | |
---> ext | |
---> ext/sand_table | |
/usr/local/bin/ruby /Users/sophrinix/Desktop/why_sandbox/ext/sand_table/extconf.rb |
View autobench_grapher.rb
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
# Used to graph results from autobench | |
# | |
# Usage: ruby autobench_grapher.rb result_from_autobench.tsv | |
# | |
# This will generate three svg & png graphs | |
require "rubygems" | |
require "scruffy" | |
require 'csv' | |
require 'yaml' |
View PHP Capistrano Recipe.rb
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
# -------------------------------------------- | |
# General | |
# -------------------------------------------- | |
set :shared_children, %w(cache logs) # Shared directories, these directories contain generated content which should not be wiped out during deployments. | |
set :application, "domain.com" # Application name | |
set :deploy_to, "/var/www/#{application}/#{stage}" # Path where files are deployed to ... | |
# -------------------------------------------- | |
# Server | |
# -------------------------------------------- |
View new-twitter-html-vs-old-twitter-html
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
this script no longer works with the new twitter: | |
http://userscripts.org/scripts/show/43115 | |
Here is a diff between the two html files. Matz twitter page is used in this example | |
OlderNewer