Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| #!/bin/bash | |
| export TERM=xterm-color | |
| export CLICOLOR=1 | |
| export GREP_OPTIONS='--color=auto' | |
| # export LSCOLORS=Exfxcxdxbxegedabagacad | |
| export LSCOLORS=gxfxcxdxbxegedabagacad # Dark lscolor scheme | |
| # Don't put duplicate lines in your bash history | |
| export HISTCONTROL=ignoredups | |
| # increase history limit (100KB or 5K entries) | |
| export HISTFILESIZE=100000 |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
file directory layout:
|- index.html
|- manifest.appcache
|- static/
| |- 00786df954089f14eaca25061f454957.svg
| `- bb796e8931c52593d86ec07a0246e1e6.css
|_ polyfiller/
`- shims/
| void drawFolder(int sides, float rad) { | |
| float ang = (frameCount * 2 * PI * 0.05) / sides; | |
| PVector maxy = new PVector(0, 0); | |
| PVector[] v = new PVector[sides]; | |
| for (int i = 0; i != v.length; ++i) { | |
| float angle = ((2 * PI * i) / sides) + ang; | |
| float x = sin(angle) * rad; |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
master branch is always production-ready, deployable, 100% green test suitegit pull is configured to automatically rebase)| # METEOR CORE: | |
| Anywhere: Meteor.isClient | |
| Anywhere: Meteor.isServer | |
| Anywhere: Meteor.startup(func) | |
| Anywhere: Meteor.absoluteUrl([path], [options]) | |
| Anywhere: Meteor.settings | |
| Anywhere: Meteor.release | |
| # A little Meteor CheatSheet about Iron-Router. (updated on a weekly basis) | |
| # Check our Studio: https://gentlenode.com/ | |
| meteor add iron:router | |
| meteor update iron:router | |
| # Iron Router > Configuration |
| # Python ascii codec can't decode and unicode mess | |
| # | |
| # check this out https://pythonhosted.org/kitchen/unicode-frustrations.html | |
| # and this http://www.joelonsoftware.com/articles/Unicode.html | |
| # | |
| # The short of it is this | |
| # 1. If you can, always set PYTHONIOENCODING=utf8 before you start your python programs. | |
| # 2. If you can't or you can't ensure this, always use the following lambda _u to get unicode text | |
| # whereever you convert to strings (str.format, str % etc.) | |
| # |
The following is from scotthelme.co.uk
with Content Security Policy (CSP) enabled(and a browser that supports it(http://caniuse.com/#feat=contentsecuritypolicy), you can tell the browser that it can only download content from the domains you explicitly allow http://www.html5rocks.com/en/tutorials/security/content-security-policy/ https://www.owasp.org/index.php/Content_Security_Policy I need to change our application code so we can increase security by disabling 'unsafe-inline' 'unsafe-eval'