This file contains 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
/* | |
This is for configuring the hc-06 bluetooth chip to work with Johnny-Five javascript robotics library. | |
Might also work with the hc-05. | |
Author: Glen Arrowsmith (@garrows) | |
*/ | |
#define ROBOT_NAME "RandomBot" |
This file contains 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 <ZumoBuzzer.h> | |
#include <ZumoMotors.h> | |
#include <Pushbutton.h> | |
#include <QTRSensors.h> | |
#include <ZumoReflectanceSensorArray.h> | |
#define LED 13 | |
#define DISTANCE_SENSOR A1 | |
// this might need to be tuned for different lighting conditions, surfaces, etc. |
This file contains 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
.panes::after { | |
content: ""; | |
position: fixed; | |
top: 0; | |
right: 0; | |
left: 0; | |
bottom: 0; | |
pointer-events: none; | |
background: url("https://source.unsplash.com/random"); | |
// background: url("https://source.unsplash.com/category/nature"); //Nature category |
This file contains 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
#!/bin/sh | |
type js-beautify >/dev/null 2>&1 || { echo >&2 "js-beautify command missing. Installing now."; sudo npm install -g js-beautify; } | |
find . -type f -name "*.js" -not -path "*node_modules*" -exec js-beautify -r {} \; |
This file contains 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
Community Packages (15) /Users/glen/.atom/packages | |
├── api-blueprint-preview@0.7.0 | |
├── atom-beautify@0.29.22 | |
├── busy-signal@1.3.0 | |
├── editorconfig@2.2.2 | |
├── git-diff-details@1.4.0 | |
├── git-plus@7.5.0 | |
├── intentions@1.1.2 | |
├── language-api-blueprint@1.0.2 | |
├── lcov-info@0.12.0 |
This file contains 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
{ | |
"indent_size": 4, | |
"indent_char": " ", | |
"indent_level": 0, | |
"indent_with_tabs": true, | |
"preserve_newlines": true, | |
"max_preserve_newlines": 10, | |
"jslint_happy": true, | |
"brace_style": "collapse", | |
"keep_array_indentation": false, |
This file contains 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
MyObject.prototype.on = function (eventName, callback) { | |
if (this.eventListeners[eventName] == undefined) { | |
this.eventListeners[eventName] = []; | |
} | |
if (typeof callback == "function") { | |
this.eventListeners[eventName].push(callback); | |
} else { | |
throw "can not subscribe with a non function callback"; | |
} | |
} |
This file contains 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
.panes::after { | |
content: ""; | |
position: fixed; | |
top: 0; | |
right: 0; | |
left: 0; | |
bottom: 0; | |
pointer-events: none; | |
background: url("http://thecatapi.com/api/images/get?format=src&type=jpg,png"); | |
background-size: cover; |
This file contains 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
// In the express generated example, this is /routes/index.js | |
var express = require('express'); | |
var router = express.Router(); | |
var TheService = function() {}; | |
TheService.prototype = { | |
getTitle: function(req, res, next) { | |
console.log('getTitle'); | |
res.title = 'Express'; |
This file contains 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
<html> | |
<head> | |
<title>Slider Test</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} |
NewerOlder