Skip to content

Instantly share code, notes, and snippets.

View bcomnes's full-sized avatar
👽

Bret Comnes bcomnes

👽
View GitHub Profile
@max-mapper
max-mapper / readme.md
Created June 26, 2015 05:33
dat @ srccon live transcription (stenographer)

The session will start in 15 minutes!

So our format is going to be a little weird. But we're going to do, like, some quick introduction of the concepts. And that'll be the main speaking portion.

And then we have a workshop people can do on their computer. And so there'll be kind of intermittent periods where we -- when we think people are at a certain point, we'll do a reference demonstration. So it won't be a continuous block. And then we're hoping to have some discussion at the end. So for probably half an hour, there will be discussions.

Hello? Okay, cool. Just testing. Carry on. Carry on.

>> Just making sure you guys are well taken care of. Need anything? Everything good? All right.

@max-mapper
max-mapper / index.js
Last active September 11, 2015 19:53
generate rsa keypair and format public key in openssh format in javascript
// warning you probably want `ssh-keygen -t ed25519` for most use cases. this method lacks secure prng and uses weak rsa
var keypair = require('keypair')
var forge = require('node-forge')
// generates new keypair (slow)
var pair = keypair()
// creates intermediate forge key object
var publicKey = forge.pki.publicKeyFromPem(pair.public)
@max-mapper
max-mapper / readme.md
Last active September 17, 2015 00:14
We Need An Automated Module Build System

We Need An Automated Module Build System

First, please read On Maintaining a Native Node Module

Problem: There is no standard way to build + distribute prebuilt binaries for node modules with native addons (e.g. C++ bindings).

There's a thing called NODE_MODULE_VERSION which is used to know if a native module was compiled for the correct version + flavor of node. If you are trying to load something compiled for e.g. iojs from February 2015 into node from March 2014 you will get an error something like Error: Module version mismatch. Expected 11, got 42. when you try and run your program. node uses numbers from 10 going up, and iojs uses numbers from 40 going up. The NODE_MODULE_VERSION gets bumped usually when V8 is upgraded, but sometimes for other reasons. It also gets even more complicated when you start talking about runtimes like Electron or Node-Webkit, but I won't get into that here. To my knowledge there is n

@freeman-lab
freeman-lab / notes.md
Last active October 4, 2015 21:15
chrome @ home

Notes on compiling chromium using an EC2 cluster

This note lays out the machine specifications and configurations used to get a distributed Chome build working on cloud compute (in this case AWS EC2) using the icecc tool.

These links were a good starting point:

but I couldn't fine a full walk through, so hopefully we can make it easier for others.

@edavis10
edavis10 / _config.yml
Created November 6, 2009 02:18
Pagination in Jekyll
# ....other stuff here
paginate: 10

Allow options to be bassed through npm test without a -- full stop. This may conflict with existing npm options like --verbose and is not officially supported.

Allows startup commands that look like this:

npm t foo/bar.js --open
@rgbkrk
rgbkrk / jupyter-in-the-javascript-universe.md
Last active December 7, 2015 13:08
Jupyter in the JavaScript Universe

The Jupyter and IPython projects have been around more than 10 years and a lot has changed over the years in terms of frontend development: V8, Node, npm, transpilers, JS Compilers, competing module loading systems, auto-updating browsers, new frameworks, and many other bits. They've all come and made front end development much better. At the same time, they've bred complexity in choice and decisions. Some of the biggest warts have been the document API for the DOM, how we work on it, the tendency to get addicted to the ease of jQuery, and the resulting jQuery soup that gets created. Large projects have to make a choice on how they're going to package and ship components of their overall application.

There was a time at which I was comfortable in CoffeeScript. Now that I've read JavaScript the Good Parts, Node.js the Right Way, read and written [more](https://github.com/nteract/jupyter-sideca

@praetoriansentry
praetoriansentry / btc.R
Created April 11, 2013 22:24
Quick script to plot the last 24hrs of mtgox trade data.
library("rjson")
library("quantmod")
json_file <- "https://data.mtgox.com/api/2/BTCUSD/money/trades/fetch"
json_data <- fromJSON(paste(readLines(json_file), collapse=""))
mtgox <- json_data$data
trades <- do.call(rbind.data.frame, mtgox)
@sandeepshetty
sandeepshetty / YYYY-[1-6].json
Last active December 19, 2015 10:09
Converspace JSON store
{
"entries": [
{
"type": "post",
"id": "2013/07/06/4",
"content": "",
"published": "",
"updated": "",
"response_counts": {
"comments": 0,
@veganstraightedge
veganstraightedge / sketch-1.rb
Last active December 20, 2015 20:09
An idea for a programming language called "Grammar". The idea was to base it on "normal" english as much as possible. No additional work was done on this idea. It's just a brain dump.
Grammar Sketch 1.
New Noun Dog from the Animal family
Noun:Dog Family:Animal
Noun: Dog Family: Animal
Noun: Big Dog from Family: Dog
Verb: bark
at: a volume