Skip to content

Instantly share code, notes, and snippets.

View ee08b397's full-sized avatar
🎾

Songxiao Zhang ee08b397

🎾
  • BlackRock
  • New York, New York
  • 10:07 (UTC -04:00)
View GitHub Profile
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)
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')
@ee08b397
ee08b397 / tree.md
Last active August 29, 2015 14:23 — forked from hrldcpr/tree.md

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!

@ee08b397
ee08b397 / tmux.md
Last active August 29, 2015 14:23 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a