Skip to content

Instantly share code, notes, and snippets.

#----------------------------------PLEASE NOTE--------------------------------#
#This file is the author's own work and represents their interpretation of the#
#song. You may only use this file for private study, scholarship, or research.#
#-----------------------------------------------------------------------------#
Date: Wed, 31 May 1995 08:54 +1200 (NZST)
Subject: tab : Aubade - Bartoli
Aubade - Bartoli
~~~~~~
@valakirka
valakirka / gist:9971138
Created April 4, 2014 09:26
Bash prompt git branch
# Show active Git branch #
git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'
}
# Example of prompt, full reference -> http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html #
export PS1="\u@\h:\w\$(git_branch)$ "
irb(main):020:0> require 'benchmark'
=> false
irb(main):021:0>
irb(main):022:0* params = {'platform' => 'ios'}
=> {"platform"=>"ios"}
irb(main):023:0>
irb(main):024:0* Benchmark.bm do |x|
irb(main):025:1* x.report { platform = params['platform'].is_a?(Array) ? params['platform'].first : params['platform']; puts platform }
irb(main):026:1> x.report { platform = Array === params['platform'] ? params['platform'].first : params['platform']; puts platform }
irb(main):027:1> x.report { platform = Array(params['platform']).first; puts platform }
before 'deploy', 'deploy:good_luck'
before 'deploy:migration', 'deploy:good_luck'
task :good_luck, roles: :app, except: { no_release: true } do
if Time.now.wday == 5
logger.debug('')
logger.debug('┓┏┓┏┓┃')
logger.debug('┛┗┛┗┛┃\○/')
logger.debug('┓┏┓┏┓┃ / Friday')
logger.debug('┛┗┛┗┛┃ノ)')
@valakirka
valakirka / torrijas.md
Created May 12, 2017 06:52
Torrijas' recipe

Ingredients

  • One long 2-day-stale bread loaf (baguette will do)
  • Milk (at least 1/2 liter)
  • Lemon zest
  • Cinnamon stick
  • 1/2 vanilla bean
  • 1/2 glass of anís dulce (this is hard to find in Berlin, but spotted at Mite Meer)
  • 3 eggs
@valakirka
valakirka / banana_bread.md
Last active September 17, 2022 15:47
Banana bread

Banana bread

Ingredients

  • 3 very ripe bananas
  • 2 eggs
  • 220gr brown sugar
  • 8 tbsp butter
  • 250gr flour
  • 1 tsp backing powder
  • 1 tsp backing soda
  • A handful of chopped walnuts