This file contains hidden or 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
exec { 'update_packages': | |
command => 'apt-get update', | |
path => '/usr/bin', | |
} | |
# Install Leiningen to run tests and build project | |
exec { 'get_leiningen': | |
command => '/usr/bin/wget https://raw.github.com/technomancy/leiningen/stable/bin/lein -O /usr/bin/lein && /bin/chmod a+x /usr/bin/lein', | |
unless => '/usr/bin/which lein &>/dev/null', | |
} |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# We're using an Ubuntu box from Puppet Labs with Puppet already installed | |
config.vm.box = "ubuntu-puppetlabs" |
This file contains hidden or 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 hatchery-service.models.media | |
(:use korma.core) | |
(:require [hatchery-service.entities :as entity])) | |
(defn find-all [] | |
(select entity/media)) | |
(defn find-by [field value] | |
(first | |
(select entity/media |
This file contains hidden or 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
{ | |
"name": "larva", | |
"version": "0.0.0", | |
"description": "Small description for larva goes here", | |
"private": true, | |
"directories": { | |
"doc": "doc", | |
"test": "tests" | |
}, | |
"scripts": { |
This file contains hidden or 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
(function(){ | |
return { | |
bigInt: require('json-bigint'); | |
} | |
})(); |
This file contains hidden or 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
class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello World"); | |
} | |
} |
This file contains hidden or 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 hello-world.handler) | |
(defn main [] (println "Hello World") |
This file contains hidden or 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 '../vendor/autoload.php'; | |
require '../src/models/dev.php'; | |
$container = new \Slim\Container; | |
$container['db'] = function ($container) { | |
$capsule = new \Illuminate\Database\Capsule\Manager; | |
$capsule->addConnection($container['settings']['db']); | |
$capsule->setAsGlobal(); |
This file contains hidden or 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
function gau | |
git status --short --untracked-files=no | grep "M " | cut -c4- | xargs git add | |
end |
This file contains hidden or 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
(spec/def ::auth-user int?) | |
(spec/def ::id string?) | |
(spec/def ::rating string?) | |
(spec/def ::rate-podcast-spec (spec/keys :req-un [::auth-user ::id ::rating])) | |
(defn- rate-podcast | |
[params] | |
(if (spec/valid? ::rate-podcast-spec params) | |
(let [user (:auth-user params) | |
podcast (Integer/parseInt (:id params)) |
OlderNewer