Skip to content

Instantly share code, notes, and snippets.

View ninrod's full-sized avatar
🤓
git commiting since 2014

Filipe Silva ninrod

🤓
git commiting since 2014
View GitHub Profile
@ninrod
ninrod / js-conceal.vim
Last active July 7, 2016 20:06 — forked from lukaszkorecki/js.vim
concealing in vim
" replace 'function' with λ
au BufNewFile,BufRead *.js syntax keyword javasScriptFunction function conceal cchar=λ
au BufNewFile,BufRead *.js hi! link javasScriptFunction Conceal
au BufNewFile,BufRead *.js setlocal conceallevel=2
" add abbreviations for JS
" f_
" expands to
" function() {
" <cursor>
"
@ninrod
ninrod / workflowy-to-org-mode.el
Created July 7, 2016 20:30
Convert from Workflowy export format to Org-Mode
(defun workflowy-to-org-mode ()
(interactive)
(let (count)
(while (not (eobp))
(setq count 0)
(while (looking-at " ")
(setq count (1+ count))
(forward-char 1))
(forward-char 1)
(delete-region (point-at-bol) (point))
@ninrod
ninrod / relative-visual-line-number.md
Last active July 14, 2016 15:21
relative visual line numbers for emacs

Relative visual line numbers for Emacs

  • Here I state the case for native support for relative visual line numbers

  • Screenshot:

vim vs emacs

@ninrod
ninrod / gist:94d8498a26b82b0e18903a32f9aef194
Created July 15, 2016 16:46 — forked from mbadran/gist:130469
replace cd in bash to (silent) pushd
alias cd="pushd $@ > /dev/null"
@ninrod
ninrod / org-mode-reference-in.org
Created October 9, 2016 21:16 — forked from drj42/org-mode-reference-in.org
This is a cheat sheet for Emacs org-mode... in org-mode format!
@ninrod
ninrod / god-state.el
Created November 21, 2016 14:21 — forked from gridaphobe/god-state.el
evil-mode god state
(evil-define-state god
"God state."
:tag " <G> "
:message "-- GOD MODE --"
:entry-hook (evil-god-start-hook)
:exit-hook (evil-god-stop-hook)
:input-method t
:intercept-esc nil)
(defun evil-god-start-hook ()
@ninrod
ninrod / actionlist.vim
Created December 2, 2016 19:56 — forked from zchee/actionlist.vim
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@ninrod
ninrod / init.el
Last active January 18, 2017 12:16
boostraping an emacs configuration from inside a corporate proxy through a mirror repo
(require 'package)
(setq package-enable-at-startup nil)
(setq package-archives '(("melpa" . "~/.emacs.d/mirror-elpa/melpa/")
("org" . "~/.emacs.d/mirror-elpa/org/")
("gnu" . "~/.emacs.d/mirror-elpa/gnu/")))
(package-initialize)
;; Bootstrap John Wigley's `use-package'
(unless (package-installed-p 'use-package)
@ninrod
ninrod / bash_colours
Created January 20, 2017 14:55 — forked from ian128K/bash_colours
Shell script colours
## Colours and font styles
## Syntax: echo -e "${FOREGROUND_COLOUR}${BACKGROUND_COLOUR}${STYLE}Hello world!${RESET_ALL}"
# Escape sequence and resets
ESC_SEQ="\x1b["
RESET_ALL="${ESC_SEQ}0m"
RESET_BOLD="${ESC_SEQ}21m"
RESET_UL="${ESC_SEQ}24m"
# Foreground colours
@ninrod
ninrod / react_fiber.md
Created February 9, 2017 12:51 — forked from geoffreydhuyvetters/react_fiber.md
What is React Fiber? And how can I try it out today?