Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View relekang's full-sized avatar
🦀

Rolf Erik Lekang relekang

🦀
View GitHub Profile
set term png
set output '20.png'
set xlabel 'Windows'
set ylabel 'seconds'
plot '2-nodes','4-nodes','8-nodes'
set term postscript
set output '20.eps'
plot '2-nodes','4-nodes','8-nodes'
@relekang
relekang / README.md
Last active August 29, 2015 14:10
A Runnable timer in java

Usage

new Timer(new Runnable() {
    @Override
    public void run() {
        // Time consuming code
    }
}, 1000).run().report();
<html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/1.4.6 (Ubuntu)</center>
</body>
</html>
(-1:0)
(12:250)
(17:250)
(18:250)
(16:245)
(21:224)
(24:195)
(8:6)
(25:1)
(22:1)
@relekang
relekang / Makefile
Created November 13, 2014 21:47
Makefile if OS X
ifeq ($(shell uname -s), Darwin)
OPEN='open'
else
OPEN='see'
endif

Will do the following

  1. Create whale-heartbeat script in /usr/local/bin with correct uuid.
  2. Set up collectd with network plugin pointed at whale.io

File structure

pillar/
  whale.sls
salt/
 whale.sls
" Vim syntax file
" Language: Bailey.js
" Maintainer: Rolf Erik Lekang
" URL: https://github.com/relekang/vim-baileyjs
if exists("b:current_syntax")
finish
endif
syn keyword bsInclude import export
moment.lang('nb')
app = angular.module("coffee", [], ()->)
app.controller("viewController", ["$scope", ($scope) ->
start = 0
end = 6
$scope.graphPosition = 0
$scope.updating = {'status': false, 'stats': false}
$scope.status = {'status': false, 'last_start': undefined}

Keybase proof

I hereby claim:

  • I am relekang on github.
  • I am relekang (https://keybase.io/relekang) on keybase.
  • I have a public key whose fingerprint is 62BF 64C8 EBD6 223C AC56 FDC1 E1A1 F3C0 53BB 3165

To claim this, I am signing this object:

If-statements

if 'chocolate' in apartment
  console.log("Awesome!")
else
  console.log("Too bad for you.")

if numberOfIceCreamsToday == 0
  console.log("Go eat ice-cream")
elif numberOfIceCreamsToday &gt; 2