Skip to content

Instantly share code, notes, and snippets.

@wardbekker
wardbekker / outfile.erl
Last active December 16, 2015 15:49
fprof output
%% Analysis results:
{ analysis_options,
[{callers, true},
{sort, acc},
{totals, false},
{details, true}]}.
% CNT ACC OWN
[{ totals, 275978, 888.505, 872.193}]. %%%
diff --cc BirdWatching/en.lproj/MainStoryboard_iPhone.storyboard
index b30e040,8f7c8ae..0000000
--- a/BirdWatching/en.lproj/MainStoryboard_iPhone.storyboard
+++ b/BirdWatching/en.lproj/MainStoryboard_iPhone.storyboard
@@@ -95,14 -95,28 +95,36 @@@
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Bird Name" textAlignment="right" lineBr
++<<<<<<< HEAD
+ <rect key="frame" x="157" y="11" width="135" height="21"/>
@wardbekker
wardbekker / crack_util.erl
Created January 26, 2013 14:48
make sure you've started crypto with `application:start(crypto)`
-module(crack_util).
-export([crack/0]).
-define(CHAR_LIST, "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW").
crack() ->
TryLength = 5,
MD5Hash = crypto:md5("12345"),
Lol = lists:duplicate(TryLength, ?CHAR_LIST),
@wardbekker
wardbekker / spdy_erlang.md
Created October 2, 2012 07:32
Enable SPDY for your Erlang website.
@wardbekker
wardbekker / ci_quickstart_math.erl
Created September 10, 2012 11:20
Sample EUnit test of addition function
-module(ci_quickstart_math).
-export([addition/2]).
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-endif.
addition(X, Y) ->
X + Y.
@wardbekker
wardbekker / gist:3636361
Created September 5, 2012 13:13
R15B02 install script
require 'formula'
class ErlangManuals < Formula
url 'http://erlang.org/download/otp_doc_man_R15B02.tar.gz'
end
class ErlangHtmls < Formula
url 'http://erlang.org/download/otp_doc_html_R15B02.tar.gz'
end
@wardbekker
wardbekker / gist:2905471
Created June 10, 2012 13:04
R15B01 not valid version
See https://github.com/basho/riak/issues/131 for the explanation
placeholder:riak-1.1.2 ward$ make rel
fatal: Not a git repository (or any of the parent directories): .git
./rebar get-deps
==> cluster_info (get-deps)
==> lager (get-deps)
==> poolboy (get-deps)
==> protobuffs (get-deps)
==> basho_stats (get-deps)
@wardbekker
wardbekker / gist:2905441
Created June 10, 2012 13:00
Riak mongo load failure when using precompiled riak
14:59:17.022 [error] Loading of /Users/ward/riak_mongo/ebin/riak_mongo.beam failed: badfile
14:59:17.024 [error] beam/beam_load.c(1365): Error loading module riak_mongo:
use of opcode 153; this emulator supports only up to 152
14:59:17.030 [error] beam/beam_load.c(1365): Error loading module riak_mongo_bson:
use of opcode 153; this emulator supports only up to 152
@wardbekker
wardbekker / compression.md
Created May 1, 2012 19:03
D-GAP and elias Gamma coding combination lib
@wardbekker
wardbekker / .emacs
Created March 13, 2012 07:47
highlight lines with trailing spaces, lines longer than 80 chars and tabs
;; taken from http://www.emacswiki.org/emacs/EightyColumnRule by http://www.emacswiki.org/emacs/TimOCallaghan
(custom-set-faces
'(my-tab-face ((((class color)) (:background "grey10"))) t)
'(my-trailing-space-face ((((class color)) (:background "gray10"))) t)
'(my-long-line-face ((((class color)) (:background "gray10"))) t))
(add-hook 'font-lock-mode-hook
(function
(lambda ()
(setq font-lock-keywords