Skip to content

Instantly share code, notes, and snippets.

View DavidSouther's full-sized avatar
💭
You can statistics syntax, not semantics.

David Souther DavidSouther

💭
You can statistics syntax, not semantics.
View GitHub Profile
<!DOCTYPE html>
<head>
<title>QUnit Test Page</title>
<link rel="stylesheet" href="libs/qunit-1.12.0.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="libs/qunit-1.12.0.js"></script>
</body>
@DavidSouther
DavidSouther / app.js
Created June 9, 2015 00:17
Rupert Basic Example
var config = {
name: "rupert-basic-example",
stassets: {
root: './src/client'
}
};
require('rupert')(config).start();
@DavidSouther
DavidSouther / app.js
Last active August 29, 2015 14:22
Rupert API Example
var config = {
name: "rupert-api-example",
stassets: {
root: './src/client'
},
server: {
root: './src/server'
}
};
@DavidSouther
DavidSouther / app.js
Created June 10, 2015 01:32
Rupert Plugins (Mongo) example
var config = {
name: 'rupert-basic-example',
stassets: {
root: './src/client'
},
server: {
root: './src/server'
}
};
var config = {
name: 'rupert-auth-example',
hostname: 'localhost',
stassets: {
root: './src/client'
},
server: {
root: './src/server'
},
mongo: {
@DavidSouther
DavidSouther / drag-directive.js
Created September 3, 2015 17:04
A hastily sanitized demo of a Draggable directive.
var log = debug('draggable');
function Draggable(element, scope){
var apply;
if(scope.$apply){
apply = function(fn){
return function(){
var context = this;
var args = arguments;
@DavidSouther
DavidSouther / drag-directive.js
Last active September 3, 2015 17:20
An Angular 1.x dragging directive. The drag directive has several callback attributes available, the main being drag itself. For every drag event, the component has an opportunity to update itself.
var log = debug('draggable');
function Draggable(element, scope){
var apply;
if(scope.$apply){
apply = function(fn){
return function(){
var context = this;
var args = arguments;
{
"name": "...",
"version": "...",
"description": "KTVQ Video Archive Management.",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"repository": {
"type": "git",
"url": "git@github.com:DavidSouther/rupert.git"
},
@DavidSouther
DavidSouther / .db.json
Created November 14, 2015 14:10
Sample archives database
{"tape_1":{"label":"Tape 1","family":"tapes","medium":"3/4\" Tape","notes":"","stories":[{"slug":"Slug 1","date":"2015-11-07T00:17:32.806Z","format":"Unknown","runtime":"0:00","notes":"","reporter":"Unknown","photographer":"Unknown"},{"slug":"Slug 1","date":"2015-11-07T00:17:32.806Z","format":"Unknown","runtime":"0:00","notes":"","reporter":"Unknown","photographer":"Unknown"},{"slug":"Slug 1","date":"2015-11-07T00:17:32.806Z","format":"Unknown","runtime":"0:00","notes":"","reporter":"Unknown","photographer":"Unknown"},{"slug":"Slug 1","date":"2015-11-07T00:17:32.806Z","format":"Unknown","runtime":"0:00","notes":"","reporter":"Unknown","photographer":"Unknown"},{"slug":"Slug 1","date":"2015-11-07T00:17:32.806Z","format":"Unknown","runtime":"0:00","notes":"","reporter":"Unknown","photographer":"Unknown"},{"slug":"Slug 1","date":"2015-11-07T00:17:32.806Z","format":"Unknown","runtime":"0:00","notes":"","reporter":"Unknown","photographer":"Unknown"},{"slug":"Slug 1","date":"2015-11-07T00:17:32.806Z","format":"Unkn
<!DOCTYPE html>
<html>
<head>
<title>NOAA GOES NA Recent</title>
<style>
body {
margin: 0;
}
.container {