Skip to content

Instantly share code, notes, and snippets.

View mroswell's full-sized avatar

Marjorie Roswell mroswell

View GitHub Profile
@mroswell
mroswell / gist:5008947
Created February 21, 2013 22:27
Research Notes
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">
<scene id="scene1">
<label t="translate(0,346)">
250,0,0
5
254,242,0
5
0,255,0
5
0,0,255
5
255,0,255
5
@mroswell
mroswell / notes-django
Created July 30, 2013 14:04
notes while learning django
python manage.py runserver 0.0.0.0:3000
@mroswell
mroswell / notes-django
Last active December 20, 2015 10:09
notes while learning django
"import django; print(django.get_version())"
$ python -c "import sys; sys.path = sys.path[1:]; import django; print(django.__path__)"
python -c "
import sys
sys.path = sys.path[1:]
import django
print(django.__path__)"
django is located in: /home/action/.local/lib/python2.7/site-packages/django
@mroswell
mroswell / gist:7651796
Created November 26, 2013 01:08
backbone-reference.html
<html>
<head><title>backbone reference csv</title></head>
<body>
<table>
<tr><th>object</th><th>objdescript</th><th>method</th><th>code</th><th>description</th></tr>
<tr><td>Events</td><td> Bind and trigger custom named events</td><td>on</td><td>object.on(event, callback, [context])[context])</td><td>Bind a callback function to an object.</td></tr>
<tr><td>Events</td><td>Bind and trigger custom named events</td><td>off</td><td>object.off([event], [callback], [context])</td><td>Remove a previously-bound callback function from an object.</td></tr>
<tr><td>Events</td><td>Bind and trigger custom named events</td><td>trigger</td><td>object.trigger(event, [*args])</td><td>Trigger callbacks for the given event, or space-delimited list of events.</td></tr>
<tr><td>Events</td><td>Bind and trigger custom named events</td><td>once</td><td></td><td></td></tr>
<tr><td>Model</td><td>Models contain the data, logic, conversations, validatations, computed properties, and access control
@mroswell
mroswell / network.js
Last active December 30, 2015 06:49
social network
friendNetwork = [
{ Tom: ["Mary", "Adam", "Brian"]},
{ Mary: ["Tom", "Jane", "Adam", "Elizabeth", "Brian", "Mary"]},
{ Jane: ["Mary", "Peter", "Kimberly", "Emily", "Laura"]},
{ Adam: ["Mary", "Tom", "Karen"]},
{ Peter: ["Mary", "Jane"]},
{ Elizabeth: ["Jennifer", "Mary"]},
{ Jennifer: ["Elizabeth"]},
{ Linda: ["Barbara"]},
{ Barbara: ["Barbara" ]},
@mroswell
mroswell / gist:7809304
Created December 5, 2013 17:08
social-graph.js
var VIZ = {};
VIZ.w = 700;
VIZ.h = 400;
friendNetwork = [
{ "Tom": ["Mary", "Adam", "Brian"]},
{ "Mary": ["Tom", "Jane", "Adam", "Elizabeth", "Brian", "Mary"]},
{ "Jane": ["Mary", "Peter", "Kimberly", "Emily", "Laura"]},
{ "Adam": ["Mary", "Tom", "Karen"]},
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.