This file contains 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
# This is a responding to a YouTube comment asking what was wrong with their code. | |
#!/usr/bin/python | |
# No imports required | |
# Two blank lines before class definitions, capitalize name | |
# Also in Python 2 you need to explicitly inherit from object to use | |
# the fullname.setter decorator; | |
# in Python 3 your original class def would have done so automatically | |
class Employee(object): |
This file contains 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
'.source.json': | |
'netkan-SD': | |
'prefix': 'nkSpaceDock' | |
'body': """{\n\t"spec_version" : "${1:v1.4}",\n\t"identifier" : "${2:<identifier>}", | |
\t"$kref" : "#/ckan/spacedock/${3:<sdid>}",\n\t"x_netkan_license_ok" : true,\n\t$6\n}$0""" | |
'netkan-GitHub': | |
'prefix': 'nkGitHub' | |
'body': """{ | |
\t"spec_version" : "${1:1.4}", | |
\t"identifier" : "${2:<identifier>}", |