This is my color scheme definition to be used with @chriskempson base16 builder. It is based on the original base16 color set with some pink modifications. I use the resulting 256 colors variant.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Podcast | |
include Guacamole::Model | |
attribute :title, String | |
attribute :body, String | |
# Timestamp attributes are automatically added (created_at, updated_at) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scheme: "PinkiePie" | |
author: "Dirk Breuer (http://tfcl.de)" | |
base00: "151515" | |
base01: "202020" | |
base02: "303030" | |
base03: "505050" | |
base04: "b0b0b0" | |
base05: "d0d0d0" | |
base06: "e0e0e0" | |
base07: "f5f5f5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shoes.app width: 600, height: 600 do | |
@knopf = button("Start", left: 300, top: 300) do | |
@pinky = image "/Users/dbreuer/Desktop/pinkie.png", width: 120, left: 0 | |
@dash = image "/Users/dbreuer/Desktop/dash.png", width: 120, left: 400 | |
@knopf.hide | |
end | |
#@mein_kreis = oval(0, 100, 25, fill: red, stroke: pink) | |
#animate 60 do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Gateway | |
attr_reader :connection | |
def initialize(connection = Application.config.default_connection) | |
@connection = connection | |
end | |
def get(params) | |
request(:get, params) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Verdienstziele und weitere Parameter | |
# =============================================================================================== | |
Jahr=2012 | |
# Gewerbesteuer berücksichtigen, "ja" oder "nein"? | |
GewerbesteuerEinrechnen = "nein" | |
# Jeweilige Jahresziele sollten in 10 Monaten erreicht werden | |
# ...wegen Weiterbildungen, Urlaub, Krankheit, Open Source Contribution | |
# MaxStd entspricht dabei dann 100% Auslastung |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Capistrano::Configuration.instance(:must_exist).load do | |
set :resque_local_start_port, 7070 | |
set :resque_remote_port, 8282 | |
def resque_local_ports | |
@resque_local_ports ||= Enumerator.new do |yielder| | |
current_port = fetch(:resque_local_start_port) | |
loop do | |
yielder.yield current_port | |
current_port += 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autocmd FileType ruby compiler ruby | |
function Run() | |
let executable=b:current_compiler | |
if !getbufvar("%", "&saved") | |
let tmpfile = tempname() | |
silent! exe "write " . tmpfile . ".rb" | |
endif |
This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:
- Netflix
- Hulu / HuluPlus
- CBS
- ABC
- MTV
- theWB
- CW TV
- Crackle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The 'rb_define_global_function' can be found in class.c | |
/*! | |
* Defines a global function | |
* \param name name of the function | |
* \param func the method body | |
* \param argc the number of parameters, or -1 or -2. see \ref defmethod. | |
*/ | |
void | |
rb_define_global_function(const char *name, VALUE (*func)(ANYARGS), int argc) |