Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexandre Baizeau alexBaizeau

View GitHub Profile
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
validate(){
return this.get('model').validate();
}
}
View components.scrolly-parent.js
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['scrolly-parent'],
didInsertElement() {
let component = this;
this.$().on('DOMMouseScroll mousewheel', (ev) => {
let $this = component.$(),
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View gist:dc5d593e398b042f514c
± |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
View gist:7451b2f229089d6d2284
± |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
View MotionSensor
#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};
View PiRadio.py
#######################
# 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