This is now an actual repo:
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
# coding: utf-8 | |
""" | |
Cauê Thenório - cauelt(at)gmail.com | |
This snippet makes Django do not create URL languages prefix (i.e. /en/) | |
for the default language (settings.LANGUAGE_CODE). | |
It also provides a middleware that activates the language based only on the URL. | |
This middleware ignores user session data, cookie and 'Accept-Language' HTTP header. |
See/monitor: http://bugs.mysql.com/bug.php?id=74434
It appears they're working on a fix, in the meantime, you can set MySQL to automatically start on system start by:
- Put the adjoining file
com.oracle.mysql.plist
into/System/Library/LaunchDaemons
- Adjust
[machinename]
in line 17 of the plist accordingly. - Set the perms to root:wheel and 0644.
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 slightly improved web3 detect and fallback pattern | |
Used for the experience here: https://ddx-demo.optimum.network (view in incognito window or something) | |
Pros: | |
* web3 users do not have to wait for window.load event to be fired before loading application script | |
* non-web3 users will not have to load your app script, which may (like mine) fail completely without global web3 | |
* customizable to whatever user experience you need |