In your js:
;(function () {
window.lcms = window.lcms || {}
window.lcms.initSomething = function (config) {
doStuffWith(config.var_name)
$.ajax(config.whatever_url)
}
}).call(this);
In your js:
;(function () {
window.lcms = window.lcms || {}
window.lcms.initSomething = function (config) {
doStuffWith(config.var_name)
$.ajax(config.whatever_url)
}
}).call(this);
class NormalizeData(object): | |
SERIALIZABLE_TYPES = [str, int, bool, float, list, dict, type(None)] | |
def __init__(self, element): | |
self.element = element | |
def execute(self): | |
if isinstance(self.element, dict): | |
self.iterate_dict() |
pyvenv-3.4 ~/venv/myvenv --without-pip | |
. ~/venv/myvenv/bin/activate | |
curl -O https://bootstrap.pypa.io/ez_setup.py | |
python ez_setup.py | |
easy_install pip |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.b2-studios.b2postwiki</string> | |
<key>OnDemand</key> | |
<false/> | |
<key>UserName</key> | |
<string>admin</string> |
find . -type d -exec chmod 755 {} \; | |
find . -type f -exec chmod 644 {} \; |
#!/usr/bin/env python | |
import os | |
import subprocess | |
import pprint | |
import textwrap | |
def chunks(l, n): | |
""" Yield successive n-sized chunks from l. | |
""" |
$ python -m SimpleHTTPServer 8080 |
# -vf yadif - Deinterlacing | |
ffmbc -i input.mov -vcodec libx264 -vf yadif output.mp4 |
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all |
# settings.py | |
EMAIL_USE_TLS = True | |
EMAIL_HOST = 'smtp.gmail.com' | |
EMAIL_HOST_USER = 'youremail@gmail.com' | |
EMAIL_HOST_PASSWORD = 'yourpassword' | |
EMAIL_PORT = 587 | |
# test with |