Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

I hereby claim:

  • I am jeremyruppel on github.
  • I am ruppel (https://keybase.io/ruppel) on keybase.
  • I have a public key whose fingerprint is 6BC0 48A5 BA4D 361A 7F22 26D8 5E8C 0AAA 6F00 5E06

To claim this, I am signing this object:

@jeremyruppel
jeremyruppel /client.js
CreatedApril 25, 2016 19:03
Testing an HTTP client: Part III
varrequest=require('superagent');
/**
*@constructor
*/
module.exports=Client;
functionClient(api_key){
this.params={};
@jeremyruppel
jeremyruppel /client.js
CreatedApril 25, 2016 18:43
Testing an HTTP client: Part II
varrequest=require('superagent');
/**
*@constructor
*/
module.exports=Client;
functionClient(api_key){
this.params={};
@jeremyruppel
jeremyruppel /client.js
CreatedApril 25, 2016 18:36
Testing an HTTP client: Part I
varrequest=require('superagent');
/**
*@constructor
*/
module.exports=Client;
functionClient(api_key){
this.params={};
@jeremyruppel
jeremyruppel /Run AppleScript.applescript
Last activeAugust 26, 2025 12:36
Automator action to print a QR code for an Evernote note.
onrun {input, parameters}
tellapplication"Evernote"
getthe note linkofthefirstitemin (selectionaslist)
end tell
endrun
@jeremyruppel
jeremyruppel /qrcode.sh
CreatedAugust 12, 2013 03:56
Printing a QR code from the command line.
#!/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]
describeMyClassdo
example'#foo'do
verify{subject.foo}
end
end
@jeremyruppel
jeremyruppel /api_requests_spec.rb
CreatedJune 11, 2013 20:46
Approval tests example: Legacy code
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
jeremyruppel /tracking_hash.rb
Last activeDecember 18, 2015 09:19
Approval tests example: Complex types
example'#tracking_hash'do
verify{users(:homer).tracking_hash}
end
@jeremyruppel
jeremyruppel /formatter_spec.rb
Last activeDecember 18, 2015 09:19
Approval tests example: Lots of text
subject{Formatter.new(users(:homer))}
example'#mailing_address'do
verify{subject.mailing_address}
end
NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp