Skip to content

Instantly share code, notes, and snippets.

View m3talstorm's full-sized avatar

Metalstorm m3talstorm

  • Bristol, England
View GitHub Profile
@m3talstorm
m3talstorm / gist:e0c3c273bb87b45646a22e79ae291efd
Created January 5, 2017 21:49
apt-get gitlab-ci-multi-runner on Ubuntu 16.10 yakkety installs 1.4.2+dfsg-1 rather than latest 1.9.2
- Change yakkety to xenial in file /etc/apt/sources.list.d/runner_gitlab-ci-multi-runner.list
- Run apt-get update
- Run apt-get install gitlab-ci-multi-runner
@m3talstorm
m3talstorm / ab.js
Last active January 4, 2017 16:21
Generates a combination containing 26 true/false values that can be used for super basic AB testing
var AB = (function(id) {
var _id = "";
var ret = {};
for(var i = 0; i < 26; i++) {
var a = id ? id[i] : parseInt(Math.random() * 10);
@m3talstorm
m3talstorm / scrabble.py
Created November 10, 2016 13:59
Scrabble word score
import sys
# https://en.wikipedia.org/wiki/Scrabble_letter_distributions
SCORES = {
'E' : 1,
'A' : 1,
'I' : 1,
'O' : 1,
{
"success": 1,
"data": {
"config": {
"nearPlane": 2,
"farPlane": 12345,
"stars": {
"useStarFading": true,
"fadeStart": 0.5,
"pitchEffect": 0.30995506799496,