Built with blockbuilder.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var audioCtx = new (window.AudioContext || | |
window.webkitAudioContext || | |
window.audioContext)(); | |
function beep(duration, frequency, volume, type, callback) { | |
var oscillator = audioCtx.createOscillator(); | |
var gainNode = audioCtx.createGain(); | |
oscillator.connect(gainNode); | |
gainNode.connect(audioCtx.destination); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function fromStream<T = Uint8Array>( | |
stream: Readable, | |
finishEventName = "end", | |
dataEventName = "data" | |
) { | |
stream.pause(); | |
const headerSize = 24; | |
const recordSize = 52; | |
let gotHeader: boolean = false; | |
let backStream: Buffer = Buffer.from([]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script src="https://unpkg.com/@reactivex/[email protected]/dist/global/Rx.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* Created by Milan Karunarathne | |
* Email: [email protected] | |
* May be freely distributed under the MIT license | |
*/ | |
import EventEmitter from 'events'; | |
class Single extends EventEmitter { |
Used this very handy library called D3SvgOverlay which makes is very easy to overlay d3 components over leaflet maps.
Added some Crossfilter based timeline filtering via dc.js.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
var fs = require('fs'); | |
var os = require('os'); | |
var express = require('express'); | |
var app = express(); | |
var Busboy = require('busboy'); | |
app.get('/', function (req, res) { | |
res.send('<html><head></head><body>\ | |
<form method="POST" enctype="multipart/form-data">\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
digraph "A Song of Ice and Fire" { | |
fontsize=32; | |
label="A Song of Ice and Fire\nChapter Graph"; | |
labelloc=t; | |
ranksep=equally; | |
concentrate=true; | |
compound=true; | |
node [shape=record, color=blue, style=filled, fillcolor=lightsteelblue1]; AGOTKEY [label="A Game\nOf Thrones"]; | |
AGOT0 [label="Prologue\n(Will)"]; AGOT1 [label="Bran I"]; |
NewerOlder