Skip to content

Instantly share code, notes, and snippets.

humanized: 'Avg Bid'
modelAttribute: 'bid'
lambda: (val) ->
val = if _.isNumber(val) then '$' + (val/100).format(2) else val
new Handlebars.SafeString "<input class='body-only' type='text' value='" + val + "' />" +
"<span class='head-only'>" + val + "</span>"
.tableHeader
@ChillPenguinX
ChillPenguinX / gist:5337925
Last active December 15, 2015 23:09
tracked_requests.js
State = {
locked: false,
push: function() {
if (State.locked) { return; }
var data = {};
var current_tab = $('#main_tab_list .current-tab');
var suffix = current_tab.attr('search_string');
data['current_tab'] = current_tab.attr('id');
data['exact_match'] = current_tab.attr('exact_match');
@ChillPenguinX
ChillPenguinX / gist:5190871
Created March 18, 2013 21:14
cucumbering
Andrew-Brasuells-MacBook-Pro:tapjoyads abrasuell$ cuc --tags @device_info
Using the default profile...
DEPRECATION WARNING: railtie_name is deprecated and has no effect. (called from require at /Users/abrasuell/.rvm/gems/ruby-1.8.7-p358@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:68)
WARNING: This version of mysql2 (0.3.11) doesn't ship with the ActiveRecord adapter bundled anymore as it's now part of Rails 3.1
WARNING: Please use the 0.2.x releases if you plan on using it in Rails <= 3.0.x
@javascript @device_info @account_manager
Feature: Device Info
As a Tapjoy employee
I want to search devices
So that I can efficiently manage their clicks, apps and rewards
@ChillPenguinX
ChillPenguinX / device_info.feature
Last active December 11, 2015 17:58
Cucumbering the device info page
@javascript
Feature: Device Info
As a Tapjoy employee
I want to search devices
So that I can efficiently manage their clicks, apps and rewards
Scenario: Visiting the "device info" page without a search
When I visit the device info "show" page
Then I should see the "search bar"
And I should not see the "Apps Section"