(Full description and list of commands at - https://npmjs.org/doc/index.html)
Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
;; The macros | |
;; most macros here alias names from select.cljs | |
;; they will get used in regular calls | |
(ns lib.select | |
(:require | |
[clojure.string :as str])) | |
;; selector syntax | |
(defn intersection [preds] |
(require 'erc) | |
(require 'netrc) | |
(setq erc-user-full-name "Sean Escriva" | |
erc-part-reason-various-alist '(("^$" "Leaving")) | |
erc-quit-reason-various-alist '(("^$" "Leaving")) | |
erc-quit-reason 'erc-part-reason-various | |
erc-part-reason 'erc-quit-reason-various) | |
(add-hook 'erc-mode-hook (lambda () (auto-fill-mode 0))) |
set -o verbose | |
set -o errexit | |
echo '* Create and initialize a repository.' | |
git init gitflow-tutorial | |
cd gitflow-tutorial/ | |
git flow init -d | |
echo '* Develop a Feature' |
(ns test.mandelbrot | |
"Simple Mandelbrot generator. | |
Trying to optimize. Pulling apart math operations." | |
(:gen-class) | |
(:use [test.complex :only (abs2 times plus)]) | |
(:import [test.complex Complex] | |
[java.awt Graphics Color Dimension] | |
[java.awt.event KeyListener KeyEvent] | |
[java.awt.image BufferedImage] | |
[javax.swing JPanel JFrame SwingUtilities])) |
(use 'visaje.core) | |
(use 'vmfest.manager) | |
(def my-server (server "http://localhost:18083")) | |
(install-os my-server | |
{:name "debian-test" | |
:disk-location "/tmp/debian-test.vdi" | |
:disk-size (* 8 1024) | |
:os-iso-location | |
"/Volumes/DATA/ISOS/debian-6.0.2.1-amd64-netinst.iso" |
{:provider "vmfest" | |
:environment{ | |
:phases {:bootstrap | |
(fn [session] | |
(let [p (ns-resolve | |
'pallet.action.package 'package-manager)] | |
(-> | |
session | |
(p :configure :proxy "http://10.0.2.2:3128"))))} | |
:proxy "http://10.0.2.2:3128"}} |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
Since this is on Hacker News and reddit...
_t
in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".char *
s.type * name
, however, is entirely intentional.(defmacro test-> | |
"Takes an expression and a set of test/form pairs. Threads expr (via ->) | |
through each form for which the corresponding test expression (not threaded) is true." | |
[expr | |
& clauses] | |
(assert (even? (count clauses))) | |
(let [g (gensym) | |
pstep (fn [[test step]] `(if ~test (-> ~g ~step) ~g))] | |
`(let [~g ~expr | |
~@(interleave (repeat g) (map pstep (partition 2 clauses)))] |
Steps to install and run PostgreSQL 9.2 using Homebrew (Mac OS X) | |
(if you aren't using version 9.1.5, change line 6 with the correct version) | |
1. pg_ctl -D /usr/local/var/postgres stop -s -m fast | |
2. mv /usr/local/var/postgres /usr/local/var/postgres91 | |
3. curl https://raw.github.com/fragility/homebrew/737af01178590950749cf5e841f2d086c57c5a80/Library/Formula/postgresql.rb > /usr/local/Library/Formula/postgresql.rb | |
4. brew upgrade postgresql | |
5. initdb /usr/local/var/postgres -E utf8 | |
6. pg_upgrade -b /usr/local/Cellar/postgresql/9.1.5/bin -B /usr/local/Cellar/postgresql/9.2.0/bin -d /usr/local/var/postgres91 -D /usr/local/var/postgres | |
7. pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start |