I hereby claim:
- I am lwe on github.
- I am lwe (https://keybase.io/lwe) on keybase.
- I have a public key ASBR3o4RHUCJWVKn-5UvI43Qry8SjTb6YzhWGhdK__YOYwo
To claim this, I am signing this object:
| # Provides the ability to unscope associations, this solves problems described in | |
| # http://stackoverflow.com/questions/1540645/how-to-disable-default-scope-for-a-belongs-to/11012633#11012633 | |
| # | |
| # Examples | |
| # | |
| # class Document < ActiveRecord::Base | |
| # default_scope where(deleted: false) | |
| # end | |
| # | |
| # class Comment < ActiveRecord::Base |
| var Hapi = require('hapi'); | |
| var stream = require('stream'); | |
| // Create a server | |
| var server = Hapi.createServer('localhost', 8000); | |
| // Add a route | |
| server.route({ | |
| method: 'GET', | |
| path: '/hello', |
| #!/usr/bin/env ruby -w | |
| # brew-services(1) - Easily start and stop formulas via launchctl | |
| # =============================================================== | |
| # | |
| # ## SYNOPSIS | |
| # | |
| # [<sudo>] `brew services` `list`<br> | |
| # [<sudo>] `brew services` `restart` <formula><br> | |
| # [<sudo>] `brew services` `start` <formula> [<plist>]<br> |
I hereby claim:
To claim this, I am signing this object:
in action: http://www.vimeo.com/6639381
javascript:
var pp = "/images/test/images_";
var images_p1 = [ pp + '1.jpg', pp + '2.jpg', pp + '3.jpg', pp + '4.jpg', pp + '5.jpg' ];
var images_p2 = [ pp + '6.jpg', pp + '7.jpg', pp + '8.jpg', pp + '9.jpg', pp + '10.jpg' ];
$('.preview').slideview(function(e) { return e.id == "p1" ? images_p1 : images_p2; }, { size: 75 });
| # make faker a bit more swiss-friendly :) | |
| module Faker | |
| class Company | |
| # Add swiss suffixes like AG, GmbH etc. | |
| def self.suffix | |
| %w(AG GmbH und\ Söhne und\ Partner &\ Co. Gruppe LLC Inc.).rand | |
| end | |
| end | |
| #!/bin/sh | |
| # DISCLAIMER: | |
| # | |
| # brew update now has a --rebase switch, thus this script is certainly obsolet. | |
| # | |
| # USAGE: brew-rebase [--verbose|-v] [remote] [branch] | |
| # | |
| # Fetches upstream and rebases HOMEBREW_REPOSITORY ($_git_repo) |
| # Small utility which uses the homepage and nokogori to get a description from the formula's homepage. | |
| # | |
| # As written in the homebrew wiki: | |
| # > Homebrew doesn’t have a description field because the homepage is always up to date, | |
| # > and Homebrew is not. Thus it’s less maintenance for us. To satisfy the description | |
| # > we’re going to invent a new packaging microformat and persuade everyone to publish | |
| # > it on their homepage. | |
| # | |
| # Too bad no packaging microformat has yet been invented, but brew-more just first looks for a | |
| # `<meta name="description">` tag, then for an `a#project_summary_link` tag (which is used in |
| source 'https://rubygems.org' | |
| # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
| gem 'rails', '4.0.0.beta1' | |
| gem 'sqlite3' | |
| # THIS BREAKS IT, though when it's at the end of the file it works... | |
| gem 'haml', '~> 3.1' |
| // A(x1|y1) und B(x2|y2) = Touch start | |
| // C(x3|y3) und D(x4|y3) = Current touch point | |
| // Vektor AB | |
| var AB_x = x2 - x1; | |
| var AB_y = y2 - y1; | |
| // Vektor CD | |
| var CD_x = x4 - x3; | |
| var CD_y = y4 - y3; |