Skip to content

Instantly share code, notes, and snippets.

var getAttrs = function(els, attr) {
return jQuery.map(els, function(el) { return jQuery(el).attr(attr); });
};
var getStarters = function() {
var els = jQuery('.MyLineup > table').not('.SitTable').find('tbody > tr > td > a.fpIcon');
var getPlayerName = function(str) {
return str.match(/(\w+)-(\w+)\.php$/).slice(1).join('-');
};
@wstrinz
wstrinz / GeoLocation.js
Last active October 23, 2015 20:41
Native geolocation with elm
Elm.Native.GeoLocation = {};
Elm.Native.GeoLocation.make = function(localRuntime) {
localRuntime.Native = localRuntime.Native || {};
localRuntime.Native.GeoLocation = localRuntime.Native.GeoLocation || {};
if (localRuntime.Native.GeoLocation.values){
return localRuntime.Native.GeoLocation.values;
}
var Task = Elm.Native.Task.make(localRuntime);
@wstrinz
wstrinz / LICENSE
Last active September 3, 2015 16:00 — forked from myronmarston/LICENSE
(The MIT License)
Copyright (c) 2012-2013 Myron Marston
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ws: <http://onto.strinz.me/> .
@prefix ws_cat: <http://onto.strinz.me/categories/> .
@prefix ws_pred: <http://onto.strinz.me/predicates/> .
@prefix ws_tag: <http://onto.strinz.me/tags/> .
<http://erichermit.itch.io/earth-tongue> a ws_cat:Game ;
ws_pred:tag ws_tag:to_watch .
/usr/local/bin/pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
@wstrinz
wstrinz / makepr.rb
Last active August 29, 2015 14:10
Create pull request for current branch, post a link the the pivotal story, and mark it as finished
#!/usr/bin/env ruby
require 'octokit'
require 'tracker_api'
require 'git'
require 'active_support'
class Worder
extend ActiveSupport::Inflector
end
http://www.deancare.com/app/files/public/3272/pdf-InsuranceServices-medical-claim-form.pdf
@wstrinz
wstrinz / pomegranate.clj
Created June 12, 2014 21:47
how to pomegranate
(ns foo.bar
(:require [cemerick.pomegranate :as pom]))
(comment
"## Development workspace"
(pom/add-dependencies :coordinates '[[http-kit "2.1.18"]]
:repositories {"clojars" "http://clojars.org/repo"})
(pom/add-dependencies :coordinates '[[cheshire "5.3.1"]]
:repositories {"clojars" "http://clojars.org/repo"})
require 'publisci'
include PubliSci::DSL
data do
source 'https://github.com/wstrinz/publisci/raw/master/spec/csv/bacon.csv'
dimension 'producer', 'pricerange'
measure 'chunkiness'
option :base_url, 'http://example.org'
libs = [
'javascripts/lib/underscore.js',
'javascripts/lib/jquery.js',
'javascripts/lib/json2.js',
'javascripts/lib/backbone.js',
'javascripts/lib/backbone.marionette.js'
]