Skip to content

Instantly share code, notes, and snippets.

Kit Monisit kitmonisit

View GitHub Profile
View 02.make
2019-03-06 17:16:15 +0800
make
BOOT_LDFLAGS=-Wl,-headerpad_max_install_names
[ -f stage_final ] || echo stage3 > stage_final
make[1]: Entering directory `/tmp/gcc-20190306-2497-1nzj3m/gcc-5.5.0/build'
make[2]: Entering directory `/tmp/gcc-20190306-2497-1nzj3m/gcc-5.5.0/build'
make[2]: Leaving directory `/tmp/gcc-20190306-2497-1nzj3m/gcc-5.5.0/build'
make[2]: Entering directory `/tmp/gcc-20190306-2497-1nzj3m/gcc-5.5.0/build'
@kitmonisit
kitmonisit / # gcc - 2019-03-06_12-49-07.txt
Last active Mar 6, 2019
# gcc - 2019-03-06_12-48-07.txt
View # gcc - 2019-03-06_12-49-07.txt
Homebrew build logs for gcc on "Red Hat Enterprise Linux Workstation release 6.8 (Santiago)"
Build date: 2019-03-06 12:49:07
View 50_Startups.csv
R&D Spend Administration Marketing Spend State Profit
165349.2 136897.8 471784.1 New York 192261.83
162597.7 151377.59 443898.53 California 191792.06
153441.51 101145.55 407934.54 Florida 191050.39
144372.41 118671.85 383199.62 New York 182901.99
142107.34 91391.77 366168.42 Florida 166187.94
131876.9 99814.71 362861.36 New York 156991.12
134615.46 147198.87 127716.82 California 156122.51
130298.13 145530.06 323876.68 Florida 155752.6
120542.52 148718.95 311613.29 New York 152211.77
@kitmonisit
kitmonisit / jupyterthemes.sh
Last active Nov 27, 2018
Jupyter Notebook theme
View jupyterthemes.sh
#!/usr/local/bin/zsh
jt -r
jt -t oceans16 \
-T \
-lineh 130 \
-f meslo \
-fs 9 \
-nf sourcesans \
@kitmonisit
kitmonisit / netlist.sp
Last active Dec 10, 2015
Investigating why `ngspice` cannot simulate saturation.
View netlist.sp
NETLIST: Circuit D
* NOTE: Plot of transient response is in http://i.imgur.com/QWGkj.png
* The output response is supposed to rail out at 1.2 V
* PTM model from http://ptm.asu.edu/modelcard/2006/65nm_bulk.pm
.include 65nm_bulk.pm
VD vdd 0 dc 1.2 ac pwl(0 1.2 100 1.2)
M1 drain gate 0 0 nmos w=3.00771369299e-06 l=9.5e-08
@kitmonisit
kitmonisit / instrument.py
Created Apr 4, 2012
Controlling a GPIB instrument with Python and pyVISA
View instrument.py
import time
import datetime
import visa
import numpy as np
class YokogawaWT1600(visa.GpibInstrument):
__GPIB_ADDRESS = 2
def __init__(self, reset=True):
visa.GpibInstrument.__init__(self, self.__GPIB_ADDRESS, timeout=3)
@kitmonisit
kitmonisit / index.html
Created Apr 4, 2012 — forked from biovisualize/index.html
Table sorting (from Oliver Rolle)
View index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Table sort example in D3</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
</head>
<body onLoad="transform('name')">
<h1>Sortable Table</h1>
<table>
View d3.v2.min.js
(function(){function e(a,b){try{for(var c in b)Object.defineProperty(a.prototype,c,{value:b[c],enumerable:!1})}catch(d){a.prototype=b}}function g(a){var b=-1,c=a.length,d=[];while(++b<c)d.push(a[b]);return d}function h(a){return Array.prototype.slice.call(a)}function k(){}function n(a){return a}function o(){return this}function p(){return!0}function q(a){return typeof a=="function"?a:function(){return a}}function r(a,b,c){return function(){var d=c.apply(b,arguments);return arguments.length?a:d}}function s(a){return a!=null&&!isNaN(a)}function t(a){return a.length}function v(a){return a==null}function w(a){return a.replace(/(^\s+)|(\s+$)/g,"").replace(/\s+/g," ")}function x(a){var b=1;while(a*b%1)b*=10;return b}function A(){}function B(a){function d(){var c=b,d=-1,e=c.length,f;while(++d<e)(f=c[d].on)&&f.apply(this,arguments);return a}var b=[],c=new k;return d.on=function(d,e){var f=c.get(d),g;return arguments.length<2?f&&f.on:(f&&(f.on=null,b=b.slice(0,g=b.indexOf(f)).concat(b.slice(g+1)),c.remove(d)),e&&b.pus
You can’t perform that action at this time.