This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="wrapper"> # needed for iScroll | |
<div id="container"> # needed for iScroll | |
<div id="results"> | |
# In CSS: | |
#wrapper { position: absolute; top: 40px; bottom: 70px; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In updates.html.erb | |
<%= render @attachments %> | |
<%= will_paginate(@attachments) %> | |
<%= pageless(@attachments.total_pages, attachments_path) %> | |
# In application_helper.rb | |
def pageless(total_pages, url=nil, container=nil) | |
opts = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nav> | |
<ul> | |
<li class="active">About</li> |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
` | |
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems.rb:1082 - cannot load such file -- rubygems/defaults/operating_system | |
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems.rb:1091 - cannot load such file -- rubygems/defaults/ruby | |
Exception `Errno::EEXIST' at /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/fileutils.rb:245 - File exists - /var/www/site_a/shared/bundle/ruby/2.0.0 | |
/usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/openssl/ssl.rb:101: warning: assigned but unused variable - id | |
Exception `Gem::GemNotFoundException' at /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems.rb:264 - can't find gem bundler (["1.3.5"]) | |
Puma starting in single mode... | |
* Version 2.5.1, codename: Astronaut Shoelaces | |
* Min threads: 0, max threads: 16 | |
* Environment: production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1] pry(main)> Remote.upload_new_ads | |
User Load (2.2ms) SELECT "users".* FROM "users" WHERE "users"."deleted_at" IS NULL AND "users"."email" = '[email protected]' LIMIT 1 | |
(1.8ms) SELECT COUNT(*) FROM "campaigns" WHERE "campaigns"."deleted_at" IS NULL AND "campaigns"."remote_token" = 'iconpeak:offer:id:3041' AND "campaigns"."user_id" = 9 | |
(0.6ms) SELECT COUNT(*) FROM "campaigns" WHERE "campaigns"."deleted_at" IS NULL AND "campaigns"."remote_token" = 'iconpeak:offer:id:3043' AND "campaigns"."user_id" = 9 | |
(0.4ms) SELECT COUNT(*) FROM "campaigns" WHERE "campaigns"."deleted_at" IS NULL AND "campaigns"."remote_token" = 'iconpeak:offer:id:3045' AND "campaigns"."user_id" = 9 | |
(0.4ms) SELECT COUNT(*) FROM "campaigns" WHERE "campaigns"."deleted_at" IS NULL AND "campaigns"."remote_token" = 'iconpeak:offer:id:3789' AND "campaigns"."user_id" = 9 | |
(0.4ms) SELECT COUNT(*) FROM "campaigns" WHERE "campaigns"."deleted_at" IS NULL AND "campaigns"."remote_token" = 'iconpeak:offer:id:456' AND "campaigns". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ad Exists (0.3ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = '4ZtEljXbnF1iH4n5asJ' AND "ads"."id" != 2641) LIMIT 1 | |
Command :: file -b --mime '/var/folders/wj/v9wrwtk97g7dk5f7dq2fqc3w0000gn/T/81218b71cefab7edd8c6104d02a0717420141220-67591-1fpsy0e.jpg' | |
SQL (3.3ms) INSERT INTO "campaigns" ("brand_content_type", "brand_file_name", "brand_file_size", "brand_updated_at", "cap", "cpa_units", "created_at", "default_url", "description", "ends_at", "max_daily_spent_units", "preview_url", "remote_token", "scheduled", "strategy", "title", "token", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19) RETURNING "id" [["brand_content_type", "image/jpeg"], ["brand_file_name", "E4k.jpg"], ["brand_file_size", 3555], ["brand_updated_at", "2014-12-20 23:19:13.633721"], ["cap", 100], ["cpa_units", 130000], ["created_at", "2014-12-20 23:25:37.730464"], ["default_url", "http://ads.iconpeak.com/aff_c?offer_id=3041&aff_id=1598&source={report_id}"], ["des |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"."token" = 'NltNKFgvPDLblVI9Wrm' AND "ads"."id" != 6438) LIMIT 1 | |
Ad Exists (0.3ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = '35_tEXBbA7TA7q8KD2o' AND "ads"."id" != 6439) LIMIT 1 | |
Ad Exists (0.3ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = '9pS4kVgSv7ADQeiQU7n' AND "ads"."id" != 6440) LIMIT 1 | |
Ad Exists (0.3ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = 'SGYYgNzAHkHHhGe8sw9P' AND "ads"."id" != 6441) LIMIT 1 | |
Command :: file -b --mime '/var/folders/wj/v9wrwtk97g7dk5f7dq2fqc3w0000gn/T/81218b71cefab7edd8c6104d02a0717420141221-15854-174mazv.jpg' | |
SQL (1.3ms) INSERT INTO "campaigns" ("brand_content_type", "brand_file_name", "brand_file_size", "brand_updated_at", "cap", "cpa_units", "created_at", "default_url", "description", "ends_at", "max_daily_spent_units", "preview_url", "remote_token", "scheduled", "strategy", "title", "token", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19) RETURNING "id" [["brand_co |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Command :: file -b --mime '/var/folders/wj/v9wrwtk97g7dk5f7dq2fqc3w0000gn/T/81218b71cefab7edd8c6104d02a0717420141221-15854-3yjd5x.jpg' | |
SQL (1.9ms) INSERT INTO "campaigns" ("brand_content_type", "brand_file_name", "brand_file_size", "brand_updated_at", "cap", "cpa_units", "created_at", "default_url", "description", "ends_at", "max_daily_spent_units", "preview_url", "remote_token", "scheduled", "strategy", "title", "token", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19) RETURNING "id" [["brand_content_type", "image/jpeg"], ["brand_file_name", "E4k.jpg"], ["brand_file_size", 3555], ["brand_updated_at", "2014-12-21 17:19:39.749057"], ["cap", 200], ["cpa_units", 45000], ["created_at", "2014-12-21 17:24:22.812247"], ["default_url", "http://ads.iconpeak.com/aff_c?offer_id=3043&aff_id=1598&source={report_id}"], ["description", "Users construct fortresses to last for eternity, capture outposts and establish a flourishing economy.\r\n\r\nSign U |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ad Exists (0.6ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = '2_DMaX1UyMLA5wU361MC' AND "ads"."id" != 8764) LIMIT 1 | |
Ad Exists (0.4ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = 'iFLu3iBfkKXhXAk1eLZ1' AND "ads"."id" != 8765) LIMIT 1 | |
Ad Exists (0.3ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = 'sJd6fCM1dmM_ujgnWwny' AND "ads"."id" != 8766) LIMIT 1 | |
Ad Exists (0.3ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = 'wgCq2yYJ0zXZYfvSPwUY' AND "ads"."id" != 8767) LIMIT 1 | |
Ad Exists (0.6ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = '2wXDN98ryJnyYCHprPd_' AND "ads"."id" != 8768) LIMIT 1 | |
Ad Exists (0.4ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = 'p44LqlGIaguOjH6VeyU4' AND "ads"."id" != 8769) LIMIT 1 | |
Ad Exists (0.4ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = 'LgPFQXix1LczxsbwBbgi' AND "ads"."id" != 8770) LIMIT 1 | |
Ad Exists (0.4ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = '92Q4towV5JjbPYf0nP' AND "ads"."id" != 8771) LIMIT 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am pelcasandra on github. | |
* I am pelcasandra (https://keybase.io/pelcasandra) on keybase. | |
* I have a public key ASCY738z33ktvD-K9nUUcDr_xR90iGchDMtgaqhaaAskzAo | |
To claim this, I am signing this object: |
OlderNewer