- Your name on the website and in the book
- PDF of the book
- Your name on the website and in the book
import sys | |
from Struct import * | |
Struct = StructDecorator | |
@Struct | |
def Direntry(): | |
offset, length = uint32[2] | |
@Struct | |
def Header(): |
import sys | |
from Struct import StructDecorator as S | |
@S | |
def Direntry(): | |
offset, length = S.uint32[2] | |
@S | |
def Header(): | |
magic = S.string(4) |
import sys | |
from Struct import Struct as S | |
class Header(S): | |
def __format__(self): | |
self.magic = S.string(4) | |
self.version = S.uint32 | |
self.direntries = Direntry()[17] | |
class Direntry(S): |
{u'Common': {u'Aliases': [], | |
u'Compression': u'yes', | |
u'HostName': u'', | |
u'IdentityFile': u'', | |
'NAME': u'Common', | |
u'Port': 22, | |
u'PreferredAuthentications': u'publickey,password', | |
u'ProxyCommand': u'', | |
u'ServerAliveInterval': 60, | |
u'User': u'', |
def Mr { // Honorific | |
string NAME = "Mr"; | |
string honorific = "Mr."; | |
} | |
def Ms { // Honorific | |
string NAME = "Ms"; | |
string honorific = "Ms."; | |
} |
12 chicken breast fillets , cut into strips | |
1/2 cup kosher salt | |
1/2 teaspoon dried sage | |
1/4 teaspoon dried thyme | |
2 cups buttermilk | |
1 1/2-2 cups all-purpose flour | |
1 teaspoon salt | |
1 teaspoon pepper | |
peanut oil (for frying) |
[{u'args': None, | |
u'baseClasses': None, | |
u'body': [{u'name': u'User', | |
'rule': 'declaration', | |
u'type': u'string', | |
u'value': {'rule': 'value', | |
u'suffix': None, | |
u'value': [{'chars': '', 'rule': 'tokString'}]}}, | |
{u'name': u'HostName', | |
'rule': 'declaration', |
function main() { | |
var temp = 0; | |
for(var temp_0 = 0; temp_0 < 10; temp_0++) { | |
temp = temp_0 + temp; | |
} | |
var bar = temp + 5; | |
temp = temp + 6; | |
bar = bar + 7; | |
} |