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! |
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
| 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
| 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
| <!-- 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
| <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
| 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
| ➜ dupe git:(master) time ./dupe ~ | |
| Total duped files found: 49432 | |
| ./dupe ~ 6.73s user 16.67s system 77% cpu 30.309 total | |
| ➜ dupe git:(master) time ./dupe ~ | |
| Total duped files found: 49432 | |
| ./dupe ~ 6.74s user 16.95s system 77% cpu 30.564 total | |
| ➜ dupe git:(master) time ./dupe ~ | |
| Total duped files found: 49432 | |
| ./dupe ~ 6.70s user 16.85s system 77% cpu 30.423 total |
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
| ➜ dupe git:(master) ✗ ./dupe --help | |
| Usage of ./dupe: | |
| -verbose=false: Print the list of duplicate files. |
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
| diff --git a/Makefile.in b/Makefile.in | |
| index 75fb4ba..3ccc2de 100644 | |
| --- a/Makefile.in | |
| +++ b/Makefile.in | |
| @@ -110,13 +110,15 @@ zap: zap.o intoa.o | |
| $(CC) $(CFLAGS) -o $@ zap.o intoa.o -lutil | |
| install: force | |
| - $(INSTALL) -m 555 -o bin -g bin arpwatch $(DESTDIR)$(BINDEST) | |
| - $(INSTALL) -m 555 -o bin -g bin arpsnmp $(DESTDIR)$(BINDEST) |
NewerOlder