- Twitter: @apohorecki
- Blog: http://adam.pohorecki.pl
- Company: GunpowderLabs http://gunpowderlabs.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "rubygems" | |
require "zookeeper" | |
def log(msg) | |
puts "[#{Process.pid}] #{msg}" | |
end | |
def debug(obj) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html xmlns:ng="http://angularjs.org"> | |
<head> | |
<title>Inline Edit</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js" type="text/javascript"></script> | |
<script src="http://code.angularjs.org/0.9.18/angular-0.9.18.min.js" type="text/javascript" ng:autobind></script> | |
<style type="text/css"> | |
.dirty { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html xmlns:ng="http://angularjs.org"> | |
<script src="http://code.angularjs.org/angular-0.9.19.min.js" ng:autobind></script> | |
<script type="text/javascript"> | |
// this is the service generated by partials.rb | |
angular.service('partials', function() { | |
return { | |
'/foo': 'Foo template', | |
'/bar': 'Bar template' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
# no leak in version 0.3.3 | |
# gem 'typhoeus', '0.3.3' | |
# memory leaking very fast (1Mb/s) in version 0.4.2 | |
gem 'typhoeus', '0.4.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tematy: | |
* sckrk workshops (4) | |
- warsztaty z security | |
* open data (4) | |
- jak uwalniać dane z miasta | |
* why we fail in tdd and what we do about it (7) | |
* ddd-krk (7) | |
- nowy meetup dla ludzi z DDD | |
* formuła spotkań (3) | |
- co poza reading club i lean coffee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'minitest/autorun' | |
require 'set' # bummer, I forgot to require set in Bogus | |
require 'bogus' | |
class Foo | |
def bar(x, y) | |
end | |
end | |
module Bogus |
- Twitter: @apohorecki
- Blog: http://adam.pohorecki.pl
- Company: GunpowderLabs http://gunpowderlabs.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
class Foo | |
def initialize(bar) | |
@bar = bar | |
end | |
def foo | |
@bar.bar | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns dojo.core | |
(:require [clojure.test.check :as tc] | |
[clojure.test.check.generators :as gen] | |
[clojure.test.check.properties :as prop] | |
[clojure.test :refer :all])) | |
(def balls identity) | |
(defn add-ball [rack ball] (conj rack ball)) |
OlderNewer