Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
diff --git a/common_features.mk b/common_features.mk | |
index 8c593024f0..d70f360470 100644 | |
--- a/common_features.mk | |
+++ b/common_features.mk | |
@@ -658,40 +658,44 @@ endif | |
JOYSTICK_ENABLE ?= no | |
VALID_JOYSTICK_TYPES := analog digital | |
JOYSTICK_DRIVER ?= analog | |
ifeq ($(strip $(JOYSTICK_ENABLE)), yes) | |
ifeq ($(filter $(JOYSTICK_DRIVER),$(VALID_JOYSTICK_TYPES)),) |
public static class Result<T> implements Future<T> { | |
private Future<T> future; | |
private Result(Future<T> future) { | |
this.future = future; | |
} | |
/** | |
* Block until done and {@code System.exit()} with an appropriate status code. | |
*/ |
# run like this: | |
# kubectl get nodes -o json | python nodes.py | |
import json | |
import sys | |
format = "%-45s %-12s %6s" | |
print format % ("NAME", "IP", "IMAGES") |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
largetype() { osascript 2>/dev/null <<EOF | |
tell application "Quicksilver" | |
show large type "$*" | |
end tell | |
EOF | |
} |
package MyVideoPlayer; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.Map; | |
import com.google.code.gwt.html5.media.client.VideoElement; | |
import com.google.gwt.core.client.EntryPoint; | |
import com.google.gwt.core.client.JavaScriptObject; | |
import com.google.gwt.dom.client.Element; |
class MyVideoPlayer { | |
private void onPlay() { | |
// do something | |
} | |
private native void bindEvents() /*-{ | |
var instance = this; | |
var v = this.@MyVideoPlayer::getVideoElement()(); | |
v.addEventListener("click", function() { instance.@MyVideoPlayer::onClick()(); }); | |
v.addEventListener("touchstart", function() { instance.@MyVideoPlayer::onClick()(); }); |
Köra Time Machine i Ubuntu | |
echo deb http://ftp.de.debian.org/debian sid main >> /etc/apt/sources.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9AA38DCD55BE302B | |
aptitude install libgcrypt | |
aptitude install netatalk |
# install some package maintenance scripts (needed to build the .deb) | |
sudo aptitude install devscripts pbuilder | |
# get the source | |
apt-get source mpd | |
cd mpd-0.15.4 | |
# change DEB_CONFIGURE_USER_FLAGS to include --enable-lame-encoder | |
vim debian/rules | |
# build dependencies | |
sudo /usr/lib/pbuilder/pbuilder-satisfydepends | |
# lame isn't a listed dependency so install it manually |
perl -pi -w -e 's/search/replace/g;' *.txt |