File and folder naming convention for React.js components
/actions/...
/components/common/Link.js
/components/common/...
/components/forms/TextBox.js
/components/forms/TextBox.res/style.css
| $queries = DB::getQueryLog(); | |
| $last_query = end($queries); |
| Install php on Mac | |
| curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5 | |
| export PATH=/usr/local/php5/bin:$PATH | |
| Why is Europe/Zurich the default timezone? Where to change that? |
| ----- Esc ----- | |
| Quick change directory: Esc + c | |
| Quick change directory history: Esc + c and then Esc + h | |
| Quick change directory previous entry: Esc + c and then Esc + p | |
| Command line history: Esc + h | |
| Command line previous command: Esc + p | |
| View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
| Print current working directory in command line: Esc + a | |
| Switch between background command line and MC: Ctrl + o | |
| Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |
| ----- Esc ----- | |
| Quick change directory: Esc + c | |
| Quick change directory history: Esc + c and then Esc + h | |
| Quick change directory previous entry: Esc + c and then Esc + p | |
| Command line history: Esc + h | |
| Command line previous command: Esc + p | |
| View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
| Print current working directory in command line: Esc + a | |
| Switch between background command line and MC: Ctrl + o | |
| Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |
| One liner to stop / remove all of Docker containers: | |
| docker stop $(docker ps -a -q) | |
| docker rm $(docker ps -a -q) |
| # stop script on error signal | |
| set -e | |
| # remove old deployment folders | |
| if [ -d "/home/forge/weather-deploy" ]; then | |
| rm -R /home/forge/weather-deploy | |
| fi | |
| if [ -d "/home/forge/weather-backup" ]; then | |
| rm -R /home/forge/weather-backup | |
| fi |
| package com.gazatem.java.blockchain.tutorial.model; | |
| import java.util.Date; | |
| public class Block { | |
| private String hash; | |
| private String previousHash; | |
| private String storedData; | |
| private long timeStamp; | |
| private int nonce; |
| package com.gazatem.java.blockchain.tutorial; | |
| import com.gazatem.java.blockchain.tutorial.model.Block; | |
| import com.gazatem.java.blockchain.tutorial.service.Calculate; | |
| import java.util.ArrayList; | |
| public class main { | |
| private static Calculate calculate; |
| { | |
| "name": "es6-express", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1", | |
| "build": "rimraf dist/ && babel ./ --out-dir dist/ --ignore ./node_modules,./.babelrc,./package.json,./npm-debug.log --copy-files", | |
| "start": "npm run build && node dist/index.js" | |
| }, |