Problem:
The following commands fail on OSX:
gem install nokogiri
gem install nokogiri -- --use-system-libraries
gem install nokogiri -- --use-system-libraries --with-xslt-dir=/usr/local/opt/libxslt --with-xml2-dir=/usr/local/opt/libxml2
Version:
| (ns project-name.handler | |
| (:require [compojure.handler :as handler] | |
| [compojure.route :as route] | |
| [ring.middleware.params :as params] | |
| [sandbar.stateful-session :as session] | |
| [project-name.controllers.private :as private])) | |
| (defn- stateful-route | |
| "Calls the routeFn adding stateful session." | |
| [routeFn] |
| <label>Título: </label> | |
| <input type="text" name="titulo" ng-model="question.title"> | |
| <label>Respuestas: </label> | |
| <ul ng-repeat="answer in answers" ng-model="answers"> | |
| <li>{{answer.title}}</li> | |
| </ul> | |
| <input type="text" name="answer" ng-model="answer"> |
| Mongo mongo = new Mongo(hosts); | |
| String mapFn = "function(){ var value = {"+ | |
| "title: this.title,"+ | |
| "author: this.author,"+ | |
| "ISBN: this.ISBN,"+ | |
| "description: this.description"+ | |
| "};"+ | |
| "emit({rating: this.rating, author: this.author.id}, value);"+ | |
| "}"; |
| (ns linkedin-clojure.handler | |
| (:use compojure.core) | |
| (:require [compojure.handler :as handler] | |
| [compojure.route :as route] | |
| [hiccup.page :as hpage] | |
| [hiccup.form :as form] | |
| [cheshire.core :as parse] | |
| [ring.util.response :as response] | |
| [clj-http.client :as client])) |
| # Taken from http://blog.parkermoore.de/2013/02/06/install-rbenv-on-ubuntu-12-dot-04/ | |
| # Author: Parker J. Moore | |
| # I couldn't find the Gist... | |
| sudo apt-get install zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev git-core make make-doc | |
| cd ~ | |
| git clone git://github.com/sstephenson/rbenv.git .rbenv | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
| echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
| exec $SHELL # Restart the shell |
| site :opscode | |
| cookbook 'nginx' | |
| cookbook 'chef-leiningen' |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure(2) do |config| | |
| # The most common configuration options are documented and commented below. | |
| # For a complete reference, please see the online documentation at |
| # Mac OS X hidden files | |
| .DS_Store | |
| # Vim swap files | |
| .*.sw? | |
| # Pow and Powder config | |
| /.pow* | |
| # RVM and rbenv |
| [Socket]1<-1[Server] | |
| [Server]1-1>[Database] | |
| [Server]++1-1>[Match] | |
| [Match]++1-1>[Strategy] | |
| [ABCClient]*-1>[Socket] | |
| [ABCClient]^-[Responder] | |
| [ABCClient]^-[Requester] | |
| [Requester]uses -.- *>[Request] |
Problem:
The following commands fail on OSX:
gem install nokogiri
gem install nokogiri -- --use-system-libraries
gem install nokogiri -- --use-system-libraries --with-xslt-dir=/usr/local/opt/libxslt --with-xml2-dir=/usr/local/opt/libxml2
Version: