This file contains hidden or 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
| def try_to_launch_simulator(target) | |
| ios_sim = `which ios-sim`.strip | |
| if ios_sim.empty? | |
| puts "Please install ios-sim:" | |
| puts "brew install ios-sim, or https://github.com/Fingertips/ios-sim" | |
| exit | |
| else | |
| system_or_exit(%Q[#{ios_sim} launch "#{File.join(build_dir("-iphoneSimulator"), "#{target}")}" --sdk 5.0 --family iphone --stdout /dev/null --stderr /dev/null]) | |
| `osascript -e 'tell application "iPhone Simulator" to activate'` | |
| end |
This file contains hidden or 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> | |
| <script> | |
| <!-- Inject the content script --> | |
| chrome.browserAction.onClicked.addListener(function(tab) { | |
| chrome.tabs.executeScript(null, { file: "jquery.min.js" }, function() { | |
| chrome.tabs.executeScript(null, { file: "ptcx.js" }); | |
| }); | |
| }); |
This file contains hidden or 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
| <!-- Force a reflow of the page by changing its dimensions. --> | |
| var redraw = function() { | |
| chrome.windows.getLastFocused(function(window) { | |
| var dimensions = {}; | |
| dimensions.width = window.width; | |
| dimensions.height = window.height; | |
| dimensions.left = window.left; | |
| dimensions.top = window.top; |
This file contains hidden or 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
| PivotalTracker::Client.token = API_TOKEN | |
| @tracker_project = PivotalTracker::Project.find(PROJECT_ID) | |
| fake_story = { | |
| :name => 'This is a story title.', | |
| :story_type => 'feature', | |
| :current_state => 'unstarted', | |
| :labels => ['label1', 'label2'], | |
| :description => 'This is the story description. Blah blah blah.', | |
| :estimate => 1 |
This file contains hidden or 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 'bundler' | |
| Bundler.require | |
| IPSUM_FILE = 'hipster-ipsum.txt' | |
| IPSUM_TEXT = File.readlines(IPSUM_FILE) | |
| API_TOKEN = ENV['API_TOKEN'] | |
| PROJECT_ID = ENV['PROJECT_ID'].to_i | |
| STORY_COUNT = ENV['STORY_COUNT'].to_i |
This file contains hidden or 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
| type Image interface { | |
| image.Image | |
| Set(x, y int, c image.Color) | |
| } |
This file contains hidden or 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
| _ /| | |
| \'o.O' | |
| =(___)= | |
| U ack --thppt! |
OlderNewer