Skip to content

Instantly share code, notes, and snippets.

View wyaeld's full-sized avatar
🐣
work in progress

Brad Murray wyaeld

🐣
work in progress
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="https://raw.github.com/timrwood/moment/1.6.0/min/moment.min.js"></script>
<style type="text/css">
#chart-mini {
@wyaeld
wyaeld / index.html
Created January 23, 2013 00:38 — forked from mbostock/.block
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.link {
stroke: #000;
}
.node {
fill: #ccc;
<!DOCTYPE html>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
<style>
/*nodes*/
.node text {
pointer-events: none;
font: 20px sans-serif;
@wyaeld
wyaeld / config.ru.rb
Created January 19, 2012 23:32 — forked from brianmario/config.ru.rb
minimal rails3 app
# minimal rails3 app
require 'action_controller'
Router = ActionDispatch::Routing::RouteSet.new
Router.draw do
root :to => 'site#index'
end
class SiteController < ActionController::Metal
@wyaeld
wyaeld / ArchiveServiceMessagesJob.java
Created November 15, 2011 01:20
DI Style Service
public class ArchiveServiceMessagesJob extends AbstractJob {
private static final int PAGE_SIZE = 10;
private ServiceMessageRepository messageRepository;
private AlfrescoAtomPubClient alfrescoClient;
@Autowired
public ArchiveServiceMessagesJob(ServiceMessageRepository messageRepository,
AlfrescoAtomPubClient alfrescoClient) {
@wyaeld
wyaeld / person_test.rb
Created October 27, 2011 09:46 — forked from tenderlove/person_test.rb
Use minitest/spec with Rails 3
require 'test_helper'
require 'minitest/autorun'
module Tenderlove
class Spec < MiniTest::Spec
include ActiveSupport::Testing::SetupAndTeardown
include ActiveRecord::TestFixtures
alias :method_name :__name__ if defined? :__name__
self.fixture_path = File.join(Rails.root, 'test', 'fixtures')