Skip to content

Instantly share code, notes, and snippets.

View darkleaf's full-sized avatar

Mikhail Kuzmin darkleaf

View GitHub Profile
@darkleaf
darkleaf / merge-with-key.clj
Created January 9, 2021 07:13 — forked from mlimotte/merge-with-key.clj
Clojure merge-with-key
(ns mlimotte.util)
; A variation on clojure.core/merge-with
(defn merge-with-key
"Returns a map that consists of the rest of the maps conj-ed onto
the first. If a key occurs in more than one map, the mapping(s)
from the latter (left-to-right) will be combined with the mapping in
the result by calling (f key val-in-result val-in-latter)."
[f & maps]
@darkleaf
darkleaf / README.md
Last active August 29, 2015 13:58 — forked from clayzermk1/README.md

A representation of the current time of year using the Sun, Earth, and Moon.

The position of the Earth in orbit around the Sun indicates the hour of year. The Earth itself is a pie chart indicating the second of day. The Moon's position in orbit around the Earth indicates the hour of month. The time is updated every second.

CodePen demo

MIT License

@darkleaf
darkleaf / playbook
Created December 20, 2013 06:50 — forked from mokevnin/playbook
---
-
hosts: default
vars:
postgresql:
version: 9.1
password: my_secret_password
tasks:
# gem install capybara --pre
# gem install rspec
# rspec capybara_test.rb
require 'rubygems'
require 'capybara'
require 'capybara/rspec'
Capybara.configure do |c|
c.current_driver = :selenium