Skip to content

Instantly share code, notes, and snippets.

@timraymond
timraymond / gist:3cd1f91c5117970ef21d0b30ee71fc88
Created November 7, 2023 15:23
Dover Election 2023 Transcript
Audio file
output.mp3
Transcript
Good evening, ladies and gentlemen. Welcome to our candidates forum hosted by New Hampshire listens. And the Greater Dover Chamber of Commerce. I'm Don Bryant. I will serve as the moderator for this evening's event. Bill Baber from Dover listens will serve as our time keeper for this evening. We want to thank all of the candidates for their willingness to run for public office. And thanks you, everyone who has turned out this evening. And also those who are viewing via channel 22. And Please note that tonight's session is being recorded and will be played back numerous times before the Tuesday election. As you know, Dover is having the 2023 municipal election on Tuesday, November 7th. Please visit the cities municipal elections page at www.dover.nh. Dot Gov for all of the polling, locations and times. In addition to City Council, we are also voting for mayor, school board and the various positions in each ward that manage the elections, including the supervisors of th
@timraymond
timraymond / gist:f41177fc8f12ed229332ed9283865729
Created November 11, 2020 00:39
A minimal test / build action for Go
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
@timraymond
timraymond / weather.json
Created April 14, 2017 00:26
Grafana Dashboard for displaying weather information supplied by Weewx
{
"id": 1,
"title": "Wild View Weather",
"tags": [],
"style": "dark",
"timezone": "browser",
"editable": true,
"hideControls": false,
"sharedCrosshair": false,
"rows": [
@timraymond
timraymond / football.rb
Created June 16, 2015 21:03
Generates all possible football goal sequences leading to a score of 21
def football(results, trace, sum, roots, nodes)
results_p = results.dup
if sum < 0
return results_p
elsif sum == 0
return results_p << trace
else
nodes_p = nodes.dup
roots.each {|rt| nodes_p << rt } # push each root on the node stack
while r = nodes_p.pop
@timraymond
timraymond / replay.rb
Created June 9, 2015 20:04
Replay Heroku Logs
require 'time'
require 'thread'
require 'uri'
require 'pry'
filename = ARGV.shift
if !filename
puts "Specify a filename"
exit(1)
@timraymond
timraymond / sum.rb
Created June 5, 2015 15:14
Possible expressions involving the digits 1-9 and operators "-" and "+"
def expressions(nums)
first, second = nums.slice(0, nums.length/2), nums.slice(nums.length/2, nums.length)
if first == ""
return [second]
end
left_sub = expressions(first)
right_sub = expressions(second)
exprs = []
left_sub.each do |l|
right_sub.each do |r|
@timraymond
timraymond / ie9compatiblexhradapter.js
Created May 18, 2015 16:12
IE9 Compatible XHR Adapter
/**
* Connection class to use with the elasticsearch.js client for limited compatibility with
* IE 9 (also IE 8 is you include an es5 shim like https://github.com/es-shims/es5-shim).
*
* All connections from the browser, directly to elasticsearch, are assumed to be cross-domain
* and therefore suffer from a lack of support in legacy browsers. To prevent the client from
* behaving differently based on the browser version, the following limitations have been imposed
* on all requests:
*
* - only GET and POST are supported
@timraymond
timraymond / Gemfile
Created May 1, 2015 19:15
CanCan Benchmark
source 'http://rubygems.org'
gem 'cancancan', path: "~/github/cancancan"
gem 'allocation_tracer'
gem 'benchmark-ips'
@timraymond
timraymond / git-recent
Created August 19, 2014 13:47
Recent Branches
#!/bin/bash
git for-each-ref --format="%(committerdate:relative) | %(refname)" --sort=-committerdate refs/heads | sed '/master/d' | head -n 10
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.5.2
New app detected loading default bundler cache
!
! Command: 'set -o pipefail; curl --fail --retry 3 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0-p481-default-cache.tgz -s -o - | tar zxf -' failed unexpectedly:
!
! gzip: stdin: unexpected end of file
! tar: Child returned status 1
! tar: Exiting with failure status due to previous errors