Skip to content

Instantly share code, notes, and snippets.

View vasco3's full-sized avatar

Gorka Cesium vasco3

View GitHub Profile
@vasco3
vasco3 / .vimrc
Created July 24, 2014 18:44
.vimrc
" Indent automatically depending on filetype
filetype indent on
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
" Turn on line numbering. Turn it off with "set nonu"
set number
@vasco3
vasco3 / colors.sh
Created April 17, 2015 22:13
bash colors
#!/usr/bin/env bash
# COLORS
red=$(tput setaf 1)
green=$(tput setaf 2)
yellow=$(tput setaf 3)
blue=$(tput setaf 4)
purple=$(tput setaf 5)
cyan=$(tput setaf 6)
white=$(tput setaf 7)
@vasco3
vasco3 / zsh-numpad.markdown
Created April 20, 2015 17:02
zsh numpad keybindings
# 0 . Enter
bindkey -s "^[Op" "0"
bindkey -s "^[Ol" "."
bindkey -s "^[OM" "^M"
# 1 2 3
bindkey -s "^[Oq" "1"
bindkey -s "^[Or" "2"
bindkey -s "^[Os" "3"
# 4 5 6

Npm modules

optimisit: for interpreting command line args

@vasco3
vasco3 / monads.markdown
Last active August 29, 2015 14:25
Monads

Monads

Macroids

function MONAD () {
  return function unit(value) {
 var monad = Object.create(null);
@vasco3
vasco3 / LICENSE
Last active August 29, 2015 14:26 — forked from ourmaninamsterdam/LICENSE
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@vasco3
vasco3 / sqrt.js
Last active September 7, 2015 14:20
Square root with recursion
function sqrt(original, rootn) {
if (rootn < 1) return;
rootn = rootn || (original - 1);
var isSqRoot = (rootn * rootn) === original;
while (isSqRoot === false) {
return sqrt(original, rootn - 1);
}
@vasco3
vasco3 / algorithms-notes.markdown
Last active September 24, 2015 03:29
Algorithm notes

Algorithms notes

Use Asymptotic Analysis to compare the eficiency of algorithms

Famous algorithm experts

  • Thomas Cormen
  • Devin Balkom
@vasco3
vasco3 / babel-node.json
Created October 4, 2015 01:10
babel-node guide
"scripts": {
"start": "npm run check && babel-node app/server.js",
},