A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
NOTE: You don't need to compile Mosh on Cygwin yourself anymore; just install the package with Cygwin's setup.exe
.
Download Cygwin.
Run setup.exe
and install the following packages in addition to the default ones:
Below are many examples of function hoisting behavior in JavaScript. Ones marked as works
successfuly print 'hi!' without errors.
To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js
(I may be using incorrect terms below, please forgive me)
Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
Firstly install Brew on your MAC
Then install PHP
#!/usr/bin/env python | |
from multiprocessing import Process, Pool | |
import time | |
import urllib2 | |
def millis(): | |
return int(round(time.time() * 1000)) | |
def http_get(url): |
;;; inbox.el --- display inbox status information -*- coding: utf-8 -*- | |
;; Copyright (C) 2014 Sergei Glushchenko. | |
;; Author: Sergei Glushchenko <gl.sergei@gmail.com> | |
;; This program is free software: you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation, either version 3 of the License, or | |
;; (at your option) any later version. |
# Gist example of IB wrapper ... | |
# | |
# Download API from http://interactivebrokers.github.io/# | |
# | |
# Install python API code /IBJts/source/pythonclient $ python3 setup.py install | |
# | |
# Note: The test cases, and the documentation refer to a python package called IBApi, | |
# but the actual package is called ibapi. Go figure. | |
# | |
# Get the latest version of the gateway: |
function e() { | |
if [ -z `pgrep Emacs` ]; then | |
env LANG=C open -a Emacs "$@" | |
return | |
fi | |
local client="/Applications/MacPorts/Emacs.app/Contents/MacOS/bin/emacsclient" | |
local uid=`id -u` | |
local socket="$TMPDIR"/emacs"$uid"/server |
----------------------------------------------------------------------- | |
-- References: | |
-- https://github.com/apesic/dotfiles/blob/master/.hammerspoon/init.lua | |
-- https://learnxinyminutes.com/docs/lua/ | |
----------------------------------------------------------------------- | |
---------------- | |
-- Configuration | |
---------------- |