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
# Thanks to commenters for providing the base of this much nicer implementation! | |
# Save and run with $ python 0dedict.py | |
# You may need to hunt down the dictionary files yourself and change the awful path string below. | |
# This works for me on MacOS 10.14 Mohave | |
from struct import unpack | |
from zlib import decompress | |
import re | |
filename = '/System/Library/Assets/com_apple_MobileAsset_DictionaryServices_dictionaryOSX/9f5862030e8f00af171924ebbc23ebfd6e91af78.asset/AssetData/Oxford Dictionary of English.dictionary/Contents/Resources/Body.data' | |
f = open(filename, 'rb') |
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
package blogspot.software_and_algorithms.stern_library.string; | |
import java.util.HashMap; | |
import java.util.Map; | |
/* Copyright (c) 2012 Kevin L. Stern | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights |
I hereby claim:
- I am nickersoft on github.
- I am tjnickerson (https://keybase.io/tjnickerson) on keybase.
- I have a public key ASB_ye0nj4tgspClu5tUMpH5CkwTrmcdukY250NuODLttwo
To claim this, I am signing this object:
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
### Keybase proof | |
I hereby claim: | |
* I am nickersoft on github. | |
* I am tnick (https://keybase.io/tnick) on keybase. | |
* I have a public key ASABd2Jm5PqQaSKlNhkDio86PIiPcfqgJrmfAbZdCovDowo | |
To claim this, I am signing this object: |
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
# A lot of times people have trouble removing Git submodules, receiving errors about the index still existing in their repo even after | |
# they deleted the module directory. This is the correct way to do it. | |
# Add a submodule just so we can remove it | |
git submodule add https://github.com/Nickersoft/push.js.git ./data/push | |
# Remove the submodule from the Git cache | |
git rm --cached ./data/push | |
# Remove Git module files |
Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
Prerequisites (for Homebrew at a minimum, lots of other tools need these too):
- XCode is installed (via the App Store)
- XCode command line tools are installed (
xcode-select --install
will prompt up a dialog) - Java
Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
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
$ ./manage.py shell | |
Python 2.7.6 (default, Sep 9 2014, 15:04:36) | |
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
(InteractiveConsole) | |
>>> from django.contrib.auth import get_user_model | |
>>> User = get_user_model() | |
>>> user = User.objects.create_user('username', '[email protected]', 'password') | |
>>> user.is_staff = True | |
>>> user.is_superuser = True |