Skip to content

Instantly share code, notes, and snippets.

@codegenres
Last active January 5, 2017 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save codegenres/6fd8573215fb5ea01ab862b747ddb365 to your computer and use it in GitHub Desktop.
Save codegenres/6fd8573215fb5ea01ab862b747ddb365 to your computer and use it in GitHub Desktop.
# [ENTER_SOURCE_CODE]
# A.G. (c) 2017. All Rights Reserved.
# January 4th, 2017
import time
class EnterSourceCode:
def __init__(self, time, filename, sourcecode, category):
self.time = time
self.filename = filename
self.sourcecode = sourcecode
self.category = category
"""
>>> class EnterSourceCode:
def __init__(self, time, filename, sourcecode, category):
self.time = time
self.filename = filename
self.sourcecode = sourcecode
self.category = category
>>> xls = EnterSourceCode(time.asctime(), 'filename', 'sourcecode', 'category')
>>> xls.time, xls.filename, xls.sourcecode, xls.category
('Wed Jan 4 21:02:14 2017', 'filename', 'sourcecode', 'category')
>>> xls = EnterSourceCode(time.asctime(), 'trueExperimentalMethod', 'This is the True Experimental Method, The One And Only!', 'table')
>>> xls.time, xls.filename, xls.sourcecode, xls.category
('Wed Jan 4 22:01:30 2017', 'trueExperimentalMethod', 'This is the True Experimental Method, The One And Only!', 'table')
>>> xls = EnterSourceCode(time.asctime(), 'FirstSource', 'What was remembered of the past. What was here before. This is the event, the first events. The first concepts of history. The Archives-Project.', 'tabular')
>>> xls.time, xls.filename, xls.sourcecode, xls.category
('Wed Jan 4 22:18:51 2017', 'FirstSource', 'What was remembered of the past. What was here before. This is the event, the first events. The first concepts of history. The Archives-Project.', 'tabular')
>>> class SchemaFirstEverywhere():
def __init__(self,schema):
self.schema = schema
>>> xls2 = SchemaFirstEverywhere('argot')
>>> xls2.schema
'argot'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment