Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
sudo apt-get -y update
sudo apt-get -y upgrade
wget https://downloads.arduino.cc/arduino-1.8.9-linux64.tar.xz
tar xvf arduino-1.8.9-linux64.tar.xz
cd arduino-1.8.9
sudo ./install.sh
sudo chown codersguild ~/Desktop/arduino-arduinoide.desktop
sudo usermod -a -G dialout codersguild
@kitmonisit
kitmonisit / readme.md
Last active December 2, 2018 05:18
Install custom packages in MacTex
@kitmonisit
kitmonisit / jupyterthemes.sh
Last active November 27, 2018 01:13
Jupyter Notebook theme
#!/usr/local/bin/zsh
jt -r
jt -t oceans16 \
-T \
-lineh 130 \
-f meslo \
-fs 9 \
-nf sourcesans \
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 / instrument.py
Created April 4, 2012 13:42
Controlling a GPIB instrument with Python and pyVISA
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 / netlist.sp
Last active December 10, 2015 02:48
Investigating why `ngspice` cannot simulate saturation.
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 / index.html
Created April 4, 2012 07:05 — forked from biovisualize/index.html
Table sorting (from Oliver Rolle)
<!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>
@kitmonisit
kitmonisit / d3.v2.min.js
Created April 2, 2012 03:20
Pictograms with D3
(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