Skip to content

Instantly share code, notes, and snippets.

@jmonegro
jmonegro / post_submit.html
Created May 1, 2015 16:54
old forms in telescope
<template name="post_submit">
<div class="grid submit">
<form class="grid-block form-horizontal">
<div class="control-group">
<label class="control-label">{{i18n "url"}}</label>
<div class="controls"><input id="url" type="text" value="" /></div>
</div>
<div class="control-group">
<label class="control-label">{{i18n "title"}}</label>
<div class="controls"><input id="title" type="text" value="" /><a href="#" class="get-title-link inline-link">{{i18n "suggest_title"}}</a></div>

Keybase proof

I hereby claim:

  • I am jmonegro on github.
  • I am jmonegro (https://keybase.io/jmonegro) on keybase.
  • I have a public key whose fingerprint is 5ED1 8AA6 F181 9AA3 E8DB 24BE B6C0 BDBF EFBE C45B

To claim this, I am signing this object:

Verifying that +jmonegro is my Bitcoin username. You can send me #bitcoin here: https://onename.io/jmonegrov
#background h1, #background h2 {text-shadow: 0 0 5px rgba(0,0,0,.3)}
@jmonegro
jmonegro / balance_entry.rb
Created February 10, 2014 22:18 — forked from forkfight/balance_entry.rb
I want to manage the finances of an account with methods for crediting, debiting, and determining the balance of said account. I'd like for a better way of handling this.
class BalanceEntry < ActiveRecord::Base
belongs_to :user
# attributes: kind (debit or credit), source (stripe, paypal, bank transfer, etc.), amount (positive or negative float), verified (boolean)
after_create :perform_transaction
def perform_transaction
# withdraw or deposit on Stripe, Paypal, etc.
end
@jmonegro
jmonegro / balance_entry.rb
Created February 10, 2014 21:09 — forked from forkfight/balance_entry.rb
I want to manage the finances of an account with methods for crediting, debiting, and determining the balance of said account. I'd like for a better way of handling this.
class BalanceEntry < ActiveRecord::Base
belongs_to :user
# attributes: kind (debit or credit), source (stripe, paypal, bank transfer, etc.), amount (positive or negative float), verified (boolean)
after_create :perform_transaction
def perform_transaction
# withdraw or deposit on Stripe, Paypal, etc.
end
@jmonegro
jmonegro / balance_entry.rb
Created February 10, 2014 21:09 — forked from forkfight/balance_entry.rb
I want to manage the finances of an account with methods for crediting, debiting, and determining the balance of said account. I'd like for a better way of handling this.
class BalanceEntry < ActiveRecord::Base
belongs_to :user
# attributes: kind (debit or credit), source (stripe, paypal, bank transfer, etc.), amount (positive or negative float), verified (boolean)
after_create :perform_transaction
def perform_transaction
# withdraw or deposit on Stripe, Paypal, etc.
end
@jmonegro
jmonegro / bumble.rb
Last active August 29, 2015 13:56
Noodle noodle piece of shroodle
def method(args); return args; end
@jmonegro
jmonegro / forkfight_#.md
Created February 10, 2014 18:02
Currently this takes ~1200ms to run per record, which times out on Heroku after roughly 20 items, whereas I have 1800 in the database.

Improve the performance of this ActiveRecord query

@jmonegro
jmonegro / forkfight_#.md
Created February 10, 2014 17:11
I need to lorem ipsum up in here

Return 10,000 randomized records in less than 500ms