I hereby claim:
- I am tangingw on github.
- I am tangingw (https://keybase.io/tangingw) on keybase.
- I have a public key whose fingerprint is 4CCD A09D 08D1 D23A 9B55 2D95 87E6 558E 507A A2BE
To claim this, I am signing this object:
| import os | |
| import sys | |
| import time | |
| """This is a naughty script | |
| to mimic linux watch process | |
| in Mac OS X terminal. It might be | |
| useful for other *BSD family. | |
| """ |
| package main | |
| //Recursive Binary Search | |
| func binarySearch(numList []int64, key int64) int { | |
| low := 0 | |
| high := len(numList) - 1 | |
| if low <= high { |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| /* | |
| Reference: | |
| 1. http://0xax.blogspot.my/2014/08/binary-tree-and-some-generic-tricks.html | |
| 2. https://www.tutorialspoint.com/data_structures_algorithms/tree_traversal.htm |
| """Synosis: | |
| This is the algorithm that address the | |
| following trick math question: | |
| 1 + 4 = 5 | |
| 2 + 5 = 12 | |
| 3 + 6 = 21 | |
| 8 + 11 = ? | |
| However this algorithm can also find the solution for such |
| import os | |
| import sys | |
| import io | |
| import tarfile | |
| import urllib.request | |
| ARCHIVE_URL = 'http://d.pr/f/YqS5+' | |
| def decorate_msg(func): | |
| def wrapped(*args): | |
| return "the answer is %f" % func(*args) | |
| return wrapped | |
| def filename_decorate(filename): |
| import os | |
| import re | |
| import sys | |
| PROXY = "<HTTP URL of YOUR PROXY>" | |
| TRUSTED_URL = [ | |
| "pypi.org", | |
| "files.pythonhosted.org", | |
| "pypi.python.org" |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| # convert json to yaml | |
| # http://pyyaml.org/wiki/PyYAMLDocumentation | |
| # python3 json2yaml.py < ~/code/manpow/moneybug/mbuploader/support/offices.json | |
| # gist https://gist.github.com/noahcoad/46909253a5891af3699580b8f17baba8 | |
| import yaml, json, sys | |
| sys.stdout.write(yaml.dump(json.load(sys.stdin))) |