Skip to content

Instantly share code, notes, and snippets.

View streamcode9's full-sized avatar
🔭
(•,•)

streamcode9

🔭
(•,•)
View GitHub Profile
@streamcode9
streamcode9 / bundle.js
Last active January 16, 2017 21:12
svg-time-series, demo1
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
"use strict";
(function (Orientation) {
Orientation[Orientation["Top"] = 0] = "Top";
Orientation[Orientation["Right"] = 1] = "Right";
Orientation[Orientation["Bottom"] = 2] = "Bottom";
Orientation[Orientation["Left"] = 3] = "Left";
})(exports.Orientation || (exports.Orientation = {}));
var Orientation = exports.Orientation;
var slice = Array.prototype.slice;
@streamcode9
streamcode9 / bundle.js
Created January 22, 2017 12:43
dev svg
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
"use strict";
var d3 = require('d3');
function drawProc(f) {
var requested = false;
return function () {
var params = [];
for (var _i = 0; _i < arguments.length; _i++) {
params[_i - 0] = arguments[_i];
}
@streamcode9
streamcode9 / bundle.js
Last active January 22, 2017 13:03
dev css
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
"use strict";
var d3 = require('d3');
function drawProc(f) {
var requested = false;
return function () {
var params = [];
for (var _i = 0; _i < arguments.length; _i++) {
params[_i - 0] = arguments[_i];
}
@streamcode9
streamcode9 / bundle.js
Last active June 28, 2017 07:39
svg-time-series, demo2
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
// viewZoomTransform состоит из двух этапов:
// - viewTransform трансформирует референсый вьюпорт в модельных
// в референсный вьюпорт в экранных
// - zoomTransform трансформирует
//
// - "модельный" вьюпорт - перемещается зумом
// - "референсный модельный" вьюпорт - постоянен
// - "экранный" вьюпорт - постоянен
"use strict";
@streamcode9
streamcode9 / index.js
Last active January 25, 2018 19:17
angular 1.4
// http://blog.ninja-squad.com/2015/07/21/what-is-new-angularjs-1.4/
angular.module('docs', [])
.controller('Ctrl', ['$scope', function($scope) {}])
.directive('myCustomer', ['$http', '$q', function($http, $q) {
return {
restrict: 'E',
controllerAs: 'vm',
controller: function(){
this.xs = [];
this.selected = null;
$:note("c2 d2 e2 g2").sound("supersaw").slow(2)
$:chord("<Am C D F Am E Am E>").voicing().sound("supersaw")
$:s("bd sd bd sd")
$:s("<hh*32 hh*8 hh*16 hh*4>").gain(1.6)