Skip to content

Instantly share code, notes, and snippets.

View imrehg's full-sized avatar
🐒
Chaos Monkey

Gergely Imreh imrehg

🐒
Chaos Monkey
View GitHub Profile
@imrehg
imrehg / histtest.py
Created October 1, 2012 06:44
Plotting lots of histograms
import numpy as np
import pylab as plt
import string
import random
## Just generate some data
sets, items = 500, 200 # number of symbols, number of datapoints for each symbol
dataset = np.random.random((sets, items)) - 0.5
up = string.ascii_uppercase
n = len(up)
@imrehg
imrehg / boards.txt
Created September 28, 2012 10:44
Japanimo settings for Arduino IDE
##############################################################
japanimo.name=Japanimo
japanimo.upload.protocol=arduino
japanimo.upload.maximum_size=14336
japanimo.upload.speed=19200
japanimo.bootloader.low_fuses=0xff
japanimo.bootloader.high_fuses=0xdd
@imrehg
imrehg / gist:3785791
Created September 26, 2012 03:18
Not Interested
p5E3(%^}&;tUww!D"#IK#XFZ4
@imrehg
imrehg / convert.py
Created September 13, 2012 11:54
Data converter for temperature logger
# -*- coding: utf-8 -*-
import numpy as np
import pylab as pl
import datetime
import pytz
import time
from time import mktime
from matplotlib.dates import strpdate2num, epoch2num, num2date
tz = pytz.timezone('Asia/Taipei')
@imrehg
imrehg / gist:1526107
Created December 28, 2011 03:47
Essay on Realistic Space Combat
(originally from http://forums.spacebattles.com/showthread.php?t=131056 by Memphet'ran)
A little (or not so little) essay I wrote on what realistic space combat would be like. Thought you guys might find it interesting. Sorry, I admit it IS a bit long, I apologize if it's somewhat intimidating.
---------
Space battles are ubiquitous in science fiction. Usually it seems to look a lot like some variation on WWII sea battles: fighters whizz around and engage in space dogfights as the great battleships pound each other with death rays. But in fact this is probably a very unrealistic depiction of what a space battle would look like. I’m sure I’m not the only one who’s wondered “so what would a space battle really look like?” In this essay I will attempt to answer that question as best I can. For those who are interested, somebody else has already tackled the question on Strange Horizons, but I believe that essay is flawed in several ways, most notably the conclusion that stealth will be important in space warfa
@imrehg
imrehg / gist:1522753
Created December 27, 2011 04:50
articles
http://dx.doi.org/10.1109/MWSYM.2007.379986
http://dx.doi.org/10.1109/SCONEST.2005.4382885
@imrehg
imrehg / findword.py
Created December 1, 2011 01:17
Find words that match a pattern I was looking for
"""
Match a pattern, to find what can "s____e cake" be.
This is the hard way, and matching expressions rather than words
would be better, but brute force is brute.
"""
import re
# The English Open Word List file we need to consider
# http://dreamsteep.com/projects/the-english-open-word-list.html
fname = "S Words.csv"

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real