Skip to content

Instantly share code, notes, and snippets.

View omegahm's full-sized avatar

Mads Ohm Larsen omegahm

View GitHub Profile
@omegahm
omegahm / example.tex
Created June 9, 2012 16:18
Songbook example
\documentclass[a4paper,11pt,onecolumn]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{a4wide}
\usepackage{pslatex}
\usepackage{verbatim}
\usepackage{graphicx}
@omegahm
omegahm / gist:2972279
Created June 22, 2012 11:46
Songbook example
\documentclass[a4paper,11pt,onecolumn]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{a4wide}
\usepackage[lyric]{songs}
@omegahm
omegahm / .bashrc
Created March 13, 2014 08:55
Snippet from .bashrc
export PROMPT_COMMAND=__prompt_command
function __prompt_command() {
local EXIT="$?"
PS1="\[${YELLOW}\]\u\[${RESET}\]"
PS1+="@"
PS1+="\[${CYAN}\]\H\[${RESET}\] "
PS1+="\[${WHITE}\]\w\[${RESET}\] "
PS1+="\n"
@omegahm
omegahm / SassMeister-input.scss
Created April 30, 2014 12:03
Generated by SassMeister.com.
// ----
// Sass (v3.3.5)
// Compass (v1.0.0.alpha.18)
// ----
.head {
.body {
color: red;
}
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
name;to;
Mads Øhm;[email protected];

Keybase proof

I hereby claim:

  • I am omegahm on github.
  • I am ohm (https://keybase.io/ohm) on keybase.
  • I have a public key whose fingerprint is 325A 9501 EF27 4119 9D95 6B2C 6160 D55A B733 0741

To claim this, I am signing this object:

@omegahm
omegahm / .bashrc
Last active August 29, 2015 14:08
.bashrc for servers
# LOKALEBASEN BASHRC
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
PS1="\[\e[01;30m\][\t] \[\e[0m\]\[\e[00;35m\]\u\[\e[0m\]\[\e[00;37m\]@\[\e[0m\]\[\e[00;31m\]\h\[\e[0m\]\[\e[00;37m\]:\[\e[0m\]\[\e[00;36m\]\w\[\e[0m\]\[\e[00;37m\] \\$ \[\e[0m\]"
/**************************/
/* GECKOBOARD LIGHT THEME */
/**************************/
.icons-sprite,
.geckometer-widget .widget-canvas .scale,
.geckometer-widget .widget-canvas .scale-big {
background: url(https://d28q98t4icjy0h.cloudfront.net/assets/icons-s9344ff3d6a-79d79b411ae93eb9bbd8151b2a5bf8e8.png) no-repeat;
}
body {
@sums = ko.computed =>
$.map data.sums, (value, key) =>
if @kinds().length is 0 || @kinds().indexOf(key) isnt -1
value
.reduce (a, b) ->
a + b
, 0
@omegahm
omegahm / graph.rb
Last active June 8, 2020 12:41
Generate nice Dependency Hierarchy Graph of Gems
#!/usr/bin/env ruby
require 'json'
gemfile = ARGV[0] || 'Gemfile.lock'
gems = {}
last_gem = ''
name = ''
File.readlines(gemfile).each do |line|