A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
/* | |
JavaScript Caesar shift | |
by Evan Hahn (evanhahn.com) | |
"Encrypt" like this: | |
caesarShift('Attack at dawn!', 12); // Returns "Mffmow mf pmiz!" | |
And "decrypt" like this: |
// Since ES6 Map()'s' retain their order of insertion, it can sometimes be useful to get the last item or value inserted: | |
export const getLastItemInMap = map => Array.from(map)[map.size-1] | |
export const getLastKeyInMap = map => Array.from(map)[map.size-1][0] | |
export const getLastValueInMap = map => Array.from(map)[map.size-1][1] | |
// Obviously getLastKey and getLastValue can reuse getLastItem, but for maximum portability I opted for verbosity. |
/* | |
* EXAMPLE READING AND WRITING A C++ STRUCT TO A FILE | |
*/ | |
#include <FS.h> | |
#include <FFat.h> | |
const char *fileName = "/somefile.txt"; | |
struct aStruct { | |
char someString[11]; |
/* | |
* RIFFWAVE.js v0.03 - Audio encoder for HTML5 <audio> elements. | |
* Copyleft 2011 by Pedro Ladaria <pedro.ladaria at Gmail dot com> | |
* | |
* Public Domain | |
* | |
* Changelog: | |
* | |
* 0.01 - First release | |
* 0.02 - New faster base64 encoding |
# Please make this file available to others | |
# by sending it to <lirc@bartelmus.de> | |
# | |
# this config file was automatically generated | |
# using lirc-0.9.0-pre1(default) on Sat Dec 7 19:14:59 2013 | |
# | |
# contributed by | |
# | |
# brand: lirc-pda.conf | |
# model no. of remote control: |
My machine (basically this build: https://www.thingiverse.com/thing:1514145) has GRBL 0.9 : https://github.com/grbl/grbl/wiki/Configuring-Grbl-v0.9 The documents for newer version are up there too, obviously. It would definitely be good to get v1.1 working in order to learn the process of getting it on a fresh Arduino board. I'll outline the process of how to do that in the section below this one and fill in the details as I get around to figuring them out. Here's what I do know for sure though...
You can use any number of GUIs but the premise is always the same.
Once the firmware is on your board, connect it via USB, power it on, and search in your /dev/
directory for your Arduino (type that into Terminal and start typing "tty" and then hit Tab until something shows up). If you have the Arduino software, use the drop down menus to identify an address like /dev/ttyusb####
or /dev/wchusbserial####
The numbers will be u
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<input id="file" type="file" accept="image/*" /> | |
<br/> | |
<h2>As read:</h2> | |
<img id="placeholder1" width=300/><br/> | |
<h2>Rotated by exif data:</h2> | |
<img id="placeholder2" width=300/> | |
<script> |
To implement API authentication in KeystoneJS, you need the following:
For key based authentication
- Middleware that validates the key in the request body or a header
For session based authentication
- An endpoint that handles signin
- An endpoint that handles signout
It seems that Chrome finally found a way to let us convert from svg to canvas to png without the tainted canvas security feature/bug.