Skip to content

Instantly share code, notes, and snippets.

View clintjhill's full-sized avatar

Clint Hill clintjhill

View GitHub Profile
'use strict';
if(process.env.NODE_ENV === 'production'){
require('newrelic');
}
const basicAuth = require('basic-auth');
const bodyParser = require('body-parser');
const express = require('express');
const expressHandlebars = require('express-handlebars');
const serveIndex = require('serve-index');
const session = require('express-session');
@clintjhill
clintjhill / chill.asserts
Created March 11, 2012 22:44
HitchJS Asserts selector filters
/**
{
"title": "Assert Filters",
"type": "selector",
"description": "Provides ways to select nodes based on assertions against their structure and/or contents.",
"package": "chill.asserts",
"version": "1"
}
==========
<h2>Assert pseudo-class filters</h2>
@clintjhill
clintjhill / chill.text
Created February 29, 2012 18:59
HitchJS -text-contains selector filter
/**
{
"title": "Text Filters",
"type": "selector",
"description": "Provides pseudo-classes for selecting elements based on the text they contain",
"package": "chill.text",
"version": "1"
}
==========
<h2>Text pseudo-class filters</h2>
@clintjhill
clintjhill / math-plugins.html
Created January 19, 2012 21:15 — forked from bkardell/math-plugins.html
A dumb math plugin
<html>
<head>
<link rel="stylesheet"
type="text/css"
href="http://69.54.28.122/describe.css" />
</head>
<body>
<h1>Math Filters Level 1 (<script type="text/javascript">document.write(window.location.href.replace(/.html/,'.js').replace('http://69.54.28.122:8081/describe?u=',''));</script>)</h1>
<h2>Math pseudo-class filters</h2>
<p>Math psudeo-classes provide a mechanism to select elements based on the
@clintjhill
clintjhill / auth.js
Created July 23, 2011 19:29
Multi-compile Mongoose Model/Schema
/*
auth.js
Auth schema added to model schema. This module requires a model
file and gets the schema, then applies new attributes, methods etc.
*/
var mongoose = require('mongoose'),