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
| <h1>Scan Example</h1> | |
| <p><button id='scanBtn'>Scan now</button></p> | |
| <script type="text/javascript"> | |
| function onDeviceReady() { | |
| var onCardIOComplete = function(response) { | |
| console.log("card.io scan result: " + response.card_number); | |
| // response fields include card_type, redacted_card_number, | |
| // card_number, expiry_month, expiry_year, cvv, zip |
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
| $ git push | |
| Counting objects: 32, done. | |
| Delta compression using up to 8 threads. | |
| Compressing objects: 100% (21/21), done. | |
| Writing objects: 100% (21/21), 2.11 KiB, done. | |
| Total 21 (delta 18), reused 0 (delta 0) | |
| remote: /data/github/current/lib/github/config/resque.rb:27: undefined method `constantize' for "GitHub::Jobs::RepositoryUpdateLanguage":String (NoMethodError) | |
| remote: from /data/github/current/lib/github/config/resque.rb:26:in `each' | |
| remote: from /data/github/current/lib/github/config/resque.rb:26 | |
| remote: from /data/github/current/lib/rock_queue.rb:9:in `require' |
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
Show hidden characters
| { | |
| "cmd": ["lessc", "-x", "$file", "$file_path/$file_base_name.css"], | |
| "selector": "source.css.less" | |
| } |
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
| Here is my ~/.gitconfig, for anyone interested in color, etc. :) | |
| [color] | |
| branch = auto | |
| diff = auto | |
| status = auto | |
| [color "branch"] | |
| current = yellow reverse | |
| local = yellow | |
| remote = green |
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 'formula' | |
| <<-COMMENTS | |
| This is the Homebrew formula for Python. | |
| Versions | |
| -------- | |
| This formula is currently tracking version 2.6.x. |
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
| If builds of PostgreSQL 9 are failing and you have version 8.x installed, | |
| you may need to remove the previous version first. See: | |
| https://github.com/mxcl/homebrew/issues/issue/2510 | |
| To build plpython against a specific Python, set PYTHON prior to brewing: | |
| PYTHON=/usr/local/bin/python brew install postgresql | |
| See: | |
| http://www.postgresql.org/docs/9.0/static/install-procedure.html | |
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
| #!/Users/brent/.virtualenvs/lumber/bin/python | |
| import cv | |
| cv.NamedWindow("w1", cv.CV_WINDOW_AUTOSIZE) | |
| camera_index = 0 | |
| capture = cv.CaptureFromCAM(camera_index) | |
| gx = gy = 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
| """ | |
| From http://www.authorize.net/support/merchant/Transaction_Response/Response_Reason_Codes_and_Response_Reason_Text.htm | |
| """ | |
| REASONS = [ | |
| # resp code, reason code, reason text, notes | |
| [1, 1, "This transaction has been approved."], | |
| [2, 2, "This transaction has been declined."], | |
| [2, 3, "This transaction has been declined."], | |
| [2, 4, "This transaction has been declined.", "The code returned from the processor indicating that the card used needs to be picked up."], |
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
| # GIT COMPLETION | |
| # (from https://github.com/git/git/blob/master/contrib/completion/git-completion.bash) | |
| source ~/.git-completion.sh | |
| # BASH PROMPT WITH GIT BRANCH | |
| # Set the base PS1 | |
| # PS1="\u:\h \W$ " | |
| PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_ps1 " \[\033[01;35m\](%s)\[\033[0m\]")$ ' |
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
| git pretty-log `git describe --tags HEAD~1 | awk '{split($0,a,"-"); print a[1]}'`..HEAD |