Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am emilbayes on github.
  • I am emilbayes (https://keybase.io/emilbayes) on keybase.
  • I have a public key ASDynzdEbrEK0VqogHjTTRM0t9vahLfbpR6FOgOxYRFIDgo

To claim this, I am signing this object:

@emilbayes
emilbayes / test
Created August 9, 2017 08:10
Cordova Plugin Development
#!/usr/bin/env bash
cordova create test com.test.app test
cd test
cordova platform add android
cordova plugin add [PLUGIN_NAME] [PLUGIN_PATH]
cordova prepare
@emilbayes
emilbayes / readonly.sh
Created September 19, 2017 12:41 — forked from soldair/readonly.sh
make a read only npm token
curl -sLi -X PUT -H 'content-type: application/json' -d '{"name": "USERNAME", "token": true, "password": "PASSWORD", "readonly": true, "email": "EMAIL"}' 'https://registry.npmjs.org/-/user/org.couchdb.user:USERNAME'
var css = require('sheetify')
var cl = css`
:host {
background: red;
&:hover {
background: green;
}
}
[Unit]
Description=ims seeder
After=network.target
[Service]
ExecStart=/usr/local/bin/node /home/ims-seeder/node_modules/.bin/ims --seed
User=ims-seeder
Group=ims-seeder
[Install]
(module
(memory (export "memory") 1)
(func $decide
(export "decide")
(param $zero i32)
(result i32)
(if (result i32)
(i32.eqz (get_local $zero))
(then (i32.const 0))

Preparation:

  • Have a recent version of Node (8+)
  • Run npm install -g wat2wasm wat2js to have the compiler installed globally
  • Install a WebAssembly language pack for your editor (the one for Atom is nice)
  • Optional: Install parinfer, which will help you managing brackets when writing WAT: https://shaunlebron.github.io/parinfer/#editor-plugins

WebAssembly Workshop at NodeConfEU 2018

Preparation:

  • Have a recent version of Node (8+)
  • Run npm install -g wat2wasm wat2js to have the compiler installed globally
  • Install a WebAssembly language pack for your editor (the one for Atom is nice)
  • Optional: Install parinfer, which will help you managing brackets when writing WAT: https://shaunlebron.github.io/parinfer/#editor-plugins
node_modules
remote
local