Skip to content

Instantly share code, notes, and snippets.

View timofurrer's full-sized avatar
Commits are my own. Powered by coffee.

Timo Furrer timofurrer

Commits are my own. Powered by coffee.
View GitHub Profile
# Path to your oh-my-zsh installation.
#export ZSH=/home/users/furrert/.oh-my-zsh
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="gallois"
#ZSH_THEME="flazz"
@timofurrer
timofurrer / localStorage.js
Created September 22, 2015 05:51
AngularJS localStorage service
(function(module) {
var localStorage = function($window) {
var storage = $window.localStorage;
var set = function(key, value) {
storage.setItem(key, angular.toJson(value));
};
var get = function(key) {
var value = storage.getItem(key);
@timofurrer
timofurrer / .zshrc
Last active February 9, 2016 23:52
.zshrc
# Path to your oh-my-zsh installation.
#export ZSH=/home/users/furrert/.oh-my-zsh
export ZSH=$HOME/.oh-my-zsh
export TERM="xterm-256color"
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="gallois"
@timofurrer
timofurrer / .zshrc
Created March 7, 2016 17:17
zsh with not working bindkey for autosuggestions
# Path to your oh-my-zsh installation.
export ZSH=$HOME.oh-my-zsh
ZSH_THEME="tuxtimo"
# use 256 colors
export TERM="xterm-256color"
# Uncomment the following line to use case-sensitive completion.
CASE_SENSITIVE="true"
versions pytest-2.9.2, py-1.4.31, python-2.7.11.final.0
cwd=/home/tuxtimo/work/sure-issues/issue-74
args=['test_demo.py', '--junit-xml=junit_bad.xml', '--debug', '-v']
pytest_cmdline_main [hook]
config: <_pytest.config.Config object at 0x7f40a77a5f50>
pytest_plugin_registered [hook]
manager: <_pytest.config.PytestPluginManager object at 0x7f40a77a56d0>
plugin: <Session 'issue-74'>
finish pytest_plugin_registered --> [] [hook]
@timofurrer
timofurrer / tuxtimo.zsh-theme
Last active June 16, 2016 22:52
tuxtimo.zsh-theme
# oh-my-zsh Bureau Theme
### NVM
ZSH_THEME_NVM_PROMPT_PREFIX="%B⬡%b "
ZSH_THEME_NVM_PROMPT_SUFFIX=""
### Git [±master ▾●]
ZSH_THEME_GIT_PROMPT_PREFIX="[%{$fg_bold[green]%}±%{$reset_color%}%{$fg_bold[white]%}"
@timofurrer
timofurrer / autosuggestion-settings.zsh
Created June 16, 2016 22:52
autosuggestion-settings.zsh
# use a dark grey color for the suggestions
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=243"
# set keybinding to CTRL + Space
bindkey '^ ' autosuggest-accept
@timofurrer
timofurrer / keybase.md
Created August 27, 2016 07:22
keybase.md

Keybase proof

I hereby claim:

  • I am timofurrer on github.
  • I am tuxtimo (https://keybase.io/tuxtimo) on keybase.
  • I have a public key whose fingerprint is CFC6 2A1D 8884 01A1 93E2 7DFA 9670 4219 D330 4F22

To claim this, I am signing this object:

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@timofurrer
timofurrer / DwHZ-0.py
Created October 14, 2016 10:08
null created by timofurrer - https://repl.it/DwHZ/0
def foo(f):
print("Foo is called")
def _wrapper():
print("Foo wrapper is called")
f()
return _wrapper
def bar(f):
print("Bar is called")