Skip to content

Instantly share code, notes, and snippets.

View asoltys's full-sized avatar

Adam Soltys asoltys

View GitHub Profile
/* jquery.fieldjump.js */
jQuery.fn.jumpsTo = function(element) {
this.bind('keyup', {to: element}, function(event) {
var to = $(event.data.to)
var from = $(event.target)
var keys_typed = from.val().length;
var keys_required = from.attr('maxlength');
<ExpectedValue Value="0" Description="Annacis Channel"/>
<ExpectedValue Value="1" Description="Annieville Channel"/>
<ExpectedValue Value="3" Description="Bedford Channel"/>
<ExpectedValue Value="7" Description="Big Bend - Queens"/>
<ExpectedValue Value="8" Description="Big Eddy"/>
<ExpectedValue Value="9" Description="Bishops Reach"/>
<ExpectedValue Value="10" Description="Burr Landing Channel"/>
<ExpectedValue Value="11" Description="Byrne Road"/>
<ExpectedValue Value="12" Description="Cannery Channel"/>
<ExpectedValue Value="13" Description="Canoe Pass"/>
15:22:10 adam@B027300 :www$ ab -t 5 http://renew.pac.pwgsc.gc.ca/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking renew.pac.pwgsc.gc.ca (be patient)
Finished 5 requests
Server Software: Microsoft-IIS/6.0
> moment('2011-11-04', 'YYYY-MM-DD').add('d', 1).format('YYYY-MM-DD')
'2011-11-05'
> moment('2011-11-05', 'YYYY-MM-DD').add('d', 1).format('YYYY-MM-DD')
'2011-11-06'
> moment('2011-11-06', 'YYYY-MM-DD').add('d', 1).format('YYYY-MM-DD')
'2011-11-06'
> moment('2011-11-07', 'YYYY-MM-DD').add('d', 1).format('YYYY-MM-DD')
'2011-11-08'
source ~/.git-completion.sh
complete -o bashdefault -o default -o nospace -F _git git 2>/dev/null \
|| complete -o default -o nospace -F _git git
complete -o bashdefault -o default -o nospace -F _git g 2>/dev/null \
|| complete -o default -o nospace -F _git g
cat index.html | curl http://validator.nu/ -F "out=json" -F body=@- -H "Content-Type: multipart/form-data" > results.html
$ export test='"communications-b-fra.html" "./aa-sa/documents/Folder Settings/Folder.htt"'
$ echo $test
"communications-b-fra.html" "./aa-sa/documents/Folder Settings/Folder.htt"
$ git rm --cached --ignore-unmatch $test
$ git status
# On branch master
nothing to commit (working directory clean)
gource -800x600 -s 0.5 --hide filenames,bloom --highlight-users --title "Title" -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -vpre ultrafast -crf 1 -threads 0 -bf 0 output.mp4
@asoltys
asoltys / gist:3659485
Created September 6, 2012 18:59
Bitcoin Vancouver Minutes -- September 6, 2012
- Pre-meeting: Discussed latest news, BitFloor hacks, Mitt Romney tax return ransom
- Thanks to Launch Academy for hosting and providing space
- Robert gives mymoneycloud presentation, review of bitcoin security breaches, demonstration of ease of use difficulties
- Vasili asks questions about technical implementation, salts vs. keys, Michael questions business model, exchange rates, etc.
- Robert gives update about Seattle bitcoin scene and upcoming London bitcoin conference
- Michael to start Google Groups list for Vancouver Bitcoin
- Adam demos PoS utility and discusses bitcoin local exchanges and getting local businesses on board
- Bitinstant mastercard discussion
- Mining discussion - Vasili talks about evolution of CPU mining to FPGA and we speculate about ASIC mining and Butterfly labs hardware
- Yuri gives online gambling background and we discuss bitcoin's potential for that industry
<?xml version="1.0"?>
<digitalAssetContract version="1.0">
<entity shortname="digiBTC"
longname="Digital Bitcoin Tokens"
email="stretchwarren@gmail.com or asoltys@gmail.com"/>
<issue company="Vancouver Bitcoin"
email="stretchwarren@gmail.com or asoltys@gmail.com"
contractUrl="vanbtc.ca/ot/contracts/digiBTC"