This is the handout of a lecture on immortality that I gave at Hofstra University on March 5th, 2007
(************** Content-type: application/mathematica ************** | |
CreatedBy='Mathematica 5.1' | |
Mathematica-Compatible Notebook | |
This notebook can be used with any Mathematica-compatible | |
application, such as Mathematica, MathReader or Publicon. The data | |
for the notebook starts with the line containing stars above. | |
To get the notebook into a Mathematica-compatible application, do |
Author: Michael Goerz [email protected]
Date: Oct 20, 2008
I ran into some problems the other day from a misunderstanding about how passing strings works in fortran.
Consider the following program:
implicit none
Author: Michael Goerz [email protected]
Date: July 6, 2009
-
Insert your CD/DVD. Check that MacOS has mounted it in as a Volume (It will appear on the Desktop).
-
Identify which device the CD/DVD is.
This is the trickiest part of the whole procedure. First, use drutil
to get some comprehensive information about your CD/DVD
#!/usr/bin/env python | |
"""Convert a word (doc/docx) file to markdown""" | |
import sys | |
import os | |
import subprocess | |
SOFFICE = r'/Applications/LibreOffice.app/Contents/MacOS/soffice' | |
PANDOC = r'pandoc' |
If you would like to give me SSH access to a machine, please append the content of goerz.pub to the ~/.ssh/authorized_keys
file.
To send me encrypted files (attachments) by email, use the GPG Key 57a6caa6.asc.
You can verify the GPG keys at https://keybase.io/goerz
#!/usr/bin/env python | |
import click | |
codepoint_hex = click.prompt("Enter a unicode codepoint (hex) for a known character") | |
encoded_bytes = click.prompt("Enter the bytes corresponding to the same character in an unknown encoding, in hex") | |
encoded_bytes = bytearray.fromhex(encoded_bytes) | |
codepoint_dec = int(codepoint_hex, 16) | |
unicode_char = chr(codepoint_dec) | |
click.echo("The unicode characters is: %s" % unicode_char) |
class MyNewClass(object): | |
a = 1 # class attribute | |
def __init__(self): | |
self.b = 1 # instance attribute | |
def get_a_via_instance(self): | |
return self.a | |
def get_a_via_class(self): | |
return self.__class__.a # = MyNewClass.a | |
class MyOldClass(): |