Skip to content

Instantly share code, notes, and snippets.

@copyleftdevsbl
copyleftdevsbl / settings.py
Created September 27, 2012 23:18
Django: Settings Best Practice
# Django settings for copyleftdev project.
import os
DIR = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
@copyleftdevsbl
copyleftdevsbl / demo.css
Created September 25, 2012 12:14
CSS3:Normalize
/*! normalize.css v1.0.1 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/*
* Corrects `block` display not defined in IE 6/7/8/9 and Firefox 3.
*/
@copyleftdevsbl
copyleftdevsbl / gist:3779469
Created September 25, 2012 01:33
HTML: d3 SVG treemap
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Treemap</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js"></script>
<style type="text/css"> rect { fill: none; stroke: #fff; } text { font: 10px sans-serif; } </style>
<script type="text/javascript" src="USA_data.js"></script>
</head>
@copyleftdevsbl
copyleftdevsbl / Person.rb
Created September 25, 2012 01:28
Ruby: Class Stub
#added file to gist to test sublime blug in
class Person
attr_accessor :name, :age, :job
attr_writer :weight
def greet
"#{@name} says \"Hello\""
end
def work
@copyleftdevsbl
copyleftdevsbl / REF.html
Created September 25, 2012 01:22
HTML: Starting Template
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title></title>
</head>
<body>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
</body>
</html>