Skip to content

Instantly share code, notes, and snippets.

View Nicd's full-sized avatar

Mikko Ahlroth Nicd

View GitHub Profile
@Nicd
Nicd / gist:27c8abd596fec54a4a95
Last active August 29, 2015 14:02
Rebar error when running any make command on an OS X 10.6.8 machine with erlang 17.0 and elixir master (396b1e6)
diesel:elixir nicd$ make clean
cd lib/elixir && ../../rebar clean
Uncaught error in rebar_core: {'EXIT',
{undef,
[{crypto,start,[],[]},
{rebar,run_aux,2,
[{file,"src/rebar.erl"},{line,163}]},
{rebar,main,1,
[{file,"src/rebar.erl"},{line,58}]},
{escript,run,2,
@Nicd
Nicd / .tmux.conf
Last active September 6, 2015 11:49
My .tmux.conf
# UTF-8 on for all windows
set-option -g utf8 on
set-option -g history-limit 10000
set-option -g prefix C-a
# Resize keys
bind u resize-pane -U
bind j resize-pane -D
bind h resize-pane -L
bind k resize-pane -R
@Nicd
Nicd / moment.js
Created April 14, 2014 19:18
This is a version of the moment.js datetime library version 2.6.0, modified for importing into a QML project. See https://plus.google.com/+MikkoAhlroth/posts/Gr5PaZxDWLs for the usage instructions.
.pragma library
//! moment.js
//! version : 2.6.0
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var moment = null;
var initialized = false;
@Nicd
Nicd / gist:9503114
Created March 12, 2014 08:42
Elixir looks nice
@doc """
Pop the next mode from the stack and return new Status record with the
mode or nil if there were no modes to pop.
"""
def pop(status) do
[head | tail] = status.mode_stack
status = status.mode_stack tail
case head do
[] -> nil
@Nicd
Nicd / gist:7238099
Last active December 27, 2015 00:29
SailfishOS upgrade error
The upgrade goes fine and "show details" shows the following (I truncated some rows):
Downloading packages...
Downloading archive hash for ...
Downloading archive for component ...
Installing component SailfishOS emulator
/Users/nicd/SailfishOS/emulator/sailfishos.vdi
/Users/nicd/SailfishOS/emulator
@Nicd
Nicd / gist:6158820
Created August 5, 2013 19:35
Around 800 MB to compile with 'mix compile' in an otherwise empty project, on OS X 10.6.8 with elixir 0.10.1-dev.
defmodule ExCoder do
def encode(str) do
end
def decode("	"), do: " "
def decode("
"), do: """