View scrape.js
#!/usr/bin/env node
/*
This is a total hack, just needed to grab all the photos from twitter
so that we could import them into our Flickr group..
*/
const fs = require('fs');
const config = require('./config.json');
const Twitter = require('twitter');
const parse = require('querystring').parse;
const client = new Twitter({
View setup.log
root@8eb71796013a:/usr/local/src/flux/client# python3 ./setup.py clean
Traceback (most recent call last):
File "/usr/local/src/flux/client/setup_utils.py", line 113, in create_pcl_extentions
include_dirs += [locate_includes("eigen3"), ]
File "/usr/local/src/flux/client/setup_utils.py", line 33, in locate_includes
stdout=subprocess.PIPE)
File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
View fluxclient.log
root@2d90b208bf61:/usr/local/src/flux/client# python3 ./setup.py develop
Traceback (most recent call last):
File "/usr/local/src/flux/client/setup_utils.py", line 113, in create_pcl_extentions
include_dirs += [locate_includes("eigen3"), ]
File "/usr/local/src/flux/client/setup_utils.py", line 33, in locate_includes
stdout=subprocess.PIPE)
File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
View gist:c3a4b972deb8b1cd54f3
int num = 1;
char str = "Hello World";
float dec = 1024.45;
double bigint = 99999999;
int array[] = { 5, 10, 15, 20, 25, 30, 35, 40 };
if (num == 1) {
}
if (num != 1) {
View gist:effcafea25787b4f117b
{
"name": "npm-prune-test",
"version": "0.2.1",
"description": "npm-prune-test",
"main": "app.js",
"dependencies": {
"express": "3.4.8",
"connect": "^2.16.2",
"bower": "~1.3",
"jslint": "*",
View git-squash
#!/bin/bash
level=$1
if [ "${level}" == "" ]; then
level=2
fi
git rebase --interactive HEAD~${level}
View gist:414e57d0788e2e37586a
#
# Fatal error in ../deps/v8/src/api.cc, line 5407
# CHECK(!result.is_null()) failed
#
==== C stack trace ===============================
1: V8_Fatal
2: v8::String::NewFromUtf8(v8::Isolate*, char const*, v8::String::NewStringType, int)
3: node::StringBytes::Encode(v8::Isolate*, char const*, unsigned long, node::encoding)
View no-shrinkwrap.txt
npm i --no-shrinkwrap
my-app@0.0.0 /Users/davglass/src/peer/app
├─┬ express@3.4.8
│ ├── buffer-crc32@0.2.1
│ ├─┬ commander@1.3.2
│ │ └── keypress@0.1.0
│ ├─┬ connect@2.12.0
│ │ ├── batch@0.5.0
│ │ ├── bytes@0.2.1
View gist:9755169
npm info it worked if it ends with ok
npm info using npm@1.4.5
npm info using node@v0.10.26
npm info trying registry request attempt 1 at 23:15:18
npm http GET https://registry.npmjs.org/executable?write=true
npm http 200 https://registry.npmjs.org/executable?write=true
npm info starring executable
npm info trying registry request attempt 1 at 23:15:22
npm http PUT https://registry.npmjs.org/executable
npm http 503 https://registry.npmjs.org/executable
View index.js
var svgLine = require('svg-line')
var raf = require('raf')
var ns = 'http://www.w3.org/2000/svg'
var tau = Math.PI * 2
var svg = document.createElementNS(ns, 'svg')
var line = document.createElementNS(ns, 'path')
var points = []
var path = svgLine()
.x(function(d) { return d.x })