Skip to content

Instantly share code, notes, and snippets.

View gist:23935b472aa5720abf5b
# To run this code:
#
# gem install rspec
# rspec code.rb
#
require 'rspec'
User = Struct.new(:github_handle, :followers)
class Github # External dependency
View keybase.md

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:

View gist:3266744
<!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 -->
View gist:1378679
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' },
@marcinb
marcinb / design_questions
Created Oct 31, 2011
Questions I ask when reviewing a design by Jason Fried
View design_questions
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?
@marcinb
marcinb / bbc_recipes.coffee
Created Oct 7, 2011
Chicken soup recipes
View bbc_recipes.coffee
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 ->