Skip to content

Instantly share code, notes, and snippets.

View zundr's full-sized avatar

José Antonio Pérez Sánchez zundr

View GitHub Profile
@zundr
zundr / .cVimrc
Last active August 29, 2015 14:27
.cVimrc
set autoupdategist
set noautofocus
let barposition = "bottom"
let highlight = "#ffff00"
let typelinkhintsdelay = 0
let hintcharacters = "fdsawerjkiop"
let locale="us"
let scrollstep = 100
map ; :
package com.andraskindler.playground.adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.andraskindler.playground.Item;
import com.andraskindler.playground.R;
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
#!/bin/bash -ex
# Paste this into ssh
# curl -sL https://gist.github.com/zundr/8080633/raw/bootstrap_homeshick.sh | tar -xzO | /bin/bash -ex
# When forking, you can get the URL from the raw (<>) button.
### Set some command variables depending on whether we are root or not ###
# This assumes you use a debian derivate, replace with yum, pacman etc.
aptget='sudo apt-get'
chsh='sudo chsh'
@zundr
zundr / stack-trace-without-exception.js
Created December 25, 2011 09:59 — forked from jay3sh/stack-trace-without-exception.js
print stack trace anywhere
function foo(args) {
var i, j, k;
// ...
// j acquires some interesting value
// Who called foo when j took this interesting value?
//
var e = new Error('dummy');
var stack = e.stack.replace(/^[^\(]+?[\n$]/gm, '')
.replace(/^\s+at\s+/gm, '')