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
| #!/usr/bin/env bash | |
| #0 exit if not OSX | |
| if [ "$(uname -s)" != "Darwin" ]; then | |
| echo "Expected you are using OSX, but it's not. Stop" | |
| exit 1 | |
| fi | |
| #1. install pre-requisites | |
| brew install libtermkey curl lua |
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 | |
| APP=${1:-none} | |
| LOCALE=${2:-ko} | |
| if [[ "$APP" == "none" ]]; then | |
| echo -e "missing applicaton name as argument:\n" | |
| echo -e "\t`basename $0` <Application-Name-Without-Extension> [locale]" | |
| echo | |
| exit 1 | |
| fi |
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
| atom.workspace.observeTextEditors (editor) -> | |
| original = editor.getGrammar() | |
| if original? and original is atom.grammars.grammarForScopeName('text.plain.null-grammar') | |
| editor.setGrammar(atom.grammars.grammarForScopeName('source.markdown')) |
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
| "Initialization {{{ | |
| set nocompatible | |
| let mapleader = '\' | |
| " }}} | |
| "Loading Vundle Plugins: {{{ | |
| filetype on | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| set runtimepath+=~/.vim/bundle/ctrlp.vim | |
| set runtimepath+=~/.vim/bundle/dart-vim-plugin |
Emacs packages, features, files, layers, extensions, auto-loading, require,
provide, use-package… All these terms getting you confused? Let’s clear up
a few things.
Emacs files contains code that can be evaluated. When evaluated, the functions, macros and modes defined in that file become available to the current Emacs session. Henceforth, this will be termed as loading a file.
One major problem is to ensure that all the correct files are loaded, and in the
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
| ;; Mu4e ------------------------------------------------------------------------ | |
| ;; Mail Mu4e | |
| (require 'org-mu4e) | |
| (setq mu4e-maildir "~/Mail") | |
| (setq mu4e-user-mail-address-list '("jack@fusionary.com" "jack@baty.net") ) | |
| ;;store link to message if in header view if nil - header query if t | |
| (setq org-mu4e-link-query-in-headers-mode t) |
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
| has() { | |
| type "$1" > /dev/null 2>&1 | |
| return $? | |
| } |
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
| array=(foo, bar, baz) | |
| echo ${array[@]} # => foo, bar, baz | |
| array=("${array[@]:1}") | |
| echo ${array[@]} # => bar, baz | |
| array=("${array[@]:1}") | |
| echo ${array[@]} # => baz |