Skip to content

Instantly share code, notes, and snippets.

@tangjeff0
Created September 22, 2019 19:19
Show Gist options
  • Save tangjeff0/982ae071ffccc825ca456d9446ed0e6a to your computer and use it in GitHub Desktop.
Save tangjeff0/982ae071ffccc825ca456d9446ed0e6a to your computer and use it in GitHub Desktop.
'''
class signatures
'''
'''
everything is an object in ruby
everything is a system in the universe. when emergent properties emerge is the
line for a system
'''
class System:
def __init__(self):
pass
def initialize(self):
pass
def create(self):
pass
def destroy(self):
pass
def terminate(self):
pass
class Simulation:
def __init__(self, subsystem=None):
pass
# universe -> neighborhood -> galaxy -> solar system -> earth
class Universe:
def __init__(self):
self.laws = []
self.constants = []
self.dimensions = []
self.energies = ['KE','PE']
# inherit system
class Being:
def __init__(self):
pass
# inherit Being
class Human:
def __init__(self, fname, lname, bday):
pass
'''
implementations
'''
def fun():
universe = Universe()
# timeout('1 billion years')
milky_way = universe.create('milky way')
# timeout('2 billion more years')
solar_system = milky_way.create('solar system')
# timeout('1 billion years')
earth = solar_system.create('earth')
rocks = earth.create('rock')
water = earth.create('water')
dna = earth.create('dna')
# timeout('3 billion yrs')
single_cell_organisms = earth.create('single_cell_organisms')
# timeout('3 billion yrs')
multi_cell_organisms = earth.create('multi_cell_organisms') # mitochondria is the powerhouse of the cell
# timeout('1 billion yrs')
plants = earth.create('plants')
cockroaches = earth.create('cockroaches')
# timeout('1 billion yrs')
dinos = earth.create('dinosaurs')
solar_system.send_giant_meteor(earth)
dinos.terminate()
# timeout('2 billion yrs')
homos = earth.create('homos')
sapiens, neanderthals, others = **homos
sapiens.destroy(neanderthals)
others.terminate()
language = sapiens.create('langugage')
culture = language.create('culture')
mesopotamians = sapiens.create()
egyptians = sapiens.create()
chinese = sapiens.create()
money = culture.create('money')
religion = culture.create('religion')
# human -> family -> tribe -> religion -> nation-state -> market
nation_state = culture.create()
corporation = culture.create()
software = scientists.create('software')
jeff = Human('jeffery', 'tang', '22-11-1996', 'Cincinnati, Ohio')
jeff.learn('walk')
jeff.learn('talk')
jeff.learn('theory of mind')
jeff.learn('math')
jeff.learn('sports')
jeff.exec('drugs')
jeff.go('rice university', 'chemical engineering')
jeff.work('tesla')
jeff.startup('boujee.me')
jeff.work('groupraise')
jeff.go('san francisco')
jeff.learn('full stack engineering')
jeff.startup('chat_app')
jeff.work('strata')
jeff.work('microsoft')
jeff.go('burning man')
jeff.exec('sabbatical')
Simulation.initialize = fun
if __name__ == 'main':
import random
num_sim = 100
for i in range(num_sim):
random_noise = random.random()
sim = Simulation(random_noise) # the current universe we live in
sim.initialize() # big bang
@eliezer43
Copy link

Hi Jeff, can I use this in Windows? And, if yes, how can I do that? Thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment