Skip to content

Instantly share code, notes, and snippets.

View marcinb's full-sized avatar

Marcin Balinski marcinb

View GitHub Profile

Keybase proof

I hereby claim:

  • I am marcinb on github.
  • I am marcinb (https://keybase.io/marcinb) on keybase.
  • I have a public key whose fingerprint is 6A63 C878 BCF6 1EF5 823D AC44 9FB7 A1CC 3864 ED3D

To claim this, I am signing this object:

# To run this code:
#
# gem install rspec
# rspec code.rb
#
require 'rspec'
User = Struct.new(:github_handle, :followers)
class Github # External dependency
@marcinb
marcinb / bbc_recipes.coffee
Created October 7, 2011 11:23
Chicken soup recipes
page = require('webpage').create()
injectjQuery = ->
# phantom allows to dynamically inject any javascript
# into page context.
# Make sure you add jquery to your script dir.
page.injectJs './jquery.js'
# ALWAYS do that when injecting jQuery into other page
page.evaluate ->
@marcinb
marcinb / design_questions
Created October 31, 2011 08:45
Questions I ask when reviewing a design by Jason Fried
What does it say?
What does it mean?
Is what it says and what it means the same thing?
Do we want that?
Why do we need to say that here?
If you stopped reading here, what’s the message?
What’s the take away after 8 seconds?
How does this make you feel?
What’s down below?
How else can we say this?
def self.all
[
{ :code => '', :desc => 'All wings', :unit => '' },
{ :code => 'de', :desc => 'Germany', :unit => 'EUR' },
{ :code => 'gr', :desc => 'Greece', :unit => 'EUR' },
{ :code => 'it', :desc => 'Italy', :unit => 'EUR' },
{ :code => 'pl', :desc => 'Poland', :unit => 'PLN' },
{ :code => 'ro', :desc => 'Romania', :unit => 'EUR' },
{ :code => 'ru', :desc => 'Russia', :unit => 'RUB' },
{ :code => 'tr', :desc => 'Turkey', :unit => 'TRY' },
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Chicks</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->