Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
mr Marathi | |
bs Bosnian | |
ee_TG Ewe (Togo) | |
ms Malay | |
kam_KE Kamba (Kenya) | |
mt Maltese | |
ha Hausa | |
es_HN Spanish (Honduras) | |
ml_IN Malayalam (India) | |
ro_MD Romanian (Moldova) |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |
To remove a submodule you need to:
# Based on reading : http://stackoverflow.com/questions/7936572/python-call-a-function-from-string-name | |
# http://stackoverflow.com/questions/3061/calling-a-function-of-a-module-from-a-string-with-the-functions-name-in-python | |
class Foo(object): | |
def dynamic_call(self, attribute_name): | |
method_name = 'calculate_' + attribute_name # e.g. given attribute name "baz" call method "calculate_baz" | |
func = getattr(self, method_name) # find method that located within the class | |
func() # execute the method |
(function(m) { | |
function g(e) { | |
try { | |
if (navigator.plugins && navigator.plugins.length) | |
for (var t = 0; t < navigator.plugins.length; t++) { | |
var n = navigator.plugins[t]; | |
if (n.name.indexOf(e) >= 0) | |
return n.name + (n.description ? "|" + n.description : "") | |
} | |
} catch (r) {} |
You have a repository, call it alice/repo
. You would like to transfer it to the user bob
, so it will become bob/repo
.
However, you make heavy use of the GitHub Pages feature, so that people are often accessing https://alice.github.io/repo/
. GitHub will helpfully redirect all of your repository stuff hosted on github.com after the move, but will not redirect the GitHub Pages hosted on github.io.
0-mail.com | |
007addict.com | |
020.co.uk | |
027168.com | |
0815.ru | |
0815.su | |
0clickemail.com | |
0sg.net | |
0wnd.net | |
0wnd.org |
""" | |
Standalone chunk loader/reader from pymclevel with all the fancy repair/OOP stuff removed | |
""" | |
from __future__ import unicode_literals, print_function | |
import os | |
try: | |
from pymclevel import nbt | |
except ImportError: | |
import nbt | |
import struct |