Skip to content

Instantly share code, notes, and snippets.

(function bankicker() {
var all_users = User.all();
// the first character of a username is being replaced
// but not used/written back to the dom??
// var chat = $('.uc');
// chat.each(function() {
// var user = $(this).find('.cun').text();
// user = user.replace(/[^a-zA-Z]/g, '');
// });
for (var i = 0; i < all_users.length; i++) {
@brumm
brumm / flare-imports.json
Created December 5, 2012 12:02 — forked from mbostock/.block
Munky Imports
[{
"name": "Munky.Views.ArticleFull",
"imports": ["Munky.Views.Category", "Munky.Models.Section", "Munky.Collections.Articles", "Munky.Settings.App", "Munky.Settings.Metrics", "Munky.Support.Time", "Munky.Support.Stocks", "Munky.FinApi"]
}, {
"name": "Munky.Views.Video",
"imports": ["Munky.Views.ArticleFull", "Munky.Settings.Metrics", "Munky.Support.Time"]
}, {
"name": "Munky.Views.Homepage",
"imports": ["Munky.Models.Section", "Munky.Collections.Articles", "Munky.Views.BreakingNews", "Munky.Views.Stock", "Munky.Views.Top", "Munky.Views.Stage", "Munky.Views.Focus", "Munky.Views.Special", "Munky.Views.Category", "Munky.Views.VideoSection", "Munky.Views.PhotoshowSection", "Munky.Views.Spinner", "Munky.Collections.Videos", "Munky.Collections.StockPrices", "Munky.Settings.App", "Munky.Settings.Spinner.Messages.Homepage", "Munky.Support.Browser"]
}, {
# -------------------------
# application_controller.rb
# -------------------------
class ApplicationController < ActionController::Base
before_filter :setup_gon
def setup_gon
Gon.global.controller = controller_name
Gon.global.action = action_name
@brumm
brumm / gist:3437594
Created August 23, 2012 15:10
sublime shortcuts
# expand selection to word, create new selection
cmd + d
# skip over a match
cmd + k, d
# expand selection to all matches
cmd + ctrl + g