- Install prettier
- Make a .prettierignore file, and add directories you'd like prettier to not format, for example:
**/node_modules - Run
prettier --write "**/*.js"*Don't forget the quotes. - Optional: if you want to format JSON/SCSS files too, replace js with json/scss.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var el = document.createElement('script'); | |
| el.src = "https://raw.githubusercontent.com/lodash/lodash/3.10.1/lodash.min.js"; | |
| el.type = "text/javascript"; | |
| document.head.appendChild(el) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Rx = require('rxjs'); | |
| var firebase = require('firebase'); | |
| firebase.initializeApp({ | |
| "databaseURL": "https://quiver-two.firebaseio.com", | |
| "serviceAccount": "./service-account.json" | |
| }); | |
| var ref = firebase.database().ref('rxjs-demo'); | |
| Rx.Observable.fromPromise(ref.remove()) | |
| .map(function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare type ReduxSaga$Predicate<T> = (arg: T) => boolean; | |
| declare interface ReduxSaga$Task { | |
| isRunning(): boolean; | |
| isCancelled(): boolean; | |
| result(): any; | |
| result<T>(): T; | |
| error(): any; | |
| done: Promise<any>; | |
| cancel(): void; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { runSaga } = require('redux-saga') | |
| const { takeEvery, select } = require('redux-saga/effects') | |
| const EventEmitter = require('events').EventEmitter | |
| // | |
| // Create Saga IO: | |
| // | |
| const createSagaIO = (emitter, getStateResolve) => ({ | |
| // this will be used to resolve take Effects | |
| subscribe: (callback) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Plugin } from 'uppy'; | |
| export default class ReduxEmitter extends Plugin { | |
| constructor(core, opts) { | |
| super(core, opts); | |
| this.type = 'redux'; | |
| this.id = 'ReduxEmitter'; | |
| this.title = 'Redux Emitter'; | |
| // set default options | |
| const defaultOptions = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Core, Tus10 } from 'uppy'; | |
| import runtime from 'serviceworker-webpack-plugin/lib/runtime'; | |
| export const uppy = new Core({ wait: false }); | |
| function uploaderUpdatedAction(value) { | |
| return { | |
| type: 'UPLOADER_UPDATED', | |
| value | |
| }; |
Follow these instructions to start an EC2 instance running Ubuntu that will run rai_node on startup
-
Select Ubuntu Server 16.04 LTS (HVM), SSD Volume Type. A t2.small or larger instance type is recommended.
-
Configure the security group to match the screenshot.
-
Download
install_rai_node.shbelow, update the URLs with their latest versions.Get latest rai_node archive URL from https://github.com/clemahieu/raiblocks/releases.
Get latest gdrive-linux-x64 version URL from https://github.com/prasmussen/gdrive#downloads