Skip to content

Instantly share code, notes, and snippets.

View edsrzf's full-sized avatar

Evan Shaw edsrzf

  • Vend
  • Auckland, New Zealand
View GitHub Profile
curl -H "Authorization: OAuth TOKEN" -H "Content-Type: application/json" \
-d '{"push_type":"multicast", "subscribers": [{"url": "http://mysterious-brook-1807.herokuapp.com/ironmq_push_1"}, {"url": "http://mysterious-brook-1807.herokuapp.com/ironmq_push_2"}]}' \
"https://mq-aws-us-east-1.iron.io/1/projects/PROJECT_ID/queues/pushq-demo-1"
@edsrzf
edsrzf / readfq.closure.go
Created October 13, 2012 20:08
read fastq go
package main
import (
"bufio"
"bytes"
"compress/bzip2"
"compress/gzip"
"flag"
"fmt"
"io"
@edsrzf
edsrzf / batching_queue.rb
Created June 13, 2012 02:40 — forked from treeder/batching_queue.rb
Example of queuing up 100 workloads per task
users = User.all
users.each_slice(100) do |users_slice|
puts "Queueing worker..."
worker = NotificationWorker.new
worker.users = users_slice
# set other attributes that your worker needs to run
worker.queue
end