##Date and Time
=TIMEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " ")) + DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Date
=DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Time
| function checksumCC(creditCardString){ | |
| sum = creditCardString | |
| .split('') | |
| .reverse() | |
| .reduce(function(total, num, i){ | |
| num = parseInt(num, 10); | |
| if(i%2 !== 0){ | |
| num *= 2; | |
| if(num>9){ | |
| num -= 9; |
| var isbns = ['ISBN 0-330-28498-3', | |
| 'ISBN 1-58182-008-9', | |
| 'ISBN 2-226-05257-7', | |
| 'ISBN 3-7965-1900-8', | |
| 'ISBN 4-19-830127-1', | |
| 'ISBN 5-85270-001-0', | |
| 'ISBN 978-600-119-125-1', | |
| '978-601-7151-13-3', | |
| 'ISBN 978-602-8328-22-7', | |
| 'ISBN 978-603-500-045-1', |
| var getFristImage = function(content) { | |
| var el = document.createElement( 'html' ); | |
| el.innerHTML = content; | |
| return el.getElementsByTagName( 'img' )[0].src;; | |
| }; |
##Date and Time
=TIMEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " ")) + DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Date
=DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Time
| export PS1="\e[44mogem@local:\e[m \w \[$txtcyn\]\$git_branch\[$txtrst\] \n$ " | |
| export CLICOLOR=1 | |
| export LSCOLORS=GxFxCxDxBxegedabagaced | |
| export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
| export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
| export PATH=$PATH:~/.scripts/ | |
| export PATH=$PATH:/usr/local/bin | |
| export PATH="$HOME/.node/bin:$PATH" | |
| source $GITAWAREPROMPT/main.sh |
| import subprocess | |
| raw_location = subprocess.check_output("whereami", shell=False) | |
| raw_location = raw_location.split() | |
| lat = raw_location[1] | |
| lon = raw_location[3] | |
| hashtag = "#latlon"+lat+"__"+lon | |
| command = "echo "+ "\'" + hashtag + "\' | pbcopy" | |
| p = subprocess.Popen(['pbcopy'], stdin=subprocess.PIPE) | |
| p.stdin.write(hashtag) | |
| p.stdin.close() |
| //"YYYY-MM-DD hh:mm" | |
| function zeroFill(i){ | |
| return (i<10 ? '0' : '') + i; | |
| } | |
| var getDate = function(){ | |
| var d = new Date(); | |
| var year = d.getFullYear(); | |
| var month = zeroFill(d.getMonth()) | |
| var day = zeroFill(d.getDate()) |
| def get_word(num) | |
| teen = "teen" | |
| case num | |
| when 0; return "o' clock" | |
| when 1; return "one" | |
| when 2; return "two" | |
| when 3; return "three" | |
| when 4; return "four" | |
| when 5; return "five" | |
| when 6; return "six" |
| sentence = "soijasdoijasdiojfuhfuhsdfhoscaroijasdoijasdijd" | |
| n = sentence.length | |
| key = "oscar" | |
| l = key.length | |
| i = 0 | |
| while i < n do | |
| j = 0 | |
| puts sentence[i] |
| var intString = "10" | |
| var numberInt = intString.toInt() | |
| var numberString = "10.1" | |
| var numberDouble = (numberString as NSString).doubleValue | |
| var numberFloat = NSString(string: numberString).floatValue |