I hereby claim:
- I am marcelkornblum on github.
- I am marcelkornblum (https://keybase.io/marcelkornblum) on keybase.
- I have a public key whose fingerprint is 5ACA 3399 AA6B 2D62 6778 E81F CCC6 F1C2 DD3B 3546
To claim this, I am signing this object:
angular.module('myApp', ['class']); |
#!/usr/bin/env bash | |
# Delete .pyc files and empty directories from root of project | |
cd ./$(git rev-parse --show-cdup) | |
# Clean-up | |
find . -name ".DS_Store" -delete | |
NUM_PYC_FILES=$( find . -name "*.pyc" | wc -l | tr -d ' ' ) | |
if [ $NUM_PYC_FILES -gt 0 ]; then |
_complete_ssh_hosts () | |
{ | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
cut -f 1 -d ' ' | \ | |
sed -e s/,.*//g | \ | |
grep -v ^# | \ | |
uniq | \ | |
grep -v "\[" ; |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
function getDateFromString( input ) { | |
var d = new Date(); | |
var this_year = d.getUTCFullYear(); | |
var date_obj = new Date(input); // try just the default | |
if ( _.isDate(date_obj) && _.isFinite(date_obj.getTime()) && date_obj.getUTCFullYear() >= this_year ) { // well that was easy | |
return date_obj; | |
} | |
input_int = _.parseInt(input); |
""" | |
This is strongly based on https://gist.github.com/unbracketed/3380407; | |
thanks to @unbracketed and the various commenters on the page. | |
I've mainly cleaned up the code into basic methods, and included the | |
various suggestions in the comments. Hope this is useful to someone. | |
Make sure you have `requests` and `csv` installed via pip then run it: | |
`python export_gh_issues_to_csv.py` |
# heavily inspired by https://gist.github.com/rbellamy/3c5033ba605a090824e8 | |
# gets everything from bitbucket and brings it across to GH, adding LFS where necessary for file size | |
# then archives everything brought over | |
# | |
# runs on Python 3; does clone --mirror and push --mirror, cleaning up after itself | |
# | |
# you need git-lfs installed on the local system | |
# also make sure you've got git credential caching set up https://help.github.com/articles/caching-your-github-password-in-git/ | |
import json |
#!/bin/bash | |
# Syncs the WSL clock with the machine clock - they get out of sync after suspension | |
sudo hwclock -s |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | |
<title>iFrame Child</title> | |
<script type="text/javascript" src="iframe-messenger.js"></script> | |
</head> | |
<body> |