The boards are flashed with Espruino. Install the CP2102 driver and Espruino IDE from the Chrome extensions store. See Anna's blog for more details.
Use the GPIO pin numbers in the code e.g. pin 4 not D2.
#!/bin/bash | |
set -e -x | |
echo "starting supervisor in foreground" | |
supervisord -n |
# DOCKER-VERSION 1.0.0 | |
FROM centos:centos6 | |
MAINTAINER Mike Ebinum, hello@seedtech.io | |
# Install dependencies for HHVM | |
# yum update -y >/dev/null && | |
RUN yum install -y http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm && curl -L -o /etc/yum.repos.d/hop5.repo "http://www.hop5.in/yum/el6/hop5.repo" |
/** | |
* @providesModule IncrementalListView | |
*/ | |
'use strict'; | |
var InteractionManager = require('InteractionManager'); | |
var LayoutAnimation = require('LayoutAnimation'); | |
var ListViewDataSource = require('ListViewDataSource'); | |
var RCTScrollViewManager = require('NativeModules').ScrollViewManager; | |
var React = require('React'); |
The boards are flashed with Espruino. Install the CP2102 driver and Espruino IDE from the Chrome extensions store. See Anna's blog for more details.
Use the GPIO pin numbers in the code e.g. pin 4 not D2.
//import the component into your project | |
import {AzureInstance, AzureLoginView} from 'react-native-azure-ad-2' | |
//create an AzureInstance object with your Microsoft Azure credentials | |
var credentials = { | |
client_id: 'xxxxxxxx', | |
client_secret: 'xxxxxx', | |
scope: 'User.ReadBasic.All Mail.Read offline_access' //access scope for login - see http://bit.ly/2gtQe9W for more info | |
}; |
<script> | |
// define the load gist function | |
var loadGist = function(elem) { | |
var gistUrl = $(elem).text().match(/\bhttps?:\/\/\S+(.js)/gi); | |
if (typeof gistUrl === 'undefined' || gistUrl === null || gistUrl.length == 0) | |
return; | |
//load gist | |
$(elem).show(); | |
$(elem).empty(); | |
postscribe(elem, '<script src=' + gistUrl+ '><\/script>'); |
<style type="text/css"> | |
/**Styles for github gists*/ | |
@media (max-width: 479px) { | |
blockquote { | |
max-width: 394px; | |
overflow: auto; | |
} | |
.gist-p {max-width:394px; overflow:auto} | |
.gist .file-data {max-height: 500px;max-width: 394px;} | |
} |
I hereby claim:
To claim this, I am signing this object:
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).immutabilityHelper=e()}}(function(){return function(){return function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!u&&c)return c(a,!0);if(i)return i(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var s=n[a]={exports:{}};t[a][0].call(s.exports,function(e){return o(t[a][1][e]||e)},s,s.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}}()({1:[function(e,t,n){var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout, |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.