This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <LiquidCrystal.h> | |
| String buffer; | |
| LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
| boolean isPacket = false; | |
| void setup() { | |
| Serial.begin(9600); | |
| lcd.begin(20, 2); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($,_,global) { | |
| var App = { | |
| init: function() { | |
| var class_name = $('#page').attr('class'); | |
| switch (class_name) { | |
| case 'hp' : { | |
| new App.View.Home.Boxed(); | |
| new App.View.Home.Cover(); | |
| new App.View.Home.Perfume(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| App.SidebarView = Backbone.View.extend({ | |
| toggle: function() { | |
| if ($(this.el).is(':visible')) { | |
| $(this.el).hide(); | |
| this.trigger('collapse'); // <== | |
| } else { | |
| $(this.el).show(); | |
| this.trigger('expand'); // <== | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| App.Mixins.Navigation = { | |
| toggle: function() { /* ... */ }, | |
| open: function() { /*... */ }, | |
| close: function() { /* ... */ } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($,window, document, undefined){ | |
| var defaults = { | |
| resizing: true | |
| } | |
| var BreakpointManager = function(element, options) { | |
| this.el = element; | |
| this.$el = $(element); | |
| this.options = $.extend({}, defaults,options); | |
| this.breakpoints = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <style> | |
| body { | |
| background-color: #ffffff; | |
| margin: 0; | |
| overflow: hidden; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <style> | |
| body { | |
| background-color: #fff; | |
| margin: 0; | |
| overflow: hidden; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function(grunt) { | |
| 'use strict'; | |
| // Project configuration. | |
| grunt.initConfig({ | |
| jasmine : { | |
| src : 'src/**/*.js', | |
| options : { | |
| specs : 'spec/**/*.js' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var observer = {}; | |
| _.extend(observer,Backbone.Events); | |
| //use | |
| observer.trigger("keyboard:pressed",obj); | |
| observer.on("keyboard:pressed", function(obj) {}); |