I hereby claim:
- I am ericterpstra on github.
- I am ericterpstra (https://keybase.io/ericterpstra) on keybase.
- I have a public key ASCWbKWfd9m0BF5MR5phu_hJm45YgLdc89h6sF2eV_Z8IQo
To claim this, I am signing this object:
| var five = require("johnny-five"); | |
| var Spark = require("spark-io"); | |
| var fsr, tmp; | |
| (new five.Board({ | |
| io: new Spark({ | |
| deviceId: process.env.SPARK_DEVICE_ID, | |
| token: process.env.SPARK_TOKEN | |
| }) |
| [{"name":"Bears","color":"Blue","position":{"x":177,"y":85},"modelclass":"Bear","increment":false,"timestamp":false,"softdelete":false,"column":[{"colid":"c217","name":"id","type":"increments","length":"0","order":0,"defaultvalue":"","enumvalue":""},{"colid":"c218","name":"name","type":"string","length":"200","order":1,"defaultvalue":"","enumvalue":""},{"colid":"c219","name":"danger_level","type":"string","length":"200","order":2,"defaultvalue":"","enumvalue":""}],"relation":[{"extramethods":"","foreignkeys":"","name":"fish","relatedmodel":"Fish","relationtype":"hasOne","usenamespace":""},{"extramethods":"","foreignkeys":"","name":"trees","relatedmodel":"Trees","relationtype":"hasMany","usenamespace":""},{"extramethods":"","foreignkeys":"bear_id, picnic_id","name":"picnics","relatedmodel":"Picnics","relationtype":"belongsToMany","usenamespace":""}],"seeding":[]},{"name":"Fish","color":"Yellow","position":{"x":852,"y":71},"modelclass":"Fish","increment":false,"timestamp":false,"softdelete":false,"column":[{"co |
| #include <Servo.h> | |
| Servo myservo; // create servo object to control a servo | |
| int pirVal = 1024; | |
| int servoPin = 9; | |
| int pos = 0; |
| function getSomeData() { | |
| // perform some asynchronous operation, resolve or reject the promise when appropriate. | |
| return $q(function(resolve, reject) { | |
| $http({ | |
| method: 'GET', | |
| url: '/someUrl' | |
| }) | |
| .then(function successCallback(response) { | |
| resolve(respose); | |
| }, function errorCallback(response) { |
| function doStuffBeforeGettingData(stuff) { | |
| return $q(function(resolve, reject) { | |
| // Validate stuff. | |
| if (stuffnotvalid) { | |
| // Create error reasons | |
| reject(reasons) | |
| } else { | |
| $http({ |
| Meteor.publish('pubname', function(doTransform) { | |
| let options = {}; | |
| if (doTransform) { | |
| options.transform = function(doc) { | |
| doc.username = 'johndoe'; | |
| } | |
| } else { | |
| options.transform = null; | |
| } |
| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| class MY_Session extends CI_Session{ | |
| private $sess_use_redis = TRUE; | |
| private $redis = ''; | |
| public function __construct($params = array()) { | |
| //parent::__construct(); | |
| $this->CI =& get_instance(); |
I hereby claim:
To claim this, I am signing this object:
| btc = 0 | |
| usd = 0 | |
| json = {} | |
| doGetData = true | |
| currencyLabel = "BTC" | |
| currencyValue = btc | |
| -- setup I2c and connect display | |
| function init_i2c_display() | |
| -- SDA and SCL can be assigned freely to available GPIOs |