Skip to content

Instantly share code, notes, and snippets.

View gist:160201
/**
* a file that can be safely reloaded multiple times in the same page view,
* allowing some stuff to run once and some stuff to run every time the
* page is loaded
*/
var myInitiallyFalseThing = false || myInitiallyFalseThing;
(function() {
if (!myInitiallyFalseThing) {
View Rebecca.tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Jacob Rus</string>
<key>comment</key>
<string>Created by Jacob Rus. Based on ‘Slate’ by Wilson Miner</string>
<key>name</key>
<string>RebeccaMurphey</string>
View gist:164940
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
View gist:178938
// some non-working in-theory code
dojo.declare("Tabs", dijit._Widget, {
postCreate:function(){
this.controller = dojo.create("ul");
dojo.place(this.conroller, this.domNode, "before");
this._scanChildren();
},
_scanChildren: function(){
View gist:191449
dojo.provide('myProject.Stars');
dojo.require('dijit._Widget');
dojo.declare('myProject.Stars', dijit._Widget, {
postCreate : function() {
this.stars = dojo.query('div', this.domNode)[0];
this.input = dojo.query('input', this.domNode)[0];
this.hoverConnections = [];
View gist:191451
dojo.provide('myProject.Callouts');
dojo.require('dijit._Widget');
dojo.require('myProject.Services');
dojo.declare('myProject.Callouts', dijit._Widget, {
cache : {},
services : new myProject.Services(),
View gist:191576
dojo.provide('hitpost.ActivityMonitor');
dojo.declare('hitpost.ActivityMonitor', null, {
constructor : function(props) {
this._settings = {
domNode : dojo.body(),
events : [ 'mousemove', 'keypress' ],
allowedInactivePeriods : 3,
periodLength : 15,
View gist:193677
/*
selecting and traversing exercises
- get the third list item (hint: eq())
- change its color to red
- change the color of the rest of the list items to blue
- *without doing another selection*, find the div.module
and remove the class module
View gist:194289
/*
- get the third list item (hint: eq())
- change its color to red
- change the color of the rest of the list items to blue
- *without doing another selection*, find the div.module
and remove the class "module"
$(document).ready(function() {
var $li = $('li').eq(2);
View gist:194296
$(document).ready(function() {
// move the slideshow up to the top
var $slideshow = $('#hero');
$slideshow.prependTo('#main');
// create the counter element
var $counter = $('<div/>')
.insertAfter($slideshow);
// get the items and figure out