Skip to content

Instantly share code, notes, and snippets.

View BorisKourt's full-sized avatar

Boris Kourtoukov BorisKourt

View GitHub Profile
@BorisKourt
BorisKourt / Peripheral.pde
Created April 12, 2013 08:47
A small bit of code to gran data from Bluetooth via serial and update an LED state.
long previousPrint = 0;
long intervalPrint = 10000;
boolean red = false;
boolean blu = false;
boolean gre = false;
boolean all = false;
char val = 'a';
void setup() {
<div class="item-1">
<article class="carta">
<header class="title">
<h2>Concierge Plus</h2>
<div class="meta">
Property Management CMS
</div></header>
<figure class="display">
<img src="assets/images/cpblog.png" width="100%" />
</figure>
/*
leftSide - 0
leftArm - 1
leftNeck - 2
rightSide - 3
rightArm - 4
rightNeck - 5
*/
int difference = 0;
@BorisKourt
BorisKourt / gesturelog.pde
Last active December 26, 2015 19:09
Jess's visualization code.
String[] textFile;
int[] data;
IntList timeArray;
IntList pressArray;
ArrayList<IntList> pressPerIncr = new ArrayList(); //arraylist of an intlist of presses per a time period
//count of total presses
int lArm;
int rArm;
// eltests.ino
unsigned long currentMillis = 0;
unsigned int seed = 10;
unsigned int flickerVariability = 700;
long previousMillis = 0;
long prevSeed = 0;
long prevFlick1 = 0;
long prevFlick2 = 0;
@BorisKourt
BorisKourt / site.cljs
Last active January 1, 2016 08:19
Working with Async and Enfocus. Looks like this is ready to use!
(ns enasync.site
(:require [enfocus.core :as ef]
[enfocus.effects :as effects]
[enfocus.events :as ev]
[cljs.core.async :refer [<! !> chan pub sub put!]])
(:require-macros [enfocus.macros :as em]
[cljs.core.async.macros :refer [go go-loop]]))
(def log #(.log js/console %))
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'Shougo/unite.vim'
Bundle 'tpope/vim-fugitive'
@BorisKourt
BorisKourt / failing.log
Last active August 29, 2015 14:03
Poissible clsj.nodejs error
WARNING: JavaScript file found on classpath for library `cljs.nodejs`, but does not contain a corresponding `goog.provide` declaration: jar:file:/Users/boriskourt/.m2/repository/org/clojure/clojurescript/0.0-2268/clojurescript-0.0-2268.jar!/cljs/nodejs.js
WARNING: JavaScript file found on classpath for library `cljs.nodejs`, but does not contain a corresponding `goog.provide` declaration: jar:file:/Users/boriskourt/.m2/repository/org/clojure/clojurescript/0.0-2268/clojurescript-0.0-2268.jar!/cljs/nodejs.js
Jul 09, 2014 2:16:05 PM com.google.javascript.jscomp.LoggerErrorManager println
SEVERE: /Users/boriskourt/Development/mdgspet/hardware/tessel/target/mdgspet/tessel/main.js:2: ERROR - Parse error. Semi-colon expected
WARNING: JavaScript file found on classpath for library `cljs.nodejs`, but does not contain a corresponding `goog.provide` declaration: jar:file:/Users/boriskourt/.m2/repository/org/clojure/clojurescript/0.0-2268/clojurescript-0.0-2268.jar!/cljs/nodejs.js
^
Jul 09, 2014 2:16
@BorisKourt
BorisKourt / nested.clj
Created August 13, 2014 20:50
How to traverse this to get a val for :name in the same map as an :id of n
(def nested-data
(atom
{:name "Top"
:id 1314
:subs [{:name "Terms"
:id 2431
:subs [{:name "Causes"
:id 3322
:subs []}
{:name "Tempo"
@BorisKourt
BorisKourt / alpha.cljs
Created December 14, 2014 11:18
Possible duplication issue with ClojureScript :none compilation. Note the doubling of goog.require in the compiled core.js
(ns simple-test.alpha)
(def a-val 1)