This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/lib/node/.npm/nave/0.0.5/package/src/0.1.104/wscript: error: Traceback (most recent call last): | |
File "/usr/local/lib/node/.npm/nave/0.0.5/package/src/0.1.104/tools/wafadmin/Utils.py", line 274, in load_module | |
exec(compile(code, file_path, 'exec'), module.__dict__) | |
File "/usr/local/lib/node/.npm/nave/0.0.5/package/src/0.1.104/wscript", line 12, in <module> | |
import js2c | |
File "/usr/local/lib/node/.npm/nave/0.0.5/package/src/0.1.104/tools/js2c.py", line 35, in <module> | |
import jsmin | |
ImportError: No module named jsmin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ DAEMON=/usr/local/bin/thin | |
+ SCRIPT_NAME=/etc/init.d/thin | |
+ CONFIG_PATH=/etc/thin | |
+ '[' -x /usr/local/bin/thin ']' | |
+ case "$1" in | |
+ /usr/local/bin/thin start --all /etc/thin | |
[start] /etc/thin/emr_app.yml ... | |
Starting server on 0.0.0.0:3006 ... | |
Starting server on 0.0.0.0:3007 ... | |
Starting server on 0.0.0.0:3008 ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2010/08/25 17:19:32 [error] 2733#0: *15 connect() failed (111: Connection refused) while connecting to upstream, client: 74.199.93.11, server: emr.togohealth.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3007/", host: "emr.togohealth.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void stutter(ArrayList<String> list) { | |
int l = list.size(); | |
// seed | |
for (int i = 0; i < l; i++){ | |
list.add(""); | |
} | |
// work backwards | |
int f = list.size() - 1; | |
for (int i = l - 1; i >= 0; i--){ | |
String temp = list.get(i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#python catchup.py log.txt <commit#> | |
#get log.txt by doing git log > log.txt | |
#get commit# by cat .git/refs/remotes/origin/master | |
import sys | |
import os | |
logFileName = sys.argv[1] #log.txt | |
startCommit = sys.argv[2] #407fadabe28828e78cd84642eed6edc2ecca0e54 | |
print logFileName | |
fo = open(logFileName,'r') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libsnappy-dev | |
wget https://leveldb.googlecode.com/files/leveldb-1.9.0.tar.gz | |
tar -xzf leveldb-1.9.0.tar.gz | |
cd leveldb-1.9.0 | |
make | |
sudo mv libleveldb.* /usr/local/lib | |
cd include | |
sudo cp -R leveldb /usr/local/include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Released by rdb under the Unlicense (unlicense.org) | |
# Based on information from: | |
# https://www.kernel.org/doc/Documentation/input/joystick-api.txt | |
import os, struct, array | |
from fcntl import ioctl | |
# Iterate over the joystick devices. | |
print('Available devices:') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Animated 3D sinc function | |
""" | |
from pyqtgraph.Qt import QtCore, QtGui | |
import pyqtgraph.opengl as gl | |
import pyqtgraph as pg | |
import numpy as np | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from pyqtgraph.Qt import QtGui, QtCore | |
import numpy as np | |
from numpy import arange, sin, cos, pi | |
import pyqtgraph as pg | |
import sys | |
class Plot2D(): | |
def __init__(self): | |
self.traces = dict() |