Skip to content

Instantly share code, notes, and snippets.

@dhoss
dhoss / jruby-jdbc.rb
Created January 26, 2011 06:06
this is how jruby and jdbc-sqlite play together
require 'rubygems'
require 'java'
require 'jdbc/sqlite3'
module JavaLang
include_package "java.lang"
end
module JavaSql
include_package 'java.sql'
@dhoss
dhoss / poo.js
Created February 2, 2011 22:19
penis
(function($){
// This is a lexical scope.
// everything defined as "var" in here will not be global, and will work
// like "my" in Perl.
var repeat_interval, update, update_config, had_sex, had_sex_config;
repeat_interval = 5000;
update_config = {
type: 'GET',
#!/usr/bin/env perl
package App::IJustHadSex;
use Moo;
use Web::Simple __PACKAGE__;
use App::IJustHadSex::Schema;
use Config::JFDI;
use Template;
@dhoss
dhoss / check_postgres_replication.py
Created September 6, 2011 17:57 — forked from jacobian/check_postgres_replication.py
Nagios plugin to check PostgreSQL 9 streaming replication lag.
#!/usr/bin/env python
"""
Nagios plugin to check PostgreSQL 9 streaming replication lag.
Requires psycopg2 and nagiosplugin (both installable with pip/easy_install).
MIT licensed:
Copyright (c) 2010 Jacob Kaplan-Moss. All rights reserved.
@dhoss
dhoss / gist:1223383
Created September 16, 2011 23:12 — forked from jshirley/gist:1223273
package MyApp::Web::Model::DataManager;
use Moose;
use Email::Valid;
extends 'Catalyst::Model';
with 'Catalyst::Component::InstancePerContext';
my $email_filter = sub {
@dhoss
dhoss / Model
Created September 19, 2011 18:36 — forked from anonymous/gist:1227212
package PerlFu::Web::Model::Validator;
use Moose;
use namespace::autoclean;
use Data::Manager;
use Data::Verifier;
use Data::Dumper;
use Carp qw( croak );
extends 'Catalyst::Model';
with 'Catalyst::Component::InstancePerContext';
package PerlFu::Web::Model::Validator::Post;
use Moose;
use namespace::autoclean;
extends 'PerlFu::Web::Model::Validator';
sub _build_profiles {
my $self = shift;
return {
title => {
Resume/CV
Devin Austin
[email protected]
970-290-6669
Summary: I am a web software developer.

Resume/CV

Devin Austin

[email protected]

970-290-6669

Summary: I am a web software developer.

package MyApp::DataManager;
use Moose;
extends 'Data::Manager';
has 'scope_to_resultsource' => (
is => 'ro',
isa => 'HashRef',
required => 1,