- https://github.com/workshopper/javascripting
- https://github.com/workshopper/learnyounode
- https://github.com/workshopper/levelmeup
- https://github.com/workshopper/stream-adventure
- https://github.com/workshopper/how-to-npm
- https://github.com/workshopper/goingnative
- https://github.com/workshopper/regex-adventure
- https://github.com/workshopper/browserify-adventure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import controlP5.*; | |
| ControlPad cp; | |
| ControlP5 controlP5; | |
| void setup() { | |
| size(400, 400); | |
| frameRate(30); | |
| smooth(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sys import argv | |
| from glob import glob | |
| from itertools import imap, chain, ifilter, groupby | |
| from collections import defaultdict | |
| from PyPDF2 import PdfFileReader | |
| from pattern.en import parsetree | |
| def ilen(i): | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_library('Drop') | |
| from drop import SDrop, DropListener | |
| drop = None | |
| img = None | |
| class DropyListener(DropListener): | |
| def dropEvent(self, e): | |
| global img | |
| if e.isImage(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class callable_dict(dict): | |
| def __call__(self, **kwargs): | |
| nd = self.copy() | |
| nd.update(**kwargs) | |
| return nd | |
| d = callable_dict(a=1, b=2) | |
| nd = d(b=3, c=4) | |
| print(d) | |
| print(nd) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime as dt | |
| import logging | |
| import sys | |
| from playhouse.dataset import DataSet # this can be any DB ;) | |
| params = 'timestamp name level pathname lineno msg args exc_info func sinfo'.split(' ') | |
| db = DataSet('sqlite:///db.sqlite') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def inc(n): | |
| """increments n by one""" | |
| return n + 1 | |
| def square(n): | |
| """squares n""" | |
| return n ** 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from functools import wraps | |
| from typing import get_type_hints | |
| class InputError(Exception): | |
| pass | |
| def make_error_message(arg_name, arg_type, expected_type): | |
| return f"{arg_name} value has type {arg_type} - must be {expected_type}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import inspect | |
| def interpret(src): | |
| """Compile and execute provided code as if it was local to the caller""" | |
| # get a decent name | |
| try: | |
| name = __file__ | |
| except NameError: | |
| name = __name__ |
What you are looking for is Shadow I.T..
Dark IT, Rogue IT, and Stealth IT all mean Shadow IT.