(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
import matplotlib.pyplot as plt | |
from mpl_toolkits.mplot3d import Axes3D | |
xs = [10, 20] | |
ys = [1250.0, 250.0] | |
zs = [1, 2] | |
fig = plt.figure() | |
ax = fig.add_subplot(111, projection = '3d') |
from mpl_toolkits.mplot3d import Axes3D | |
import mpl_toolkits.mplot3d.art3d as art3d | |
fig = plt.figure() | |
ax=fig.gca(projection='3d') | |
for i in ["x","y","z"]: | |
circle = Circle((0, 0), 1) | |
circle.set_clip_box(ax.bbox) |
/* | |
a | |
/ \ | |
b d | |
| | |
c | |
| | |
e | |
*/ |
x | y | z | lp_x | lp_y | lp_z | hp_x | hp_y | hp_z | ||
---|---|---|---|---|---|---|---|---|---|---|
0.235458 | -0.597702 | -0.724487 | 0.232433 | -0.593757 | -0.717156 | 0.003025 | -0.003945 | -0.007332 | ||
0.235458 | -0.597702 | -0.724487 | 0.232735 | -0.594152 | -0.717889 | 0.002723 | -0.003550 | -0.006598 | ||
0.217346 | -0.597702 | -0.724487 | 0.231197 | -0.594507 | -0.718549 | -0.013850 | -0.003195 | -0.005939 | ||
0.217346 | -0.579590 | -0.724487 | 0.229812 | -0.593015 | -0.719143 | -0.012465 | 0.013425 | -0.005345 | ||
0.199234 | -0.579590 | -0.724487 | 0.226754 | -0.591673 | -0.719677 | -0.027520 | 0.012083 | -0.004810 | ||
0.199234 | -0.597702 | -0.760712 | 0.224002 | -0.592276 | -0.723781 | -0.024768 | -0.005426 | -0.036931 | ||
0.163010 | -0.579590 | -0.706375 | 0.217903 | -0.591007 | -0.722040 | -0.054893 | 0.011417 | 0.015665 | ||
0.108673 | -0.597702 | -0.724487 | 0.206980 | -0.591676 | -0.722285 | -0.098307 | -0.006026 | -0.002203 | ||
0.090561 | -0.615814 | -0.724487 | 0.195338 | -0.594090 | -0.722505 | -0.104777 | -0.021724 | -0.001982 |
As pointed out by @johntyree in the comments, using git reflog is easier and more reliable. Thanks for the suggestion!
$ git reflog
1ed7510 HEAD@{1}: checkout: moving from develop to 1ed7510
3970d09 HEAD@{2}: checkout: moving from b-fix-build to develop
1ed7510 HEAD@{3}: commit: got everything working the way I want
70b3696 HEAD@{4}: commit: upgrade rails, do some refactoring
#!/bin/bash | |
# http://jcornuz.wordpress.com/2007/10/10/workflow-3-quick-raw-converting-batch/ | |
# processes raw files | |
for f in *.CR2; | |
do | |
echo "Processing $f" | |
ufraw-batch \ | |
--wb=camera \ | |
--out-type=jpeg \ |
import java.util.LinkedList; | |
import java.util.ListIterator; | |
public class ObjPass { | |
public static void change_int(Integer i) { | |
i = 1000; | |
} | |
public static void change_string(String a) { | |
a = "changed"; |