Skip to content

Instantly share code, notes, and snippets.

View alexBaizeau's full-sized avatar

Alexandre Baizeau alexBaizeau

  • Toronto
  • 17:05 (UTC -04:00)
View GitHub Profile
@alexBaizeau
alexBaizeau / controllers.application.js
Last active July 24, 2017 13:18
validator ember-data
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
validate(){
return this.get('model').validate();
}
}
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['scrolly-parent'],
didInsertElement() {
let component = this;
this.$().on('DOMMouseScroll mousewheel', (ev) => {
let $this = component.$(),
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
± |MATES-2374 ✗| → npm ls broccoli-caching-writer
app@0.0.0 /Users/abaizeau/project
├─┬ broccoli-sass@0.6.8
│ └── broccoli-caching-writer@2.1.0
└─┬ ember-cli@1.13.8 (git://github.com/ember-cli/ember-cli.git#62e8f2d99deab9dfecaff9a374af5e31a1aca689)
├─┬ broccoli-config-loader@1.0.0
│ └── broccoli-caching-writer@2.1.0
└─┬ broccoli-sourcemap-concat@1.1.5
└── broccoli-caching-writer@2.1.0
± |MATES-2374 ✗| → DEBUG=broccoli-caching-writer:* ember s
version: 1.13.8
DEPRECATION: Brocfile.js has been deprecated in favor of ember-cli-build.js. Please see the transition guide: https://github.com/ember-cli/ember-cli/blob/master/TRANSITION.md#user-content-brocfile-transition.
[Deprecated] new this.Funnel(..) is deprecated, please use broccoli-funnel directly instead [addon: ember-modal-dialog]
[Deprecated] new this.Funnel(..) is deprecated, please use broccoli-funnel directly instead [addon: liquid-fire]
broccoli-caching-writer:ConfigLoader walking undefined +0ms
broccoli-caching-writer:ConfigLoader { stats: 3, files: 3, inputPaths: [ '/Users/abaizeau/project/tmp/config_loader-input_base_path-O3d420qP.tmp/0' ] } +4ms
broccoli-caching-writer:ConfigLoader derive cacheKey in 7ms +2ms
Serving on http://localhost:4200/
broccoli-caching-writer:ConfigLoader purge output in 4ms +5ms
#define REDPIN 3
#define GREENPIN 5
#define BLUEPIN 6
#define MOTION 2
int green[] = {0, 255, 0};
int red[] = {255, 0, 0};
int off[] = {0, 0, 0};
#######################
# Author : Alex Baizeau
#
# The Credit for the analog input part goes to adafruit : http://bit.ly/VHTEmS
########################
from i2clibraries import i2c_lcd
from time import *
import time
import os
from mplayer import Player