Skip to content

Instantly share code, notes, and snippets.

/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
+ 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 ...
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"
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);
#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')
@cyan-at
cyan-at / gist:ba96791e581bdbeb792f
Created February 11, 2016 20:14 — forked from dustismo/gist:6203329
How to install leveldb on ubuntu
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
@cyan-at
cyan-at / js_linux.py
Created June 27, 2020 08:01 — forked from rdb/js_linux.py
Access joysticks/game controllers from Python in Linux via the joystick driver. See https://www.panda3d.org/forums/viewtopic.php?f=8&t=16767
# 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:')
@cyan-at
cyan-at / animated3Dplot.py
Created November 3, 2021 23:37 — forked from markjay4k/animated3Dplot.py
animated 3D example using PyQtGraph and OpenGL
# -*- 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
@cyan-at
cyan-at / Plot.py
Created November 3, 2021 23:37 — forked from Overdrivr/Plot.py
PyQtGraph animated sine and cosine functions - real smooth
# -*- 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()