Skip to content

Instantly share code, notes, and snippets.

View stefanooldeman's full-sized avatar

Stefano Oldeman stefanooldeman

  • bol.com
  • Netherlands, Utrecht
View GitHub Profile
@ibeex
ibeex / foo.log
Created August 4, 2012 13:46
Flask logging example
A warning occurred (42 apples)
An error occurred
class Model_Blog_Entity extends Model_Entity {
protected $_id;
protected $_title;
protected $_post;
protected $_author;
public function getId() {
return $this->_id;
 }
public function setId() {
$this->_id = $id;
@datagrok
datagrok / gist:2199506
Last active August 22, 2024 14:21
Virtualenv's `bin/activate` is Doing It Wrong
@kevsmith
kevsmith / example.erl
Created September 12, 2011 14:14
Example of gen_server template output
%% -*- erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 et
%% @author Kevin Smith <kevin@opscode.com>
%% @copyright 2011 Opscode, Inc.
-module(example).
-behaviour(gen_server).
-export([start_link/0]).
@mbbx6spp
mbbx6spp / capistrano_git_tasks.rb
Created July 24, 2009 19:16
Git (submodule) Capistrano tasks
# 2009 Copyright Susan Potter <me at susanpotter dot net>
# You can read her software development rants at: http://geek.susanpotter.net
# Released under CreativeCommons-attribution-noncommercial-sharealike license:
# http://creativecommons.org/licenses/by-nc-sa/1.0/
namespace :git do
namespace :submodule do
desc "Initializes submodules"
task :init, :roles => :app do
invoke_command "cd #{current_path} && git submodule init", :via => run_method
end