This gist is just a placeholder for your solution of the Clojure Dojo from the Amsterdam Clojurians meetup.
To share your solution:
- fork this gist
- add the files containing your code to the forked gist
Thanks!
| class CreatePost | |
| # An interactor to create a post. | |
| # Initialize with a request object that implements the request interface for this interactor. | |
| def initialize(request) | |
| RequestInterface.required_on! request | |
| @user = {:title => request.title} | |
| end | |
| def result |
This gist is just a placeholder for your solution of the Clojure Dojo from the Amsterdam Clojurians meetup.
To share your solution:
Thanks!
| echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list | |
| sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list' | |
| wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
| wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - | |
| sudo apt-get update | |
| sudo apt-get install postgresql-9.3 postgresql-server-dev-9.3 postgresql-contrib-9.3 -y | |
| sudo apt-get install postgresql-9.3-postgis pgadmin3 postgresql-contrib -y | |
| sudo su - postgres -c "psql template1 -p 5433 -c 'CREATE EXTENSION IF NOT EXISTS hstore;'" |
| MASTER=`git log --pretty=format:'%H' master | sort` | |
| DEV=`git log --pretty=format:'%H' development | sort` | |
| for i in `diff <(echo "${MASTER}") <(echo "${DEV}") | grep '^>' | sed 's/^> //'`; | |
| do | |
| git --no-pager log -1 --oneline $i; | |
| done |
| require 'formula' | |
| class FlashPlayer < Formula | |
| url 'http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_sa_debug.app.zip' | |
| md5 '2770acd6997bfd5016dd51acfb20c025' | |
| homepage 'http://adobe.com' | |
| version '11.1' | |
| def install | |
| name = 'Flash Player Debugger.app' |
| # Additional translations at http://github.com/plataformatec/devise/wiki/I18n | |
| hu: | |
| errors: | |
| messages: | |
| expired: "lejárt, igényelj egy újat" | |
| not_found: "nem található" | |
| already_confirmed: "már meg van erősítve" | |
| not_locked: "nincs zárolva" | |
| not_saved: |
| helper_method :grand_parent, :parent, :resource | |
| def grand_parent | |
| end | |
| def parent | |
| @parent = params .... | |
| end |
| // Mobile Safari in standalone mode | |
| if(("standalone" in window.navigator) && window.navigator.standalone){ | |
| window.addEventListener("load",function() { | |
| var links = document.getElementsByTagName('a'), | |
| i = link.length - 1; | |
| for ( ;i; i--) | |
| { |