Skip to content

Instantly share code, notes, and snippets.

View ashrewdmint's full-sized avatar

Andrew Smith ashrewdmint

View GitHub Profile

What is the Fitness Landscape for AGI?

Someone who studies evolution might discuss the "fitness landscape", a mathematical landscape which represents the reproductive success of an organism. The higher the elevation of an organism on the landscape, the more "fit" it is; the lower the elevation, the less likely the organism can survive long enough to reproduce at all.

The process of evolution yields species which, over time, discover higher and higher points on the topology of animal-space. Eventually, the successful ones end up at the top of the hill in their ecological niches, at which point they stop changing, since there is no higher point which is accessible by the short distance traveled by random mutations.

Jellyfish and horses are both at the top of the landscape, yet they reside in very different locations. There is a great valley between them. If a jellyfish slightly closer to horse-space is hatched, it will be a worse-than-average jellyfish and produce few offspring if it even manages to surv

A hipster NodeJS developer and coffee snob barista with an ironic mustache and tight pants was being interviewed by Google.

"Before this interview begins, I just want to say that event-based concurrency and non-blocking IO is the only way to achieve web scale, even faster than anything written in assembly by the gay ghost of Alan Turing!"

At this moment, a brave C++ developer who had a CS degree from Stanford and understood the necessity of Big O notation and fully supported all strict type systems and had been writing Java before 1995 stood up and held up a floppy disk.

"Can you prove that P = NP for all programs stored on this diskette?"

The arrogant hipster smirked and smugly replied "Sure I can, I'll just deploy a machine learning algorithm to Heroku!"

>> [0.1178 0.2012 0.3277 0.0] ./ [0.2366 0.2012 0.1641 0.0]
ans =
0.4979 1.0000 1.9970 NaN
>> p1
p1 =
@ashrewdmint
ashrewdmint / what.txt
Created June 27, 2013 19:03
Emoticons!
ಠ~ಠ
ಠ‿ಠ
ಠ_ಠ
(ノಠ益ಠ)ノ彡┻━┻
 (/¯◡ ‿ ◡)/¯ ~ ┻━┻
(╬ ಠ益ಠ)
┬─┬ノ( º _ ºノ)
◕ ◡ ◕
(づ。◕‿‿◕。)づ
| (• ◡•)|╯╰(❍ᴥ❍ʋ)
# andrew.rb
nouns = %{
hamstring flexibility
bitcoins
circadian rhythms
blue wavelengths of light
capitalism
cold-thermogenesis
paleo
@ashrewdmint
ashrewdmint / a_word_is_not_that_which_it_means.markdown
Last active December 11, 2015 21:09
A Word Is Not That Which It Means

A Word Is Not That Which It Means

By Andrew Smith


A word is not that which it means
A word is just a reference
A name we give to other things
Not to be held in reverence

@ashrewdmint
ashrewdmint / productivity.md
Created April 11, 2012 02:16
Stuff I've discovered about productivity

Stuff I've discovered about productivity

Theory: if it's in your field of vision, you are spending brain power on it

The idea is to maximize your brain power on the task at hand. Whatever your vision picks up on, even in the peripheral, triggers thoughts. And if what you see is not a part of the current task, you'll get distracted. The rule that logically follows from this is:

Don't allow yourself to see anything unrelated to the current task

This is what I do to implement the rule:

module Jekyll
# This is probably bad. Should I be doing this?
class MarkdownConverter < Converter
alias :old_convert :convert
def convert(content)
old_convert(content).gsub(/<h([1-6])>(.+?<\/)/) do |match|
n = $1
Last login: Fri Dec 2 09:22:41 2011 from ip72-208-62-55.ph.ph.cox.net
WARNING: Your password has expired.
You must change your password now and login again!
Changing password for andrew.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
Password unchanged
Enter new UNIX password:
Retype new UNIX password:
@ashrewdmint
ashrewdmint / package.js
Created July 22, 2011 23:03
Package.js
// Package.js
// by Andrew Smith [andrew.caleb.smith@gmail.com]
// Package.create("pages/signup", function(){
//
// // You can load dependencies--nothing will be loaded twice!
// Package.load("plugins/something");
//
// // Put your code here!
// // Remember, variables you define here must be global if you