SPC q q- quitSPC w /- split window verticallySPC w- - split window horizontallySPC 1- switch to window 1SPC 2- switch to window 2SPC w c- delete current windowSPC TAB- switch to previous bufferSPC b b- switch buffers
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
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun enable-minor-mode (my-pair) | |
| "Enable minor mode if filename match the regexp. MY-PAIR is a cons cell (regexp . minor-mode)." | |
| (if (buffer-file-name) | |
| (if (string-match (car my-pair) buffer-file-name) | |
| (funcall (cdr my-pair))))) |
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
| # i3 config file (v4) | |
| # Please see http://i3wm.org/docs/userguide.html for a complete reference! | |
| # Set mod key (Mod1=<Alt>, Mod4=<Super>) | |
| set $mod Mod4 | |
| # set default desktop layout (default is tiling) | |
| # workspace_layout tabbed <stacking|tabbed> | |
| # Configure border style <normal|1pixel|pixel xx|none|pixel> |
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
| #!/bin/bash | |
| # Skip prepending certain branches | |
| if [ -z "$BRANCHES_TO_SKIP" ]; then | |
| BRANCHES_TO_SKIP=(master develop test) | |
| fi | |
| # Extract issue id from branch name | |
| BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
| BRANCH_NAME=$(echo "${BRANCH_NAME##*/}" | sed 's/\([a-zA-Z]\{3,\}-[0-9]\{3,\}\).*/\1/') |
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
| alias dsc='docker stop $(docker ps -a -q)' | |
| alias drc='docker rm $(docker ps -a -q)' | |
| alias dri='docker rmi $(docker images -q)' |
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
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |
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
| '.source.js': | |
| 'Mithril Component': | |
| 'prefix': 'mc' | |
| 'description': 'Create a new Mithril Component' | |
| 'body': """ | |
| import m from 'mithril'; | |
| const $1 = { | |
| controller(props) { | |
| $2 |
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 m from 'mithril'; | |
| import Form from './form'; | |
| const Profile = { | |
| controller(props) { | |
| const profile = { | |
| username: m.prop('bob'), | |
| password: m.prop(''), | |
| displayEmail: m.prop(false), |
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 m from 'mithril'; | |
| import { map } from 'lodash'; | |
| const Formatter = { | |
| 'float': (val, opts) => { | |
| val = +val || 0; | |
| if (opts) { | |
| val = val.toFixed(opts); | |
| } | |
| return parseFloat(val); |
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 m from 'mithril'; | |
| let routes = { | |
| // key | |
| // path | |
| // component | |
| }; | |
| // Compile routes to mithril router format | |
| export default function router(mountTarget, basePath='/', routeMode='hash') { |