Skip to content

Instantly share code, notes, and snippets.

// @requires https://gist.github.com/uhunkler/5465857
var text = 'to clipboard ' + new Date(),
returnedtext = '';
clipboard.set( text );
returnedtext = clipboard.get();
test.assert( text === returnedtext, 'Text correctly copied and read to/from the clipboard' );
test.show();
@minimedj
minimedj / snow.c
Last active December 23, 2015 17:59 — forked from MaratB/снег
#include <graphics.h>
#include <conio.h>
#include <stdlib.h>
int random (int N) {
return rand() % N;
}
main() {
int x, y, R, G, B;

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@minimedj
minimedj / install_erlang.sh
Last active December 15, 2015 04:39 — forked from chaos-ad/install.sh
Script to install Erlang via kurl
#!/bin/bash
# installing erlang on ubuntu's
VERSION="R16B"
sudo apt-get install curl build-essential libncurses5-dev openssl libssl-dev
sudo mkdir -p /opt/erlang/
curl -O https://raw.github.com/spawngrid/kerl/master/kerl && chmod a+x kerl
sudo mv kerl /opt/erlang/