A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
#!/bin/bash | |
for f in $(egrep -o -R "defn?-? [^ ]*" * --include '*.clj' | cut -d \ -f 2 | sort | uniq); do | |
echo $f $(grep -R --include '*.clj' -- "$f" * | wc -l); | |
done | grep " 1$" |
# coding=UTF-8 | |
from __future__ import division | |
import re | |
# This is a naive text summarization algorithm | |
# Created by Shlomi Babluki | |
# April, 2013 | |
class SummaryTool(object): |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
We're doing a small year-end news nerd countdown on Source. Lists are too much, so please send us ONE THING—an app, a tool, an article, a tweet, an image, a map, or something else entirely—that you loved this year. Might be something that made your job easier or made you smarter, or it might have more obscure relevance. All we ask is that you can link to it.
Don't think too hard about it, just take 30 seconds and send one in now to source@mozillafoundation.org. We'll be posting an assembly of favorite things and all we can say about it right now is that there will be GIFs.
Wooo.
module Squarer where | |
import JavaScript as JS | |
foreign import jsevent "input" | |
(JS.fromInt 0) | |
inputs: Signal JS.JSNumber | |
foreign export jsevent "reply" | |
outputs: Signal JS.JSNumber |
;; Minimal example of how to play a melody using Clojure/Overtone/Leipzig, based on code | |
;; at https://github.com/ctford/leipzig | |
;; by Lee Spector, lspector@hampshire.edu, 20140204 | |
;; Add the following to your dependencies in project.cl, and do "lein deps" if your environment requires it: | |
;; [leipzig "0.7.0"] | |
(ns notes.core | |
(:use [leipzig melody scale live] |
// --------------------------------------------------------------- | |
//// Loading data from CSV | |
// --------------------------------------------------------------- | |
CREATE CONSTRAINT ON (p:Person) ASSERT p.id IS UNIQUE; | |
CREATE CONSTRAINT ON (p:Person) ASSERT p.name IS UNIQUE; | |
LOAD CSV WITH HEADERS FROM "file:///Users/adri/Downloads/neo4j-community-2.1.0-M01/employees.csv" AS l | |
CREATE (p:Person { id: toInt(l.employee_id), name: l.employee_firstname + " " + l.employee_lastname}); | |
CREATE CONSTRAINT ON (t:Tech) ASSERT t.id IS UNIQUE; |
(ns om-data.core | |
(:require [om.core :as om :include-macros true] | |
[om.dom :as dom :include-macros true] | |
[datascript :as d])) | |
(enable-console-print!) | |
(def schema {}) | |
(def conn (d/create-conn schema)) | |
By default when Nginx starts receiving a response from a FastCGI backend (such as PHP-FPM) it will buffer the response in memory before delivering it to the client. Any response larger than the set buffer size is saved to a temporary file on disk.
This process is outlined at the Nginx ngx_http_fastcgi_module page manual page.