I hereby claim:
- I am RobertDaleSmith on github.
- I am robertdalesmith (https://keybase.io/robertdalesmith) on keybase.
- I have a public key whose fingerprint is 072C 1E03 49F1 4720 E583 113A 3ECB 4FBB F0AC E0E4
To claim this, I am signing this object:
| var unfollowNext = () => { | |
| var followButtons = $('.following button.following-text.button-text'); | |
| if (followButtons && followButtons[0]) { | |
| $(window).scrollTop(followButtons.offset().top-250); | |
| followButtons[0].click(); | |
| } else { | |
| $(window).scrollTop(99999999999999999); | |
| } | |
| var randNextTime = Math.floor(Math.random() * 2000) + 500; | |
| t = setTimeout(unfollowNext, randNextTime); |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |
| alias sync-itunes='rsync -av --force --delete --size-only /Volumes/robert/Music/iTunes /Volumes/DataHD/Users/robert/Music' |
| function test(option){ | |
| var start = Date.now(); | |
| var result; | |
| if(option){ | |
| result = $('body').find('p + p + p').parent(); | |
| }else{ | |
| result = $('body').find(':has(> p + p + p)'); | |
| } | |
| var end = Date.now(); | |
| return (end - start); |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1="\u@\h \w\[\033[36m\]\$(parse_git_branch)\[\033[00m\] $ " | |
| alias redisstart='sudo launchctl start io.redis.redis-server' | |
| alias redisstop='sudo launchctl stop io.redis.redis-server' | |
| alias edit='open -a "Sublime Text"' | |
| alias subl='open -a "Sublime Text"' |
| function getYouTubeID(url){ | |
| var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/; | |
| var match = url.match(regExp); | |
| if (match&&match[7].length==11){ | |
| return match[7]; | |
| }else{ | |
| return ""; | |
| } | |
| } |
| /* Trello Node.js Developer Challenge - Solution | |
| * | |
| * https://trello.com/jobs/developer | |
| * | |
| * If hash is defined by the following pseudo-code: | |
| * | |
| * Int64 hash (String s) { | |
| * Int64 h = 7 | |
| * String letters = "acdegilmnoprstuw" | |
| * for(Int32 i = 0; i < s.length; i++) { |