Skip to content

Instantly share code, notes, and snippets.

David Souther DavidSouther

Block or report user

Report or block DavidSouther

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@DavidSouther
DavidSouther / functional_tests.py
Created Sep 18, 2016
Obey the Testing Goat on Nitrous
View functional_tests.py
from pyvirtualdisplay import Display
from selenium import webdriver
display = Display(visible=0, size=(800, 600))
display.start()
browser = webdriver.Firefox()
browser.get('http://www.google.com')
print browser.title
browser.quit()
View noaa_recent.html
<!DOCTYPE html>
<html>
<head>
<title>NOAA GOES NA Recent</title>
<style>
body {
margin: 0;
}
.container {
@DavidSouther
DavidSouther / .db.json
Created Nov 14, 2015
Sample archives database
View .db.json
{"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
View gist:9d75ff760af7491ce974
{
"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 / drag-directive.js
Last active Sep 3, 2015
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.
View drag-directive.js
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
Created Sep 3, 2015
A hastily sanitized demo of a Draggable directive.
View drag-directive.js
var log = debug('draggable');
function Draggable(element, scope){
var apply;
if(scope.$apply){
apply = function(fn){
return function(){
var context = this;
var args = arguments;
View app.js
var config = {
name: 'rupert-auth-example',
hostname: 'localhost',
stassets: {
root: './src/client'
},
server: {
root: './src/server'
},
mongo: {
@DavidSouther
DavidSouther / app.js
Created Jun 10, 2015
Rupert Plugins (Mongo) example
View app.js
var config = {
name: 'rupert-basic-example',
stassets: {
root: './src/client'
},
server: {
root: './src/server'
}
};
@DavidSouther
DavidSouther / app.js
Last active Aug 29, 2015
Rupert API Example
View app.js
var config = {
name: "rupert-api-example",
stassets: {
root: './src/client'
},
server: {
root: './src/server'
}
};
@DavidSouther
DavidSouther / app.js
Created Jun 9, 2015
Rupert Basic Example
View app.js
var config = {
name: "rupert-basic-example",
stassets: {
root: './src/client'
}
};
require('rupert')(config).start();
You can’t perform that action at this time.