I hereby claim:
- I am serpens on github.
- I am serpens (https://keybase.io/serpens) on keybase.
- I have a public key whose fingerprint is 160D 65F8 8666 A69B D18F 0286 F4B5 09BD 6E75 E91C
To claim this, I am signing this object:
import subprocess | |
ps = Popen(['cmd', 'arg1', 'arg2'], stdout=PIPE, stdin=PIPE, stderr=STDOUT, env={'variable' : value}, shell=False) | |
ps.communicate('input\n') | |
if ps.wait(): | |
print 'Failed' |
fig=pylab.figure() | |
ax = mpl_toolkits.mplot3d.axes3d.Axes3D(fig) | |
for i in xrange(len(array)): | |
ax.plot([i] * 512, numpy.arange(0, 512), zs=array[i]) | |
pylab.show() |
note_remind=0 | |
note_ignore="yes" | |
note_command="?" | |
note_report() | |
{ | |
echo "" | |
echo "note_report: $note_command completed in $1 seconds" | |
} |
\documentclass[a4paper,12pt,titlepage,twocolumn]{article} | |
\usepackage{latexsym} | |
\usepackage[T1,plmath,MeX]{polski} | |
\usepackage[utf8]{inputenc} | |
\usepackage{url} | |
\usepackage{textcomp} | |
\pagestyle{plain} |
#!/bin/bash | |
curl --header 'Authorization: Bearer API_KEY_HERE' -X POST https://api.pushbullet.com/v2/pushes --header 'Content-Type: application/json' --data-binary "{\"type\": \"note\", \"title\": \"$1\", \"body\": \"$2\"}" |
I hereby claim:
To claim this, I am signing this object:
SCRIPT_DIRNAME = os.path.dirname(__file__) | |
PARENT_DIRNAME = os.path.abspath(os.path.join(DIRNAME, os.path.pardir)) |
import pkg_resources | |
pkg_resources.get_distribution("pkg_name").version |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # cd & pwd to get full name (not ".") in all cases |