Skip to content

Instantly share code, notes, and snippets.

View larssmit's full-sized avatar

Lars Smit larssmit

  • Gouda, The Netherlands
View GitHub Profile
@larssmit
larssmit / prettify_json.rb
Created October 20, 2012 09:50 — forked from tilo/prettify_json.rb
Ruby script to pretty print JSON on the command line (comes with Ruby's json Gem) (curl ... | prettify_json.rb)
#!/usr/bin/env ruby
require 'json'
require 'fileutils'
include FileUtils
# Parses the argument array _args_, according to the pattern _s_, to
# retrieve the single character command line options from it. If _s_ is
# 'xy:' an option '-x' without an option argument is searched, and an
# option '-y foo' with an option argument ('foo').
@larssmit
larssmit / .gvimrc.before
Last active February 18, 2019 10:16
My MacVim settings
" -----------------------------------------------------------------------------
" VIM Configuration for Janus (https://github.com/carlhuda/janus.git)
" Lars Smit larssmit@me.com
" -----------------------------------------------------------------------------
" -----------------------------------------------------------------------------
" Basics
" -----------------------------------------------------------------------------
set encoding=utf8
@larssmit
larssmit / lsmit.zsh-theme
Created December 23, 2011 12:23
Lsmit zsh theme
# ------------------------------------------------------------------------------
# FILE: lsmit.zsh-thema
# DESCRIPTION: oh-my-zsh theme file.
# AUTHOR: Lars Smit <larssmit@me.com>
# VERSION: 1.0.0
# CREDITS: Sorin Ionescu (sorin.ionescu@gmail.com) /
# ------------------------------------------------------------------------------
if [[ "$TERM" != "dumb" ]] && [[ "$DISABLE_LS_COLORS" != "true" ]]; then
@larssmit
larssmit / .tm_properties
Last active September 28, 2015 19:28
Textmate 2 tm_properties global
# ---------------------------------------------------------
# font and size
# ---------------------------------------------------------
fontName = "Menlo"
fontSize = 14
# ---------------------------------------------------------
# Display the name of the home directory
# ---------------------------------------------------------
windowTitleProject = '${projectDirectory:+ — ${projectDirectory/^.*\///}}'