This file contains hidden or 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
array(3) { | |
["query"]=> | |
object(Kohana_Mysqli_Result)#20 (8) { | |
["link:protected"]=> | |
object(mysqli)#21 (0) { | |
} | |
["fetch_type:protected"]=> | |
string(12) "fetch_object" | |
["return_type:protected"]=> | |
string(8) "stdClass" |
This file contains hidden or 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
body{background-color:#272626;background:#272626 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAE4CAIAAAAVdQ4PAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjU4QjlEOEY3RTlCQjExREY4NzY0OEIxOTc5RDkzMkY0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjU4QjlEOEY4RTlCQjExREY4NzY0OEIxOTc5RDkzMkY0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9I |
This file contains hidden or 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
(in /Users/jpadilla/Desktop/smeagol) | |
INFO: *** Chef 0.10.2 *** | |
INFO: Setting the run_list to ["homebrew", "homebrew::dbs", "homebrew::misc", "git", "ruby", "ruby::irbrc", "python", "erlang", "node", "mvim"] from JSON | |
INFO: Run List is [recipe[homebrew], recipe[homebrew::dbs], recipe[homebrew::misc], recipe[git], recipe[ruby], recipe[ruby::irbrc], recipe[python], recipe[erlang], recipe[node], recipe[mvim]] | |
INFO: Run List expands to [homebrew, homebrew::dbs, homebrew::misc, git, ruby, ruby::irbrc, python, erlang, node, mvim] | |
INFO: Starting Chef Run for hydra.local | |
INFO: Processing directory[/Users/jpadilla/Developer] action create (homebrew::default line 12) | |
INFO: directory[/Users/jpadilla/Developer] created directory /Users/jpadilla/Developer | |
INFO: Processing directory[/Users/jpadilla/Developer/tmp] action create (homebrew::default line 16) | |
INFO: directory[/Users/jpadilla/Developer/tmp] created directory /Users/jpadilla/Developer/tmp |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<title>Stripe Sample Form</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.min.js"></script> | |
<script type="text/javascript" src="https://js.stripe.com/v1/"></script> | |
<script type="text/javascript"> |
This file contains hidden or 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
from django import template | |
register = template.Library() | |
@register.filter | |
# truncate after a certain number of characters | |
def truncatechars(value, arg): | |
if len(value) < arg: | |
return value | |
else: |
This file contains hidden or 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
def todict(obj, classkey=None): | |
if isinstance(obj, dict): | |
for k in obj.keys(): | |
obj[k] = todict(obj[k], classkey) | |
return obj | |
elif hasattr(obj, "__iter__"): | |
return [todict(v, classkey) for v in obj] | |
elif hasattr(obj, "__dict__"): | |
data = dict([(key, todict(value, classkey)) | |
for key, value in obj.__dict__.iteritems() |
This file contains hidden or 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
import re | |
import simplejson | |
from django.http import HttpResponse | |
from django.conf import settings | |
class JSONResponse(HttpResponse): | |
def __init__(self, request, data): | |
indent = 2 if settings.DEBUG else None |
This file contains hidden or 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
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNDQxOTI4ODkzD2QWBGYPZBYCAgMPFgIeBGhyZWYFJ1BvcnRhbHMvQ2FycmliZWFuL3RwbE1haW5Ib21lL3N0eWxlLmNzc2QCAQ9kFggCBQ9kFgQCAQ8PFgIeCEltYWdlVXJsBSx+L1BvcnRhbHMvQ2FycmliZWFuL3RwbE1haW5ibGFuay9Mb2FkaW5nLmdpZmRkAgMPDxYCHg5SYWRDb250cm9sc0RpcgUOfi9SYWRDb250cm9scy9kZAIHD2QWAmYPDxYCHwIFDn4vUmFkQ29udHJvbHMvZGQCCQ9kFgQCAQ8PFgIfAQUtfi9Qb3J0YWxzL0NhcnJpYmVhbi90cGxNYWluYmxhbmsvTG9hZGluZzYuZ2lmZGQCAw8PFgIfAgUOfi9SYWRDb250cm9scy9kZAILD2QWAgICD2QWAgIBD2QWAgIFD2QWAgIKD2QWAgIBD2QWAgIBD2QWCgIBD2QWAmYPFgIeC18hSXRlbUNvdW50AgUWCgIBD2QWBAIBDw8WAh8BBQwuLi9pbWcvMS5naWZkZAICDxUCAzg1MZADUHVzcyBpbiBCb290cyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg |
This file contains hidden or 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
Joses-MacBook-Air:~ jpadilla$ curl -L https://github.com/atmos/cinderella/raw/master/bootstrap.sh -o - | sh | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 1233 100 1233 0 0 845 0 0:00:01 0:00:01 --:--:-- 9066 | |
Ensuring we have the latest version of cinderella installed | |
A first time install takes about 45 minutes on a modern machine | |
You need to upgrade rubygems to 1.7.2 | |
Password: | |
Cinderella installed successfully | |
[Tue, 08 Nov 2011 06:58:00 -0400] INFO: *** Chef 0.10.4 *** |