This article is now published on my website: When are circular imports fatal?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# vim: set fileencoding=utf-8 ff=unix tw=78 ai syn=python : per PEP 0263 | |
# python 2.7.13 under Linux Ubuntu 14.04 Date : 2017-02-02 | |
# IPython 5.1.0 from Anaconda distribution | |
# | |
# _______________| ipython_config.py : custom config file | |
# | |
''' | |
CHANGE LOG Latest config version, see https://git.io/ipython_config.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2012-02-17 | |
# | |
# _______________| digy : tame DNS utility dig with reasonable options. | |
# | |
# Usage: digy [address] [rev|name|short|mail|all|long|longa|who] | |
# | |
# Examples: % digy friendfeed.com | |
# 69.63.180.52 | |
# # default second argument is 'short' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# bash 4.3.11(1) Linux 3.13.0 git 1.9.1 Date : 2017-08-14 | |
# | |
# _______________| git-lu : get last commit date for file(s) | |
# since git can change OS file modification times! | |
# | |
# Usage: git lu [filename(s), wildcards optional] | |
# | |
# Example: $ git lu *.ipynb # SAMPLE OUTPUT FORMATTING | |
# 0000-00-00 _Not_committed _No_SHA 00-tpl-v4.ipynb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window){var i,$sound,$buttonGroup;var $sounds=$(".sound");var clientId=require("config").get("client_id");var oauthToken=require("lib/connect").getAuthToken();var conversionHelper=require("lib/helpers/conversion-helper");var $downloadButton,size;var params,downloadUrl,onSuccess;for(i=$sounds.length-1;i>=0;i--){$sound=$($sounds[i]);var soundcloudUrl="https://soundcloud.com"+($sound.find(".soundTitle__title").attr("href")||window.location.pathname);params={url:soundcloudUrl,client_id:clientId};onSuccess=function($sound){return function(data){var params={client_id:clientId};downloadUrl=require("lib/url").stringify({query:params},data.stream_url+".mp3");$buttonGroup=$($sound.find(".sound__soundActions .sc-button-group")[0]);size=$buttonGroup.find(".sc-button:first")[0].className.match(/sc-button-((?:small)|(?:medium))/)[1];$downloadButton=$('<a class="sc-button sc-button-download sc-button-icon sc-button-responsive">Download</a>').attr({title:"Download this sound ("+conversionHelper.bytesToMB(data.origi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import time | |
t0 = time.clock() | |
import pandas as pd | |
from pandas.tseries.offsets import BDay | |
import numpy as np | |
import datetime as dt | |
from copy import copy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BUILD_DIR := gen | |
# pandoc is a handy tool for converting between numerous text formats: | |
# http://johnmacfarlane.net/pandoc/installing.html | |
PANDOC := pandoc | |
# pandoc options | |
# Liberation fonts: http://en.wikipedia.org/wiki/Liberation_fonts | |
PANDOC_PDF_OPTS := --toc --chapters --base-header-level=1 --number-sections --template=virsto_doc.tex --variable mainfont="Liberation Serif" --variable sansfont="Liberation Sans" --variable monofont="Liberation Mono" --variable fontsize=12pt --variable documentclass=book | |
PANDOC_EBOOK_OPTS := --toc --epub-stylesheet=epub.css --epub-cover-image=cover.jpg --base-header-level=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# bash 4.3.11(1) Linux 3.13.0 git 1.9.1 Date : 2018-01-12 | |
# | |
# _______________| git-logur : get log of GitHub repo without cloning. | |
# | |
# Usage: $ git-logur [username] [repository] [-m|-c|-v] | |
# # Format defaults to messages -m, else | |
# # -c for concise text, or -v for verbose json. | |
# # Concise includes author and committer, with timestamps. | |
# |
This documentation aims at being a quick-straight-to-the-point-hands-on AWS resources manipulation with [boto3][0].
First of all, you'll need to install [boto3][0]. Installing it along with [awscli][1] is probably a good idea as
- [awscli][1] is boto-based
- [awscli][1] usage is really close to boto's
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To minimize bugs, include this comment: | |
# | |
# | |
# _oo0oo_ | |
# o8888888o | |
# 88" . "88 | |
# (| -_- |) | |
# 0\ = /0 | |
# ___/`---'\___ | |
# .' \| |// '. |
OlderNewer