Skip to content

Instantly share code, notes, and snippets.

View Tesselopticon.js
//################################Setup##################################################
var ws = require('nodejs-websocket');
var tessel = require('tessel');
var camera = require('camera-vc0706').use(tessel.port['A']);
// var wifi = require('wifi-cc3000');
var servolib = require('servo-pca9685');
View CsvSource.fbp
# In the graph we first need to define the nodes and the connections between them
Group(core/Group) OUT -> IN FilesystemConnection(server/FilesystemConnection)
FilesystemConnection() CONNECTION -> CONNECTION CsvSource(server/CsvSource)
CsvSource() OUT -> IN Display(core/Output)
Group2(core/Group) OUT -> IN FilesystemConnection2(server/FilesystemConnection)
FilesystemConnection2() CONNECTION -> CONNECTION CsvSource2(server/CsvSource)
CsvSource2() OUT -> IN Display2(core/Output)
# Start off the graph by sending a filename to the file reader
'NUCLEAR' -> GROUP Group()
@jskrzypek
jskrzypek / getNamespaceRelativeType.js
Created Aug 17, 2017
getNamespaceRelativeType() - helper function for vuex proposal
View getNamespaceRelativeType.js
// adapted from node's posix path.relative()
// https://github.com/nodejs/node/blob/be63c26e8c5d9f337cc7349ea37dc5b312c9631d/lib/path.js#L1252-L1342
function getNamespaceRelativeType(namespace, type) {
// Trim any leading backslashes
var namespaceStart = 1;
for (; namespaceStart < namespace.length; ++namespaceStart) {
if (namespace.charCodeAt(namespaceStart) !== 47/*/*/)
break;
@jskrzypek
jskrzypek / twilio-video.d.ts
Created Sep 16, 2018
Types for twilio/twilio-video.js
View twilio-video.d.ts
// Type definitions for twilio-video.js
// Project: https://github.com/twilio/twilio-video.js
// Definitions by: Joshua Estrin Skrzypek <https://github.com/jskrzypek/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'twilio-video/dist/twilio-video' {
import connect = Twilio.Video.connect;
import createLocalAudioTrack = Twilio.Video.createLocalAudioTrack;
import createLocalTracks = Twilio.Video.createLocalTracks;
import createLocalVideoTrack = Twilio.Video.createLocalVideoTrack;
@jskrzypek
jskrzypek / lttng-ust.lib.log
Created Oct 1, 2021
2r606hyvl5w9miwqx1kxz8h8paaiy4fp-vscode-extension-ms-python-python-2021.5.829140558 build error log
View lttng-ust.lib.log
$ nix eval '(import <nixos-unstable> {}).lttng-ust.outPath'
"/nix/store/6ha8bwciirg7zv9cbaw0170dq3b3j6bf-lttng-ust-2.13.0"
$ ls -l /nix/store/6ha8bwciirg7zv9cbaw0170dq3b3j6bf-lttng-ust-2.13.0/lib
.r-xr-xr-x 1.1k root 31 Dec 1969 liblttng-ust-common.la
lrwxrwxrwx 28 root 31 Dec 1969 liblttng-ust-common.so -> liblttng-ust-common.so.1.0.0
lrwxrwxrwx 28 root 31 Dec 1969 liblttng-ust-common.so.1 -> liblttng-ust-common.so.1.0.0
.r-xr-xr-x 84k root 31 Dec 1969 liblttng-ust-common.so.1.0.0
.r-xr-xr-x 1.0k root 31 Dec 1969 liblttng-ust-ctl.la
lrwxrwxrwx 25 root 31 Dec 1969 liblttng-ust-ctl.so -> liblttng-ust-ctl.so.5.0.0
lrwxrwxrwx 25 root 31 Dec 1969 liblttng-ust-ctl.so.5 -> liblttng-ust-ctl.so.5.0.0