Skip to content

Instantly share code, notes, and snippets.

View nickgartmann's full-sized avatar

Nick Gartmann nickgartmann

View GitHub Profile

Venue

[ ] Get Rachel contact info for R&R

  • Yes we are using the R&R tables, chairs, and linens
  • We don't know yet if R&R has a mic [ ] Ask if R&R has a mic

Catering

[ ] Send Rachel our menu from littlebushel

  • No handpassed

Keybase proof

I hereby claim:

  • I am nickgartmann on github.
  • I am nickgartmann (https://keybase.io/nickgartmann) on keybase.
  • I have a public key ASB__m20abNP1PouhaOMmKDIw6EuQfbZ02TSw5t4zMfdewo

To claim this, I am signing this object:

@nickgartmann
nickgartmann / draw.js
Created January 27, 2016 16:02
Function which draws the image.
function draw(width, height) {
canvas = $element.find("canvas");
canvas.attr("width", width);
canvas.attr("height", height);
// Browser API which allows us to manipulate canvas pixels
context = canvas[0].getContext("2d");
image_data = context.createImageData(width, height);
data = image_data.data
lib/mix/fetch_videos.ex:5: warning: variable next_page_token is unused
Compiled lib/mix/fetch_videos.ex
Generated day9tv app
14:46:52.337 [debug] BEGIN [] OK query=76.7ms queue=5.7ms
14:46:52.358 [debug] INSERT INTO "videos" ("inserted_at", "updated_at", "description", "episode_id", "large_thumbnail_url", "medium_thumbnail_url", "published_at", "small_thumbnail_url", "title", "youtube_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [{{2015, 12, 21}, {20, 46, 52, 0}}, {{2015, 12, 21}, {20, 46, 52, 0}}, "By popular demand, and by demand of catbert, I'll be playing SOMA. Let's see how far I can make it through w/o running away weeping.\n\nMy Website: http://day9.tv/\nMe on Twitter: http://twitter.com/day9tv/\nFind me on Facebook: http://www.facebook.com/day9tv/\nFancy Day[9] Swag: http://day9.tv/store/", nil, "https://i.ytimg.com/vi/ziZDwMSHoSI/hqdefault.jpg", "https://i.ytimg.com/vi/ziZDwMSHoSI/mqdefault.jpg", {{2015, 12, 21}, {16, 16, 30, 0}}, "https://i.ytimg.com/vi/ziZDwMSHoSI/default
{Model, Attributes} = require('nylas-exports')
_ = require('remote').require('underscore')
request = require('remote').require('request')
Q = require('../vendor/q')
CLIENT_ID = "REDACTED"
CLIENT_SECRET = "REDACTED"
REDIRECT_URI = "http://localhost:9999"
class Credential extends Model
Phetsarath OT:style=Regular
Century Schoolbook L:style=Roman
TlwgMono:style=Oblique
Nimbus Roman No9 L:style=Regular Italic
TlwgMono:style=BoldOblique
Courier 10 Pitch:style=Bold
Garuda:style=Book
Garuda:style=Bold
Lohit Tamil:style=Regular
DejaVu Sans:style=Bold
xy2rgb: function(x,y) {
var X = x/y;
var Y = 1;
var Z = ((1 - x - y)/y);
X = X / 100.0;
Y = Y / 100.0;
Z = Z / 100.0;
@nickgartmann
nickgartmann / create.sh
Created August 13, 2015 14:43
Example output from a JSONAPI generator
mix jsonapi.gen.templates
mix phoenix.gen.json Test testing name:string email:string
@nickgartmann
nickgartmann / index.html
Last active August 29, 2015 14:26
Example GUI configuration for NetJets Client
<navbar>
<nav-item img="img/lighting.png" url="/" />
</navbar>
<page title="Lighting" url="/" default>
<row>
<column width="7" mobile-width="12" class="quasar">
<row>
<column width="6">
<h2>Wash</h2>
<on-off id="1" default="off" />
<navbar>
<nav-item icon="img/home.png" url="/home" />
<nav-item url="/media>
<img src="img/media.png" />
<h2>Media</h2>
</nav-item>
</navbar>