Instantly share code, notes, and snippets.
jeremyruppel /keybase.md
CreatedSeptember 24, 2016 00:17
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
| varrequest=require('superagent'); | |
| /** | |
| *@constructor | |
| */ | |
| module.exports=Client; | |
| functionClient(api_key){ | |
| this.params={}; |
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
| varrequest=require('superagent'); | |
| /** | |
| *@constructor | |
| */ | |
| module.exports=Client; | |
| functionClient(api_key){ | |
| this.params={}; |
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
| varrequest=require('superagent'); | |
| /** | |
| *@constructor | |
| */ | |
| module.exports=Client; | |
| functionClient(api_key){ | |
| this.params={}; |
jeremyruppel /Run AppleScript.applescript
Last activeAugust 26, 2025 12:36
Automator action to print a QR code for an Evernote note. 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
| onrun {input, parameters} | |
| tellapplication"Evernote" | |
| getthe note linkofthefirstitemin (selectionaslist) | |
| end tell | |
| endrun |
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
| #!/usr/bin/env bash | |
| ## | |
| # The dimensions for the physical QR code, in pixels. | |
| # The Brother QL-570 Label Printer tape is 2.44" wide | |
| # at 72ppi, and 72 * 2.44 = 175.68, so 175 is good. | |
| size=175x175 | |
| ## | |
| # Usage: qrcode [url] |
jeremyruppel /my_class_spec.rb
CreatedJune 11, 2013 20:48
git-approvals usagehttps://github.com/jeremyruppel/git-approvals 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
| describeMyClassdo | |
| example'#foo'do | |
| verify{subject.foo} | |
| end | |
| 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
| it'should GET index'do | |
| xhr:get,api_resource_path(version,resource.id),:auth_token=>user.authentication_token | |
| verify:format=>:jsondo | |
| last_response.body | |
| end | |
| end |
jeremyruppel /tracking_hash.rb
Last activeDecember 18, 2015 09:19
Approval tests example: Complex types 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
| example'#tracking_hash'do | |
| verify{users(:homer).tracking_hash} | |
| end |
jeremyruppel /formatter_spec.rb
Last activeDecember 18, 2015 09:19
Approval tests example: Lots of text 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
| subject{Formatter.new(users(:homer))} | |
| example'#mailing_address'do | |
| verify{subject.mailing_address} | |
| end |
NewerOlder