Skip to content

Instantly share code, notes, and snippets.

@tumoxep
tumoxep / README.md
Last active December 17, 2016 12:27
node-serialport with electron (Win 7)

(pre) If there's a proxy

Common

Set PROXY environment variable $env:PROXY = "http://user:pass@serv:port"

Node

npm config set proxy http://user:pass@serv:port (do this second time for https-proxy)

Steps

The following story happened with Win 7 x64 Virtual Machine (hosted on Ubuntu 16.04) in a PowerShell runned with admin priveleges

/**
* @ngdoc module
* @name material.components.bottomSheet
* @description
* BottomSheet
*/
angular
.module('material.components.bottomSheet', [
'material.core',
'material.components.backdrop'
@tumoxep
tumoxep / generate-month.js
Created March 5, 2015 12:37
Calendar month array generator (bad one).
function generateMonthArray(_y, _m, _d) {
var d = new Date(_y, _m, _d);
var m = d.getMonth();
var a = [new Array(7)];
var i = 0;
var j = 0;
while(d.getMonth() == m) {
while(d.getDay() != 0) {
a[i][d.getDay()-1] = d.getDate();
d.setDate(d.getDate()+1);
@tumoxep
tumoxep / README.md
Last active August 29, 2015 14:05 — forked from mbostock/.block

Mouse events performs very slow in firefox

@tumoxep
tumoxep / README.md
Last active December 21, 2015 09:28
three.js procedural generation

Анозер тхрижс юсфул (ат лист фор ми) сниппет. Джаст трайд мейк процедурал дженерейшен. Эс ю кен си, жаваскрипт кэннот инту перфект рандом вен ю райт агли код.

@tumoxep
tumoxep / README.md
Last active December 21, 2015 08:28
three.js scene generation

Анозер тхрижс юсфул (ат лист фор ми) сниппет. Джаст трайд ту дженерейт сом син оф кьюбс. Зис ит хау ит воркс. level-эррэй репрезентс зе левел итселф фром зе топ пойнт оф вью. Намбер ин специфик сесс дискрайбс хау мени кьюбс вилл би аддед ин плейс.

@tumoxep
tumoxep / README.md
Last active December 20, 2015 20:19
Load blender model into three.js
@tumoxep
tumoxep / README.md
Last active December 20, 2015 19:09
bl.ocks.org test

Ай трайд то юз Майк Босток`с бл.окс.орг ту дисплей бейсик тхрижс экзампл тхру гист фром гитхаб.