Files changed in current branch relatively to some other branch:
git checkout <notMainDev>
git diff --name-only <mainDev>
Take .js and .jsx file names from log and feed them to prettier rewiting them with output:
| (defproject moodwiz "0.1.0-SNAPSHOT" | |
| :description "FIXME: write description" | |
| :url "http://example.com/FIXME" | |
| :license {:name "Eclipse Public License" | |
| :url "http://www.eclipse.org/legal/epl-v10.html"} | |
| :dependencies [[org.clojure/clojure "1.8.0"]] | |
| :resource-paths ["resources" "resources/vader-sentiment-analyzer-1.0.jar"] | |
| :main moodwiz.core | |
| ) |
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration. | |
| You should not put any user code in this function besides modifying the variable | |
| values." | |
| (setq-default | |
| ;; Base distribution to use. This is a layer contained in the directory |
Files changed in current branch relatively to some other branch:
git checkout <notMainDev>
git diff --name-only <mainDev>
Take .js and .jsx file names from log and feed them to prettier rewiting them with output:
I hereby claim:
To claim this, I am signing this object:
| (require 'package) | |
| (setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/") | |
| ("melpa" . "https://melpa.org/packages/") | |
| ("marmalade" . "https://marmalade-repo.org/packages/") | |
| ("org" . "http://orgmode.org/elpa/") | |
| ("sunrise" . "http://joseito.republika.pl/sunrise-commander/"))) | |
| (package-initialize) | |
| (defun package-install-if-not (package) | |
| "Install PACKAGE if it's not installed yet." |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| brew install fish | |
| brew install wget | |
| brew install gnutls | |
| brew install git | |
| brew install jq | |
| brew install rlwrap | |
| # clojure | |
| brew install leiningen | |
| # js stuff |
| (require 'package) | |
| (setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/") | |
| ("melpa" . "https://melpa.org/packages/") | |
| ("marmalade" . "https://marmalade-repo.org/packages/") | |
| ("org" . "http://orgmode.org/elpa/") | |
| ("sunrise" . "http://joseito.republika.pl/sunrise-commander/"))) | |
| (package-initialize) | |
| (defun package-install-if-not (package) | |
| "Install PACKAGE if it's not installed yet." |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| brew install cask | |
| brew cask install alfred | |
| brew cask install karabiner-elements | |
| brew cask install gitup | |
| brew cask install telegram | |
| brew cask install google-chrome | |
| brew cask install google-chrome-canary | |
| brew cask install omnifocus | |
| brew cask install selfcontrol |
| setting variables | |
| bash: var=value | |
| fish: set var value | |
| function arguments | |
| bash: "$@" | |
| fish: $argv | |
| function local variables | |
| bash: local var |
| // Part of package.json with eslint configuration I use. | |
| // You'll need eslint-plugin-prettier in your dev dependencies | |
| // and probably a bunch of other things. Eslint will complain. | |
| // Just install what it asks for. | |
| "eslintConfig": { | |
| "extends": "react-app", | |
| "plugins": [ | |
| "prettier" | |
| ], |