Skip to content

Instantly share code, notes, and snippets.

View qrush's full-sized avatar
🕸️
Making internets

Nick Quaranto qrush

🕸️
Making internets
View GitHub Profile
@qrush
qrush / Inconsolata-dz-Powerline.otf
Created January 11, 2012 16:50
vim-powerline patched fonts
@qrush
qrush / gist:5301799
Created April 3, 2013 14:41
spring clean your git repos!
# remove any bad refs
git remote prune origin
# pipe into bash and auto-delete any branches that have been merged into master!
git log master --pretty=format:'%d' | grep '^ (origin' | tr -d ' ()' | sed 's/origin\//git push origin :/'
# This is a shell archive. Remove anything before this line, then
# unpack it by saving it in a file and typing "sh file". (Files
# unpacked will be owned by you and have default permissions.)
#
# This archive contains:
# Makefile ping.1 ping.c ping.shar newping.1 newping.c
echo x - Makefile
cat > "Makefile" << '//E*O*F Makefile//'
# Revised to compile under SunOS 4.1.x (no longer necessary to install
class Test::Unit::TestCase
# assert_form posts_url, :put do
# assert_text_field :post, :title
# assert_text_area :post, :body
# assert_submit
# end
def assert_form(url, http_method = :post)
http_method, hidden_http_method = form_http_method(http_method)
assert_select "form[action=?][method=#{http_method}]", url do
if hidden_http_method
@qrush
qrush / gist:4677292
Created January 30, 2013 21:36
top 1000 gem names with created date
This file has been truncated, but you can view the full file.
thor-0.17.0 2013-01-24 00:52:16 UTC
thor-0.16.0 2012-08-14 02:09:44 UTC
thor-0.15.4 2012-06-29 13:23:54 UTC
thor-0.14.4 2010-11-04 12:44:19 UTC
thor-0.13.3 2010-02-17 15:29:50 UTC
thor-0.15.2 2012-05-07 00:28:10 UTC
thor-0.9.8 2009-07-25 17:49:47 UTC
thor-0.9.6 2009-07-25 17:49:48 UTC
thor-0.9.7 2009-07-25 17:49:47 UTC
thor-0.14.2 2010-09-24 19:00:54 UTC
@qrush
qrush / 1_intro_to_canvas.md
Last active December 28, 2021 14:48
Canvas tutorial for a high school programming class. Examples and many images based directly off Mozilla's canvas tutorial. Exercises are heavily inspired by it but very different and meant to be done side-by-side. Fork the exercise on Codepen, complete it, and move on! https://developer.mozilla.org/en-US/docs/Canvas_tutorial
@qrush
qrush / PULL_REQUEST_TEMPLATE.md
Created March 24, 2020 13:23
Semantic Commit-Based Pull Request Template
feat (VideoComponent): Allow downloading as a GIF
fix (Billing): Don't allow freeloaders to freeload so much
docs (changes to documentation)
style (formatting, missing semi colons, etc; no code change)
refactor (refactoring production code)
test (adding missing tests, refactoring tests; no production code change)
chore (updating grunt tasks etc; no production code change)
@qrush
qrush / application_job.rb
Last active March 31, 2020 01:38
Use Honeycomb to trace ActiveRecord calls inside of ActiveJob
class ApplicationJob < ActiveJob::Base
around_perform do |job, block|
Honeycomb.start_span(name: job.class.name) do |span|
span.add_field 'type', 'worker'
span.add_field 'queue.name', job.queue_name
block.call
end
end
end
Oct 3rd, 2012
Severance Hall
Cleveland, OH
Oct 4th, 2012
Minneapolis Convention Center
Minneapolis, MN
Oct 5th, 2012
Minneapolis Convention Center
@qrush
qrush / index.js
Created May 30, 2018 17:27 — forked from marianmoldovan/index.js
AWS Polly Lambda API
'use strict';
const aws = require('aws-sdk');
const s3 = new aws.S3({ apiVersion: '2006-03-01' });
const polly = new aws.Polly({region: 'eu-west-1'});
const md5 = require('md5');
const request = require('request');
var params = {
OutputFormat: 'mp3',
Text: 'Hola',