Skip to content

Instantly share code, notes, and snippets.

View siggiarni's full-sized avatar

Sigurður Árni Svanbergsson siggiarni

View GitHub Profile
@siggiarni
siggiarni / 0_reuse_code.js
Created January 17, 2016 01:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# For wireless
$ ipconfig getifaddr en1
# For ethernet
$ ipconfig getifaddr en0
[
{ "keys": ["alt+y"], "command": "toggle_in_selection", "context": [ { "key": "setting.is_widget", "operator": "equal", "operand": true } ] }
]
{
"always-semicolon": true,
"color-case": "lower",
"block-indent": " ",
"color-shorthand": false,
"element-case": "lower",
"eof-newline": true,
"leading-zero": false,
"quotes": "single",
"space-before-colon": "",
javascript:document.querySelector(%22video%22).webkitSetPresentationMode(%22picture-in-picture%22);
0-act.channel.facebook.com
0-edge-chat.facebook.com
1-act.channel.facebook.com
1-edge-chat.facebook.com
2-act.channel.facebook.com
2-edge-chat.facebook.com
3-act.channel.facebook.com
3-edge-chat.facebook.com
4-act.channel.facebook.com
4-edge-chat.facebook.com
* facebook.com * block
* facebook.de * block
* facebook.fr * block
* facebook.net * block
* fb.com * block
* fb.me * block
* fbcdn.com * block
* fbcdn.net * block
* fbsbx.com * block
* messenger.com * block
https://www.youtube.com/embed/zxzO1grNPjw?playlist=zxzO1grNPjw&vq=hd1080&showinfo=0&rel=0&modestbranding=0&autoplay=1&mute=1&loop=1&playsinline=1
@siggiarni
siggiarni / vimrc
Last active November 28, 2017 12:23
execute pathogen#infect()
" Setting up Vundle - the vim plugin bundler
let iCanHazVundle=1
let vundle_readme=expand('~/.vim/bundle/vundle/README.md')
if !filereadable(vundle_readme)
echo "Installing Vundle.."
echo ""
silent !mkdir -p ~/.vim/bundle
silent !git clone https://github.com/VundleVim/Vundle.vim ~/.vim/bundle/vundle
let iCanHazVundle=0
@siggiarni
siggiarni / vimrc.vim
Last active September 25, 2018 08:49
syntax on
colorscheme flatland
filetype plugin indent on
" Turn on omni complete
set omnifunc=syntaxcomplete#Complete
set title "Set the document name in the window title.
set showcmd "Show (partial) command in the last line of the screen.
set showmode "If in Insert, Replace or Visual mode put a message on the last line.