Skip to content

Instantly share code, notes, and snippets.

@tckmn
tckmn / gist:29944a7b8e757a7586d4
Created July 18, 2014 12:39
List of languages used on codegolf.stackexchange.com
PYTHON : 1828
JAVASCRIPT : 993
RUBY : 893
C : 856
PERL : 810
GOLFSCRIPT : 663
MATHEMATICA : 537
HASKELL : 530
PHP : 507
JAVA : 422
@tckmn
tckmn / browserquest-autosetup.sh
Created February 1, 2015 04:38
Local Browser Quest autosetup
#!/bin/bash
git clone https://github.com/mozilla/BrowserQuest.git
cd BrowserQuest
sudo sed -i 's/>0/>0.0.0/' package.json
sudo sed -i '/websocket-server/d' package.json
git clone https://github.com/miksago/node-websocket-server node_modules/websocket-server
sudo npm install
@tckmn
tckmn / so-survey.txt
Created February 2, 2015 22:50
My Stack Overflow survey answers
In what country do you currently reside?
United States
What city or town do you live in?
Houston
How old are you?
<20
What is your gender?
Male
Tabs or Spaces?
Spaces
@tckmn
tckmn / languages.txt
Created June 25, 2015 07:52
Language usage on codegolf.SE, updated version
python: 3325
javascript: 1823
ruby: 1366
c: 1320
perl: 1239
golfscript: 933
haskell: 877
mathematica: 818
java: 804
php: 774
@tckmn
tckmn / nethack-scroll-priceid-chart.rb
Created July 4, 2015 13:51
ASCII price ID chart for scrolls in Nethack
#!/usr/bin/env ruby
base_prices = [20, 50, 60, 80, 100, 200, 300]
rows = ['Base', 'Ch<6', '6-7', '8-10', '11-15', '16-17', '18', '19-25', 'Sell']
rows.map! {|x| [x] }
cha_mods = [
nil, # (base)
->x { x*2 }, # <6
@tckmn
tckmn / pentachatdyl.user.js
Last active October 20, 2015 23:51
Pentachatdyl: Fix chat + Firefox + Pentadactyl
// ==UserScript==
// @name Pentachatdyl
// @namespace http://keyboardfire.com/
// @description Fix chat + Firefox + Pentadactyl
// @include *://chat.stackexchange.com/*
// @include *://chat.meta.stackexchange.com/*
// @include *://chat.stackoverflow.com/*
// @include *://dystroy.org/miaou/*
// @include *://*.slack.com/*
// @version 1
@tckmn
tckmn / fractal.py
Created November 7, 2015 19:36
fractal test thing
#!/usr/bin/env python
from PIL import Image
import random
import math
w = 500
h = 500
img = Image.new('RGB', (w, h))
@tckmn
tckmn / a.pl
Created November 21, 2015 02:41
Me trying to learn Perl...
#!/usr/bin/perl
use strict;
use warnings;
use 5.10.0; # for "say"
# scalar: $ array: @ hash: %
# FOR NUMBERS: < > <= >= == != <=> + * []
# FOR STRINGS: lt gt le ge eq ne cmp . x {}
# array basics
@tckmn
tckmn / data
Created December 6, 2015 05:37
python 5.085 2
javascript 4.42 2
ruby 4.881 3
c 6.209 3
perl 4.447 2
haskell 3.937 2
cjam 5.884 4
java 5.774 2
golfscript 5.68 4
mathematica 5.125 3
Username Number of posts Average (mean) post score
grovesNL 16 67.125
marcog 19 29.1052631578947
trichoplax 28 28.6071428571429
Calvin's Hobbies 216 27.9259259259259
Jason C 19 27.3157894736842
Kyle McCormick 15 26.7333333333333
Rainbolt 25 25.36
Flonk 31 22.8709677419355
Mark Jeronimus 20 22.15