- Install
https://get.adobe.com/flashplayer
with the PPAPI option - Navigate to
C:\Windows\System32\Macromed\Flash
- copy
C:\Windows\System32\Macromed\Flash
to.\PepperFlash\
in yournw
folder
-Add the following code in your NWJS application
node -p "r=require;j='./package.json';p=r(j);r('fs').writeFileSync(j,JSON.stringify(p,null,'\t'));'😎'" |
load('api_bitbang.js'); | |
load('api_sys.js'); | |
load('api_gpio.js'); | |
let pin = 26; | |
let pixels = 60; | |
let len = pixels * 4; | |
let data = Sys.malloc(len); | |
for(let i = 0; i < len; i++) { | |
data[i] = 1; |
import { Subject } from 'rxjs' | |
import { doWork } from './elsewhere' | |
export const monitor = filter => { | |
const subject = new Subject() | |
let isComplete = false | |
const monitor = () => { | |
if (isComplete) subject.complete() | |
else { | |
setTimeout(() => { |
import { Subject } from 'rxjs' | |
/** | |
* next/error/complete should be functions like const myNext = fowarder => i => fowarder.next(doWorkBeforeFowarder(i)) | |
* or do not pass them and automatically forward | |
*/ | |
export const forwardObserver = ({ | |
current, | |
forwarder = new Subject(), | |
next = void 0, |
Install pi3 with noobs | |
https://www.raspberrypi.org/downloads/noobs/ | |
Get NVM | |
git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm | |
Add NVM to .bashrc | |
source ~/.nvm/nvm.sh | |
Install Cloud9 |
{ | |
"id": "f2931ada-c89b-4a4c-8c6e-c42857a54ff6", | |
"name": "Bast Vector", | |
"mind": { | |
"name": "mind", | |
"baseStat": "strong(2)", | |
"currentStat": "strong(2)", | |
"wound": "none(6)", | |
"statHistory": [], | |
"fuelStat": { |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
var Inherit = this.Inherit || function (newClass, classToInheritFrom) { | |
//copy properties | |
for (var property in classToInheritFrom) | |
{ | |
if (classToInheritFrom.hasOwnProperty(property)) | |
{ | |
newClass[property] = classToInheritFrom[property]; | |
} | |
} |