Skip to content

Instantly share code, notes, and snippets.

View hkjels's full-sized avatar

Henrik Kjerringvåg hkjels

View GitHub Profile
@hkjels
hkjels / badge.css
Last active September 28, 2015 11:43
Inbox count
html,
body {
height: 100%;
margin: 0;
}
body {
box-sizing: border-box;
font-family: Helvetica;
@hkjels
hkjels / *Messages*
Created September 24, 2015 19:06
Unable to use the osx-contribution layer with Norwegian keyboard-layout
Loading /Users/Henrik/.emacs.d/core/core-load-paths.el (source)...done
Loading /Users/Henrik/.spacemacs...done
(Spacemacs) Setting font "Hack"...
(Spacemacs) Banner: /Users/Henrik/.emacs.d/core/banners/img/spacemacs.png
Mark set [2 times]
Loading /Users/Henrik/.emacs.d/.cache/spacemacs-buffer.el (source)...done
(Spacemacs) Executing user init...
(Spacemacs) Calling dotfile layers...
(Spacemacs) -> Discovered configuration layer: themes-megapack
(Spacemacs) -> Discovered configuration layer: syntax-checking
@hkjels
hkjels / counter.js
Last active September 3, 2015 07:47
(function (win, _, d3, format){
var canvas = d3.select("body").append("svg:svg")
.attr("viewbox", format("0 0 %s %s", 1920, 1080))
.attr("width", format("%spx", win.innerWidth))
.attr("height", format("%spx", win.innerHeight));
function counter(num, x, y, r){
@hkjels
hkjels / index.html
Last active August 29, 2015 14:27
Clustered Force Layout
<!DOCTYPE html>
<meta charset="utf-8">
<style>
circle {
stroke: #fff;
}
</style>
<body>
@hkjels
hkjels / accounts.clj
Last active August 29, 2015 14:12 — forked from pelle/accounts.clj
(use '[datomic.api :only [q db] :as d])
(def uri "datomic:mem://accounts")
;; create database
(d/create-database uri)
;; connect to database
(def conn (d/connect uri))
@hkjels
hkjels / README.md
Created March 6, 2014 07:08 — forked from mbostock/.block

A recreation in SVG of the pleasing gradient in the background of the Stripe: Checkout page.

@hkjels
hkjels / pipe-logger.rb
Last active August 29, 2015 13:56
pipe-logger homebrew-formula
require "formula"
class PipeLogger < Formula
homepage ""
url "https://github.com/hkjels/pipe-logger/archive/master.tar.gz"
sha1 "6ec4754bc4dd0b27f1ec53a6ce5ec15860dc9d07"
def install
system "make install"
end
@hkjels
hkjels / mono.rb
Last active December 28, 2015 09:49 — forked from shtirlic/mono.rb
# http://www.mono-project.com/Compiling_Mono_on_OSX
require 'formula'
class Mono < Formula
url 'http://download.mono-project.com/sources/mono/mono-3.2.0.tar.bz2'
sha1 '23268df312906ff7f58f15b11bb030e323cde822'
homepage 'http://www.mono-project.com/'
@hkjels
hkjels / cd.vim
Created May 28, 2013 22:26
Override native `cd`-command, so that the `z` index is updated with whatever directories you `cd` into.
fun! s:CD(directory)
exec '!cd '.directory
exec 'cd '.directory
endfun
cabbrev cd <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'CD' : 'cd')<CR>
@hkjels
hkjels / config.log
Created March 5, 2013 13:10
couch config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Apache CouchDB configure 1.2.1, which was
generated by GNU Autoconf 2.67. Invocation command line was
$ ./configure --prefix=/usr/local/Cellar/couchdb/1.2.1 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc --with-erlang=/usr/local/lib/erlang/usr/include --with-js-include=/usr/local/include/js --with-js-lib=/usr/local/lib
## --------- ##
## Platform. ##