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> | |
<head> | |
<meta charset=utf-8> | |
<title></title> | |
<link rel="stylesheet" href="styles.css" /> | |
</head> | |
<body> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | |
</body> |
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
/* image replacement technique */ | |
.ir { | |
border: 0; | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
background-color: transparent; | |
} |
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
/* @paul_irish Pub/Sub | |
Works in modern browsers + IE9 | |
Use Modernizr ployfill for function.bind */ | |
var o = $( {} ); | |
$.subscribe = o.on.bind(o); | |
$.unsubscribe = o.off.bind(o); | |
$.publish = o.trigger.bind(o); |
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
var application_root = __dirname, | |
express = require("express"), | |
path = require("path"), | |
mongoose = require('mongoose'); | |
var app = express.createServer(); | |
// database | |
mongoose.connect('mongodb://localhost/ecomm_database'); |
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
# Generated by TortoiseHg setting dialog | |
[ui] | |
editor = notepad | |
username = <username and email here> | |
ignore = ~/.hgignore | |
merge = beyondcompare3 | |
#merge = diffmerge | |
[diff] |
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
var mongoose = require('mongoose'); | |
module.exports = { | |
} | |
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
### | |
Module dependencies | |
### | |
require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
express = require 'express' | |
app = module.exports = express.createServer() | |
RedisStore = require 'connect-redis' |
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
Windows Registry Editor Version 5.00 | |
// adds a registry entry to add a right-click context menu-option | |
// for a folder so that you can open the folder (it's contents) in sublime in folder view | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\open_with_Sublime] | |
@="Open Folder With Sublime" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\open_with_Sublime\command] | |
@="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\" \"%1\"" |
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
# STEP 0: Declare input parameter | |
Param([switch]$AsDrive) | |
# STEP 1: Define hash for paths | |
$csidl = @{ | |
"Personal" = 0x0005; | |
"LocalAppData" = 0x001c; | |
"InternetCache" = 0x0020; | |
"Cookies" = 0x0021; | |
"History" = 0x0022; |
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
function scan(parent) { | |
var found = {classes: {}, ids: []}; | |
var unexamined = [parent]; | |
while (unexamined.length > 0) { | |
parent = unexamined.pop(); | |
var nodeLength = parent.childNodes.length; | |
for(var i = 0; i < nodeLength; ++i) { | |
node = parent.childNodes[i]; | |
if (node.nodeType != 1) { continue; } |
OlderNewer