$ cd /path/to/Dockerfile
$ sudo docker build .
View running processes
// If the script does not work, you may need to allow same site scripting https://stackoverflow.com/a/50902950 | |
Facebook = { | |
config: { | |
actionDelay: 1000, | |
scrollDelay: 5000, | |
// set to -1 for no limit | |
maxRequestsToAccept: -1, | |
totalRequestsAccepted: 0, | |
// set string to be present in names to be accepted, leave empty to accept all |
[ | |
{currency: 'Afghan Afghani', code: 'AFN'}, | |
{currency: 'Albanian Lek', code: 'ALL'}, | |
{currency: 'Algerian Dinar', code: 'DZD'}, | |
{currency: 'Angolan Kwanza', code: 'AOA'}, | |
{currency: 'Argentine Peso', code: 'ARS'}, | |
{currency: 'Armenian Dram', code: 'AMD'}, | |
{currency: 'Aruban Florin', code: 'AWG'}, | |
{currency: 'Australian Dollar', code: 'AUD'}, | |
{currency: 'Azerbaijani Manat', code: 'AZN'}, |
// No Security | |
{ | |
"rules": { | |
".read": true, | |
".write": true | |
} | |
} |
This will require only one dependency, and one line added to your package.json
and it's super fast.
node-sass
.src/sass
.src/css
.require
, this way your app will reload whenever the new css is compiled.npm start
.#!/bin/bash | |
# source http://stackoverflow.com/questions/23222616/copy-all-keys-from-one-db-to-another-in-redis | |
#set connection data accordingly | |
source_host=localhost | |
source_port=6379 | |
source_db=1 | |
target_host=localhost | |
target_port=6379 | |
target_db=2 |
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine
.babelrc:
{
"presets": ["es2015"]
'use strict'; | |
var React = require('react'); | |
var Router = require('react-router'); | |
var { DefaultRoute, Route, RouteHandler, Link } = Router; | |
require('purecss'); | |
require('./app.css'); | |
class App extends React.Component { |
{ | |
/* Home */ | |
"\UF729" = "moveToBeginningOfLine:"; | |
/* End */ | |
"\UF72B" = "moveToEndOfLine:"; | |
/* Shift + Home */ | |
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; |
// ES7, async/await | |
function sleep(ms = 0) { | |
return new Promise(r => setTimeout(r, ms)); | |
} | |
(async () => { | |
console.log('a'); | |
await sleep(1000); | |
console.log('b'); | |
})() |