Skip to content

Instantly share code, notes, and snippets.

@nselikoff
nselikoff / countdown_clock.py
Created September 27, 2016 15:10
Proof of concept next arrival display with Raspberry Pi and character LCD
#!/usr/bin/python
# https://medium.com/@nselikoff/whens-the-next-train-coming-6adba3daaec0#.f30s93zej
import time
import datetime
import Adafruit_CharLCD as LCD
# Raspberry Pi pin configuration:
lcd_rs = 27 # Note this might need to be changed to 21 for older revision Pi's.
lcd_en = 22
@nselikoff
nselikoff / custom-explode.js
Created April 16, 2016 16:27
liquid-fire custom explode that can use pick/pickNew/pickOld on multiple elements and transition all of them, not just the first one
import Ember from "ember";
import { Promise } from "liquid-fire";
// Explode is not, by itself, an animation. It exists to pull apart
// other elements so that each of the pieces can be targeted by
// animations.
export default function customExplode(...pieces) {
// console.log('customExplode');
var seenElements = {};
export default function() {
this.get('/employees');
}
@nselikoff
nselikoff / gist:e8ddfbf933c98f46bc66
Created October 27, 2014 15:18
FullScreenCrashTest
#include "cinder/app/AppNative.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
using namespace ci;
using namespace ci::app;
using namespace std;
class FullScreenCrashTestApp : public AppNative {
public:
@nselikoff
nselikoff / CinderFboExampleApp.cpp
Last active August 29, 2015 14:01
Cinder FBO example with shader
#include "cinder/app/AppNative.h"
#include "cinder/gl/gl.h"
#include "cinder/gl/Fbo.h"
#include "cinder/gl/GlslProg.h"
#include "cinder/Camera.h"
using namespace ci;
using namespace ci::app;
using namespace std;