Create a websites
user.
sudo adduser --disabled-password --home /src/websites websites
Login and install dropbox.
sudo -s su - websites
#!/bin/bash | |
# This hook is run after a new virtualenv is activated. | |
set -e | |
(cat <<'PYDOC' | |
#!/usr/bin/env python | |
import pydoc | |
if __name__ == '__main__': | |
pydoc.cli() |
#load data | |
stateAbbr rownames(stateAbbr)unemp_data | |
#get county names in correct format | |
countyNames counties statesstates | |
#concatenate states and counties | |
unemp_data$counties | |
#parse out county titles & specifics |
/** | |
* Stream collection/model data. | |
* @exports mixins/Stream | |
* @module Stream | |
*/ | |
var Stream = { | |
/** | |
* Is the collection steaming? | |
* | |
* @property streaming |
# if the resource is not found then forward to backbone's router | |
app.use (req, res) -> | |
newUrl = req.protocol + '://' + req.get('Host') + '/#' + req.url | |
res.redirect newUrl |
"""Pipe finders and loaders | |
Use these to import Yahoo! pipes as Python modules with support for nested imports | |
(C) Greg Gaughan, 2012 | |
""" | |
"""Example usage (see __main__ below for a dynamic version): | |
import sys |
Disclaimer: This post is Meteor & Backbone beef. Both Meteor and Backbone are absolute genius, and far beyond anything I could dream to create. But IMO there are better tools. Prepare yourselves *gulp*, I need to get this off my chest.
First, Backbone. Why people? It revolutionized JavaScript, did wonderful things for the world, and served its purpose well. But now we have better tools, so let’s move on. It’s like Gentoo users proselytizing Gentoo to the masses, perpetuating it as most common Distro; where all this time, Ubuntu would have saved everyone countless hours. Not
Edit: Apparently the sass file was removed from the latest versions of Font-Awesome... You can still download the sass file from GitHub here
@import font-awesome
import unittest | |
import re | |
class BaseTest(unittest.TestCase): | |
def assertEqualEllipsis(self, first, second, ellipsis_marker='...', msg=None): | |
""" | |
Example : | |
>>> self.assertEqualEllipsis('foo123bar', 'foo...bar') |