Skip to content

Instantly share code, notes, and snippets.

@ericcj
ericcj / autojoin.user.js
Last active November 14, 2017 21:18 — forked from ezza/autojoin.user.js
G+ Hangouts Autojoin without setTimeout leak
// ==UserScript==
// @name G+ Hangouts Autojoin
// @description Automatically click the join button when loading a hangout
// @include https://plus.google.com/hangouts/_/*
// @match https://plus.google.com/hangouts/_/*
// @version 0.1.0
// ==/UserScript==
(function(){
@ericcj
ericcj / README.md
Last active December 20, 2023 15:41 — forked from siannopollo/README.md
Pluck in batches

pluck_in_batches

Sometimes you need to iterate over a ton of items and you don't want the overhead of creating AR objects out of all of them. Hell, you only need a few things! Well, #pluck has your back.

But what if you want to iterate over many tonnes of items?

Pluck in batches to the rescue!

This fork works on any orderable primary key not just integers just like http://api.rubyonrails.org/classes/ActiveRecord/Batches.html#method-i-find_in_batches