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
| import serial | |
| ser = serial.Serial([YOUR SERIAL ADDRESS], 9600) | |
| while True: | |
| print ser.readline() |
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
| int sensorPin = A0; | |
| int powerPin = 13; | |
| void setup() { | |
| Serial.begin(9600); | |
| pinMode(powerPin, OUTPUT); | |
| } | |
| void loop() { | |
| digitalWrite(powerPin, HIGH); |
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
| // non-async | |
| it('Correctly makes AJAX request in `componentDidMount`', () => { | |
| nock('https://api.github.com') | |
| .get('/users') | |
| .reply(200, [ | |
| { 'name': 'Reign', 'age': 26 } | |
| ]); | |
| wrapper = mount(<UsersListComponent />); | |
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
| activity: {id:545990c0-16e0-4d80-80f4-4bd6c5d83bbd, parent_id:null, provider:quad_client,…} | |
| actor_id: "edce008e-4e65-46e3-a8f3-a9e7f3cc05ed" | |
| comment_count: 0 | |
| created_at: "2014-06-18T16:48:02Z" | |
| current_user: {can_read:true, can_update:true, can_delete:true, liked:false} | |
| id: "545990c0-16e0-4d80-80f4-4bd6c5d83bbd" | |
| like_count: 0 | |
| like_list: [] | |
| links: {,…} | |
| obj_id: "3c936e75-16a2-4493-bf17-b439f2a84682" |
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
| Meteor.onConnection(function(connection){ | |
| console.log(connection); | |
| connection.onClose = function(){ | |
| console.log('closed') | |
| }; | |
| }); |
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 gulp = require('gulp'); | |
| var jshint = require('gulp-jshint'); | |
| var concat = require('gulp-concat'); | |
| var mocha = require('gulp-mocha'); | |
| var sass = require('gulp-sass'); | |
| var uglify = require('gulp-uglify'); | |
| gulp.task('concat', function(){ | |
| var folder = './dist', |