This file contains 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
<div id="exercise" class="yui3-g"> | |
<div class="yui3-u-1-2"> | |
<h3>Group A</h3> | |
<ul id="groupA"> | |
<li>Steven Tyler</li> | |
<li>Joe Perry</li> | |
<li>Brad Whitford</li> | |
<li>Tom Hamilton</li> | |
</ul> | |
</div> |
This file contains 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
$(document).bind("scroll", function (e) { | |
scrolling = true; | |
}); | |
setInterval(function () { | |
if (scrolling) { | |
//console.profile("scroll"); | |
scrolling = false; | |
var temp_top = win.scrollTop(), | |
down = scroll_top - temp_top < 0 ? true : false, |
This file contains 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
<article class="post"> | |
<header> | |
<h1>Google Plus: Success and Failure</h1> | |
</header> | |
<footer> | |
<h2>TL. DR.</h2> | |
<p>I won't use Google Plus (right now), because it doesn't fill a need | |
in my social web sharing.</p> | |
<h2>Meta</h2> |
This file contains 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
var MyObject = function (state) { | |
this._state = state; | |
} | |
MyObject.prototype.setState = function (state) { | |
this._state = state; | |
}; | |
MyObject.prototype.addState = function (state) { | |
if (typeof this._state === "string") { | |
this._state = [this._state, state]; | |
} else { |
This file contains 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
-- Add file to Dropbox Script | |
-- Andrew Burgess, modified a bit from http://www.bencardy.co.uk/blog/dropbox-applescript/ | |
-- You'll have to change the first part of your Dropbox URL, in the filePath variable | |
-- Also, make sure the myPath variable points in the right direction | |
on splitText(delimiter, someText) | |
set prevTIDs to AppleScript's text item delimiters | |
set AppleScript's text item delimiters to delimiter | |
set output to text items of someText |
This file contains 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
#! /bin/sh | |
d=$(date) | |
jsdev <test.js >test.dev.js code equal:areEqual -comment "Development Version" -comment "Built: $d" | |
node test.dev.js |
This file contains 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
CREATE DATABASE intrepid_detectives; | |
USE intrepid_detectives; | |
CREATE TABLE detectives( | |
id INTEGER NOT NULL AUTO_INCREMENT, | |
first_name VARCHAR(50), | |
last_name VARCHAR(50) NOT NULL, | |
phone_number VARCHAR(10) NOT NULL, | |
certification_date DATE NOT NULL, | |
CONSTRAINT detectives_pk PRIMARY KEY (id) |
This file contains 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
> v | |
v,,,,,,,,,,,,,,,,,,,,"Welcome to Coin Toss"< | |
>52*, v | |
v"Type H or T to choose heads or tails:"< | |
>,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,v | |
v `*8*52~ < | |
v ? v | |
v_v ^ v_v | |
> v < | |
v < |
This file contains 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
CREATE DATABASE profs; | |
USE profs; | |
CREATE TABLE professors ( | |
name varchar(30) NOT NULL, | |
specialization varchar(20), | |
salary double(8,2), | |
CONSTRAINT prof_pk PRIMARY KEY (name)); | |
CREATE TABLE students ( |
This file contains 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
1v >"zzuBzziF" ,,,,,,,,$v | |
>>::35*%!| >"zzuB" ,,,,$v | |
>:5%!| >"zziF",,,,$v | |
|%+1*:*25:+1< >:3%!| | |
@ . | |
^ ,*25< < |