Data URI manipulation made easy.
This isn't very robust, and will reject a number of valid data URIs. However, it meets the most useful case: a mimetype, a charset, and the base64 flag.
====================================================== | |
Setting up Django using Apache/mod_wsgi on Ubuntu 8.10 | |
====================================================== | |
This article will cover setting up Django using Apache/mod_wsgi on Ubuntu | |
8.10. The article is targeted at a production environment, but keep in mind | |
this is a more generalized environment. You may have different requirements, | |
but this article should at least provide the stepping stones. | |
The article will use distribution packages where nesscary. As of 8.10 the |
""" | |
Straight Include template tag by @HenrikJoreteg | |
Django templates don't give us any way to escape template tags. | |
So if you ever need to include client side templates for ICanHaz.js (or anything else that | |
may confuse django's templating engine) You can is this little snippet. | |
Just use it as you would a normal {% include %} tag. It just won't process the included text. |
// REQUIRED VARS. Defaults to a 950px wide, 24-column grid that has 30px wide units and 10px wide | |
// gutters. If you do the fluid grid, then this 950/24/30/10px size will become the maximum size. | |
$grid_type: fixed !default | |
$grid_columns: 24 !default | |
$grid_column_width: 30 !default | |
$grid_gutter_width: 10 !default | |
// GENERATED VARS. You can ignore these. | |
$grid_full_width: $grid_columns * $grid_column_width + $grid_columns * $grid_gutter_width - $grid_gutter_width | |
$grid_column_width_percent: ($grid_column_width / $grid_full_width * 100) * 1% |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>Daniel Lindsley</string> | |
<key>name</key> | |
<string>My Twilight</string> | |
<key>settings</key> | |
<array> |
[ | |
{ | |
"keys": ["super+alt+shift+5"], | |
"command": "set_layout", | |
"caption" : "1-2 Grid", | |
"args": | |
{ | |
"cols": [0.0, 0.5, 1.0], | |
"rows": [0.0, 0.5, 1.0], | |
"cells": |
#!/usr/bin/env python3 | |
"""This module is a sample of the OAuth2 authentication by Python3""" | |
__version__ = "0.1.0" | |
__author__ = "shin (shin.hateblo.jp)" | |
__copyright__ = "(C) 2012 shin" | |
__email__ = "s2pch.luck@gmail.com" | |
__license__ = "Apache License 2.0" | |
__status__ = "Prototype" |
sudo apt-get update | |
sudo apt-get install munin-plugins-extra | |
cd /etc/munin/plugins | |
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_bytes | |
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_counters | |
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_rates | |
sudo aptitude install libcache-memcached-perl | |
sudo /etc/init.d/munin-node restart | |
sudo tail -f /var/log/munin/munin-node.log |
DJ Ango, yo! | |
http://railsenvy.com/2007/9/10/ruby-on-rails-vs-django-commercial-7 | |
The Whistles | |
[now broken] http://www.youtube.com/watch?v=ccgXjA2BLEY | |
http://www.youtube.com/watch?gl=US&hl=en&client=mv-google&v=Nnzw_i4YmKk | |
Do it live! | |
http://www.youtube.com/watch?v=2tJjNVVwRCY | |
REMIX: http://www.youtube.com/watch?v=5j2YDq6FkVE&NR=1 |
var demoApp = angular.module('demoApp', ['ngResource'], function($locationProvider) { | |
$locationProvider.hashPrefix(''); | |
}); | |
function MainCtrl($scope, Serv) { | |
$scope.selectedItem = { | |
value: 0, | |
label: '' | |
}; | |
$scope.Wrapper = Serv; |