Skip to content

Instantly share code, notes, and snippets.

@kirel
kirel / README.md
Last active August 29, 2015 14:09 — forked from mbostock/.block

Experimenting with Branding/Logo choices for Data Science for Social Good in Germany.

times prices status: base power: base status: peaker power: peaker power: wind load power: Ireland
2010-04-27 00:00:00 30.0 1.0 2197.0 -0.0 0.0 303 2500
2010-04-27 00:15:00 30.0 1.0 2178.0 1.0 0.0 311 2489
2010-04-27 00:30:00 30.0 1.0 2092.0 1.0 0.0 340 2432
2010-04-27 00:45:00 30.0 1.0 2012.0 1.0 0.0 360 2372
2010-04-27 01:00:00 30.0 1.0 1975.0 1.0 0.0 345 2320
2010-04-27 01:15:00 30.0 1.0 1918.0 1.0 0.0 348 2266
2010-04-27 01:30:00 30.0 1.0 1824.0 1.0 0.0 411 2235
2010-04-27 01:45:00 30.0 1.0 1804.0 1.0 0.0 405 2209
2010-04-27 02:00:00 30.0 1.0 1759.0 1.0 0.0 411 2170
# Copy and paste this to the rails console to test your email settings
class MyMailer < ActionMailer::Base
def test_email
@recipients = "daniel.kirsch@zweitag.de"
@from = "no-reply@monitor.booxoffice.de"
@subject = "test from the Rails Console"
@body = "This is a test email"
end
end
%spinner
@extend [class^="icon-"]
@extend .icon-refresh
@extend .icon-spin
+transition(opacity 1s ease, width 0.7s ease, height 0.3s ease)
position: relative
top: -1px
display: inline-block
overflow: hidden
text-decoration: inherit
@kirel
kirel / 0-readme.md
Last active December 18, 2015 05:48 — forked from burke/0-readme.md
modified to use falcon postfix

ruby-1.9.3-p327 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

@kirel
kirel / capistrano_database_yml.rb
Created May 2, 2012 07:29 — forked from weppos/capistrano_database_yml.rb
Provides a couple of tasks for creating the database.yml configuration file dynamically when deploy:setup is run.
#
# = Capistrano database.yml task
#
# Provides a couple of tasks for creating the database.yml
# configuration file dynamically when deploy:setup is run.
#
# Category:: Capistrano
# Package:: Database
# Author:: Simone Carletti <weppos@weppos.net>
# Copyright:: 2007-2010 The Authors
@kirel
kirel / cancan.rb
Created March 22, 2012 10:06 — forked from clyfe/cancan.rb
Monkey patch for CanCan 1.6.7, replaces MetaWhere with Squeel and more
# Setup
# =====
#
# Put this gist in Rails.root/config/initializers/cancan.rb
# Add Squeel to Gemfile, see https://github.com/ernie/squeel
#
# gem "squeel", "~> 0.9.3"
#
# Load Squeel hash and symbol extensions in squeel config initializer
#
@kirel
kirel / simplenote.js
Created January 14, 2012 21:15 — forked from nbqx/simplenote.js
SimpleNote API via node.js
var request = require('request'),
querystring = require('querystring');
var Note = function(key){
this.key = key;
}
Note.prototype = new process.EventEmitter();
var SimpleNote = function(email, passwd){
this.email = email;
@kirel
kirel / universal-module.js
Created October 6, 2011 21:37 — forked from ryanflorence/universal-module.js
Universal JavaScript Module, supports AMD (RequireJS), Node.js, and the browser.
(function (name, definition){
if (typeof define === 'function'){ // AMD
define(definition);
} else if (typeof module !== 'undefined' && module.exports) { // Node.js
module.exports = definition();
} else { // Browser
var theModule = definition(), global = this, old = global[name];
theModule.noConflict = function () {
global[name] = old;
return theModule;
(ns your.programs.namespace
;; ...
(:use [swank/swank :as swank])
(defn main [& args]
;; ...
(swank/start-repl))