Skip to content

Instantly share code, notes, and snippets.

me@bibook /o/l/v/m/l/_/cmake> tail -f main.log
:debug:patch euid/egid changed to: 0/0
:debug:patch setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_devel_cmake/cmake/work/cmake-3.3.1/macports.cmake
:debug:patch euid/egid changed to: 503/504
:debug:patch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Tue Aug 25 21:10:41 CEST 2015
:notice:configure ---> Configuring cmake
:debug:configure Using compiler 'Xcode Clang'
:debug:configure Executing org.macports.configure (cmake)
:debug:configure Environment:
clang -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -std=c99 -Wextra -Wall -pedantic -I/opt/local/include -DHAVE_CONFIG_H -I/opt/macports/base/src -I/opt/macports/base/src -I. -I/opt/macports/base/vendor/vendor-destroot//opt/local-fresh/libexec/macports/include -fno-common readline.c -o readline.o
readline.c:130:23: error: use of undeclared identifier 'username_completion_function'; did you mean 'rl_username_completion_function'?
generator_func = USERNAME_COMPLETION_FUNCTION;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
rl_username_completion_function
readline.c:51:39: note: expanded from macro 'USERNAME_COMPLETION_FUNCTION'
# define USERNAME_COMPLETION_FUNCTION username_completion_function
^
/opt/local/include/readline/readline.h:457:14: note: 'rl_username_completion_function' declared here
extern char *rl_userna
tmp $ git clone -v -v http://www.math.s.chiba-u.ac.jp/~mituharu/emacs-mac.git
Cloning into 'emacs-mac'...
got e7a046987d66136da55ae10a9ef90728d1442cbb
walk e7a046987d66136da55ae10a9ef90728d1442cbb
Getting alternates list for http://www.math.s.chiba-u.ac.jp/~mituharu/emacs-mac.git
Getting pack list for http://www.math.s.chiba-u.ac.jp/~mituharu/emacs-mac.git
Getting index for pack c3a8f23a98140df3eed0deeefe89a031c97e0eae
got f1161b7d871e4d022376649a0f74f5b4211c234c
got 029d156140c2faca3c2c6b256f30f9593cd605c4
got 8818e368f754c8ecf80572fcb40ebfa48e77ab5f
@anddam
anddam / gist:8780732
Created February 3, 2014 08:57
RTL test with ngspice in interactive mode
*** RTL example 2014-02-01 22:10:55 +0000
Q1 O 1 0 DefaultNPN
Rb 1 I 10
Rc 2 O 1.0
Vcc 2 0 5
Vi I 0 0 PULSE(5 0.2 10m 1m 1m 10m )
.INSERT E2_devices.mod
.TRAN 1u 30m
.PROBE TRAN V(O) V(I)
@anddam
anddam / nand2_simulation.cir
Last active August 29, 2015 13:56
NAND 2 inputs - ngspice never ends parsing it
*** SPICE deck for cell nand2_simulation{sch} from library CMOS_AND
*** Created on Wed Feb 05, 2014 17:37:46
*** Last revised on Wed Feb 05, 2014 18:11:02
*** Written on Wed Feb 05, 2014 18:24:51 by Electric VLSI Design System,
*version 9.04
*** Layout tech: mocmos, foundry MOSIS
*** UC SPICE *** , MIN_RESIST 4.0, MIN_CAPAC 0.1FF
*CMOS/BULK-NWELL (PRELIMINARY PARAMETERS)
.OPTIONS NOMOD DEFL=3UM DEFW=3UM DEFAD=70P DEFAS=70P LIMPTS=1000
+ITL5=0 RELTOL=0.01 ABSTOL=500PA VNTOL=500UV LVLTIM=2
Contents
Electric.app/Contents:
Info.plist
MacOS
PkgInfo
Resources
Electric.app/Contents/MacOS:
JavaApplicationStub
@route('/foo')
@route('/foo/<int:an_id>)
def a_view(an_id=False):
if not an_id:
print "We're calling /foo"
else:
print "We're calling /foo/an_id"
return "bar"
@anddam
anddam / nand2_simulation.cir
Created February 7, 2014 15:18
NAND 2 inputs extracted from Electric - pull-down NMOS simulates a stacked NMOS in layout hence the double length
*** SPICE deck for cell nand2_simulation{sch} from library CMOS_AND
*** Created on Wed Feb 05, 2014 17:37:46
*** Last revised on Fri Feb 07, 2014 15:59:15
*** Written on Fri Feb 07, 2014 16:00:04 by Electric VLSI Design System,
*version 9.04
*** Layout tech: mocmos, foundry MOSIS
*** UC SPICE *** , MIN_RESIST 4.0, MIN_CAPAC 0.1FF
*CMOS/BULK-NWELL (PRELIMINARY PARAMETERS)
.OPTIONS NOMOD DEFL=3UM DEFW=3UM DEFAD=70P DEFAS=70P LIMPTS=1000
+ITL5=0 RELTOL=0.01 ABSTOL=500PA VNTOL=500UV LVLTIM=2
{
u 'hash': u '00957bf43048b2cf1aa2a9c2dc29852adb7b88108ab7285740240615a25b73ad',
u 'tx_p': {
u 'hash': u '00957bf43048b2cf1aa2a9c2dc29852adb7b88108ab7285740240615a25b73ad',
u 'in': [{
u 'addr': None,
u 'prev_out': {
u 'hash': u '025de0a217772172579360debbddd7bb0e36b2c0db971507ac84a33f3f30b214',
u 'n': 105
},
@anddam
anddam / gist:9290986
Created March 1, 2014 14:58
flask-wtf example - not submitting with enter key when there are multiple fields
from flask import Flask, render_template
from flask.ext.wtf import Form
from wtforms import TextField
from wtforms.validators import Required, Length
from flask_bootstrap import Bootstrap
class MyForm(Form):
# NOTE replace lengths
line_1 = TextField(validators=[Required()])
line_2 = TextField(validators=[])