Skip to content

Instantly share code, notes, and snippets.

@mgranberry
mgranberry / agp.py
Last active August 29, 2015 14:20
quick hack at an AGP report built on OpenAPS
import dateutil.parser
from scipy import stats
from scipy.stats import norm
from numpy import percentile
import math
values = []
hour_buckets = {}
for hour in range(0,24):
hour_buckets[hour] = []
@ps2
ps2 / gist:2eaafd0e3635b13a5c7c
Last active August 29, 2015 14:27
dump history medtronic pump carelink rf
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
@brikis98
brikis98 / LinkedInClient.coffee
Created June 12, 2011 07:09
LinkedIn API Client in CoffeeScript
OAuth = require('oauth').OAuth
_ = require 'underscore'
class LinkedInClient
@baseUrl: 'https://api.linkedin.com'
@requestTokenUrl: "#{@baseUrl}/uas/oauth/requestToken"
@accessTokenUrl: "#{@baseUrl}/uas/oauth/accessToken"
@authorizeUrl: "#{@baseUrl}/uas/oauth/authorize"
@profileFields: ['id', 'headline', 'first-name', 'last-name', 'public-profile-url', 'picture-url', 'educations', 'positions', 'email-address']
@enthal
enthal / index.html
Created January 28, 2012 20:36
Example of d3 axis() for axes and grid lines
<!DOCTYPE html>
<html>
<head>
<title>D3 - Line Chart - axes and grid using axis()</title>
<!-- script type="text/javascript" src="https://raw.github.com/jquery/sizzle/master/sizzle.js"></script -->
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.min.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.min.js"></script>
<style type="text/css">
body {
@jmibanez
jmibanez / gist:2140974
Created March 20, 2012 20:29
Using restify with connect
// Restify server config here
var server = restify.createServer({
name: 'restify-test',
version: '1.0.0',
});
// ...
// Connect config here
var connectApp = connect()
@bewest
bewest / README.markdown
Created July 28, 2012 22:13
oe-core, bitbake theory of operation

Basic theory of operation for using openembedded goes something like this:

I usually have project directories to work under each project in eg /git/. Eg project foo has a working and source directory I use to track it under /git/foo/. So I end up producing builds in /git/foo/builds/ and working on source in /git/foo/src.

Openembedded is composed of many granular parts, but basically works like this: the minimal core is oe-core and bitbake; meta-* packages provide granularity and openembedded, yocto et al to tweak the

@bewest
bewest / bewest-nodejs-native.build.log
Created September 4, 2012 18:47
nodejs do_populate_sysroot fails: bitbake
DEBUG: Removed the following variables from the environment: PSEUDO_BINDIR, OE_SOURCE_DIR, OE_BUILD_DIR, DISTRO_DIRNAME, PSEUDO_LOCALSTATEDIR, SSH_CLIENT, PSEUDO_LIBDIR, LD_LIBRARY_PATH, HISTCONTROL, SSH_ASK_PASS, SHLVL, LL_DJANGO_MODE, BBFETCH2, OE_BASE, LD_PRELOAD, EDITOR, OE_BUILD_TMPDIR, STY, PSEUDO_OPTS, TERMCAP, SSH_CONNECTION, BUILDDIR, SSH_TTY, OLDPWD, PSEUDO_PREFIX, SCRIPTS_BASE_VERSION, WINDOW, DJANGO_SETTINGS_MODULE, MAIL, LS_COLORS
DEBUG: Found bblayers.conf (/home/bewest/src/beagle-board-setup-scripts/conf/bblayers.conf)
DEBUG: LOAD /home/bewest/src/beagle-board-setup-scripts/conf/bblayers.conf
DEBUG: Adding layer /home/bewest/src/beagle-board-setup-scripts/sources/meta-angstrom
DEBUG: LOAD /home/bewest/src/beagle-board-setup-scripts/sources/meta-angstrom/conf/layer.conf
DEBUG: Adding layer /home/bewest/src/beagle-board-setup-scripts/sources/meta-openembedded/meta-oe
DEBUG: LOAD /home/bewest/src/beagle-board-setup-scripts/sources/meta-openembedded/meta-oe/conf/layer.conf
DEBUG: Adding layer /home
@tsenga
tsenga / README.markdown
Created November 11, 2012 18:44
Visualisation Exploration: D3: Timeline Experiment

An experiment within the Visualisation Exploration series.

Exploring, techniques and practices in the field of data visualisation.

See the output: http://bl.ocks.org/tsenga/4055833.

Key history of this experiment:

  • D3, the data driven visualisation enabler.
  • Initial prototype written in handcrafted SVG with handcrafted data
Where to buy
Home > Support > FAQ > Article Detail
How to send an SMS with AT-commands?
4/02/2009
@bewest
bewest / too.markdown
Last active December 18, 2015 10:19
theory of operation