Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Przemek Owczarek nazgob

🎯
Focusing
Block or report user

Report or block nazgob

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nazgob
nazgob / distributed
Last active Aug 29, 2015
List of interesting materials related to distributes systems
View distributed
This is a curated list of materials related to 'distributed computing' theory and practice.
Some of them are directly related to what Base does and some are just inspiration and demo of what is possible.
Articles:
Microservices by Martin Fowler http://martinfowler.com/articles/microservices.html
Microservices and the Failure of Encapsulation https://michaelfeathers.silvrback.com/microservices-and-the-failure-of-encapsulaton
Distributed Computing https://en.wikipedia.org/wiki/Distributed_computing
Fallacies of Distributed Computing Explained http://www.rgoarchitects.com/Files/fallacies.pdf
SOA anti-pattern Transactional Integration http://arnon.me/2010/09/soa-antipattern-transactional-integration/
Nanoservices http://arnon.me/2014/03/services-microservices-nanoservices/
@nazgob
nazgob / wat
Last active Aug 29, 2015
random ruby learning resources
View wat
https://rubymonk.com/
http://rubykoans.com/
https://www.codeschool.com/
http://www.codewars.com/
http://ruby.learncodethehardway.org/book/
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
The-Well-Grounded-Rubyist-David-Black 2014 => amazon
Eloquent Ruby => amazon
View gist:7591862
/home/vagrant/gmock-1.6.0/include/gmock/gmock-generated-function-mockers.h: In member function ‘typename testing::internal::Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>::Result testing::MockFunction<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Call(typename testing::internal::Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>::Argument1, typename testing::internal::Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>::Argument2, typename testing::internal::Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>::Argument3, typename testing::internal::Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>::Argument4, typename testing::internal::Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>::Argument5, typename testing::internal::Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>::Argument6, typename testing::internal::Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>::Argument7, typename testing::internal::Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>::Argument8, typename testing::intern
View play_js.html
<!DOCTYPE html>
</html>
<head>
<title>Jasmine</title>
</head>
<body>
<script type="text/javascript" src="http://searls.github.com/jasmine-all/jasmine-all-min.js"></script>
<script type="text/javascript">
window.hugPanda = function(){ return "yay!"; };
@nazgob
nazgob / rspec.rb
Created Sep 30, 2012
Sample rspec implementation from DestroyAllSoftware
View rspec.rb
require 'test/unit'
def describe(description, &block)
ExampleGroup.new(block).evaluate!
end
class ExampleGroup
def initialize(block)
@block = block
end
View gist:2404475
Creating first Tropo app => https://www.tropo.com/docs/scripting/creating_first_application.htm
Tropo provisioning gem => https://github.com/tropo/tropo-provisioning
Pastebin with => http://pastebin.com/raw.php?i=dLCjebGy
Tropo docs related to session => https://www.tropo.com/docs/rest/starting_session_web_api.htm
Tropo sample docs => http://blog.tropo.com/2012/02/24/ruby-on-rails-conference-caller/
Gist with more samples => https://gist.github.com/c3d0f759ab22f9904f61
@nazgob
nazgob / gist:2367583
Created Apr 12, 2012
vagrant cheatsheet
View gist:2367583
# setup vagrant
gem install vagrant
vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
mkdir my_vagrant_test
cd my_vagrant_test
vagrant init lucid32
vim Vagrantfile
vagrant up
vagrant ssh
@nazgob
nazgob / shoulda_matchers.rb
Created Mar 15, 2012
should test your models like a pro
View shoulda_matchers.rb
should validate_presence_of(:name)
should ensure_length_of(:name).is_at_most(15)
should ensure_length_of(:name).is_at_least(5)
should ensure_length_of(:name).is_at_least(5).is_at_most(15)
should have_many(:tweets)
should validate_uniqueness_of(:name)
should validate_numericality_of(:age)
should_not allow_value("wutlol").for(:email)
should allow_value("a@b.com").for(:email)
should ensure_inclusion_of(:age).in_range(1..100)
@nazgob
nazgob / ctags.setup
Created Jan 6, 2012
ctags setup on mac
View ctags.setup
# you have ctags but it does not work...
$ ctags -R --exclude=.git --exclude=log *
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
#you need to get new ctags, i recommend homebrew but anything will work
$ brew install ctags
#alias ctags if you used homebrew
$ alias ctags="`brew --prefix`/bin/ctags"
You can’t perform that action at this time.