I hereby claim:
- I am sh78 on github.
- I am shender (https://keybase.io/shender) on keybase.
- I have a public key ASDjMk3OJAoTviXz8UqEbjTnKCST9qaW5RWKcLKDcID1tgo
To claim this, I am signing this object:
# extract html comments from files in current working directory recursively | |
from bs4 import BeautifulSoup, Comment | |
import os | |
# run the following commands to install dependencies (OS X): | |
# easy_install beautifulsoup4 | |
# easy_install lxml |
Hints.characters = 'yuiophjklnm'; // for right hand | |
// Disable by default on certain domains | |
// Instead of pressing alt+s | |
// settings.blacklistPattern = /.*mail.google.com.*|todoist.com\/app/i; | |
map(';pa', ':setProxyMode clear'); | |
// Vim editor bindings | |
aceVimMap('jk', '<Esc>', 'insert'); |
I hereby claim:
To claim this, I am signing this object:
# Format Current Date | |
date +%Y-%m-%d\ %H:%M:%S | |
# Reformatting string date | |
# most distros | |
date -d'27 JUN 2011' +%Y%m%d | |
# => 20110627 | |
# os x / BSD | |
date -jf "%m %d %Y" "07 08 1990" +%Y-%m-%d | |
# => 1990-07-08 |
window.onload = function(){ | |
c = document.getElementById("myCanvas"); | |
cc = c.getContext("2d"); | |
setInterval(update, 1000/30); | |
}; | |
var c = document.getElementById("myCanvas"); | |
var cacX1 = 960; | |
var dy = document.getElementById("myCanvas").height - 60; | |
var speed = -1; | |
var drop = -7; |
#!/usr/bin/env python3 | |
import fileinput | |
import re | |
## | |
# Extract URLs from file or `stdin` | |
# | |
# Prints out a standard list of url address substrings contained in `fileinput` | |
# Call on a file or pipe to `stdin` | |
# |
#!/usr/bin/env python3 | |
import fileinput | |
import re | |
## | |
# Extract email addresses from file or `stdin` | |
# | |
# Prints out a standard list of email address substrings contained in `fileinput` | |
# Call on a file or pipe to `stdin` | |
# |
# write date created to date modified | |
## `GetFileInfo -d $file` gives us 01/28/2007 22:56:00 | |
# we need "YYYYMMDDhhmm" for `touch -mt` to set modification time | |
set tally 0 | |
for file in (find ./ -maxdepth 1) | |
set dateString "" # final result goes here | |
set cuts "7-10" "1-2" "4-5" "12-13" "15-16" # string indices to extract | |
for cut in $cuts | |
set dateString $dateString(GetFileInfo -d $file | cut -c $cut) | |
end |
/** | |
* Format a date like YYYY-MM-DD. | |
* | |
* @param {string} template | |
* @param {Date=} [date] | |
* @return {string} | |
* @license MIT | |
*/ | |
function formatDate(template, date) { |