Skip to content

Instantly share code, notes, and snippets.

View shivanibhanwal's full-sized avatar
👩‍💻
Intellectual growth should commence at birth and cease only at death. ~Einstein

Shivani shivanibhanwal

👩‍💻
Intellectual growth should commence at birth and cease only at death. ~Einstein
  • @Lawlytics, ex-Kiprosher
  • Mumbai
  • 07:19 (UTC -12:00)
View GitHub Profile
@shivanibhanwal
shivanibhanwal / CKeditorUploader
Created October 6, 2012 14:31
Carrierware uploaded
# encoding: utf-8
class CkeditorPictureUploader < CarrierWave::Uploader::Base
include Ckeditor::Backend::CarrierWave
include Cloudinary::CarrierWave
include CarrierWave::MiniMagick
# Include RMagick or ImageScience support:
# include CarrierWave::RMagick
# include CarrierWave::ImageScience
@shivanibhanwal
shivanibhanwal / subscription_mailer_routes_error
Created November 8, 2013 19:01
Stacktrace for error in forem routes while trying to send a subscription mailer
ActionController::RoutingError (No route matches {}):
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:540:in `raise_routing_error'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:536:in `rescue in generate'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:528:in `generate'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:569:in `generate'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:594:in `url_for'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:342:in `url_for'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:216:in `forem_path'
actionpack (3.2.15) lib/action_dispatch/routing/mapper.rb:446:in `block (2 levels) in define_generate_prefix'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:589:in `url_for'
bin/rails:4:in `<main>'
bin/rails:4:in `require'
/MYPROJECT/vendor/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
/MYPROJECT/vendor/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
/MYPROJECT/vendor/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:76:in `block in <top (required)>'
/MYPROJECT/vendor/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:76:in `require'
/MYPROJECT/config/application.rb:7:in `<top (required)>'
/Users/shivanidaxini/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.1/lib/bundler.rb:132:in `require'
/Users/shivanidaxini/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.1/lib/bundler/runtime.rb:61:in `require'
/Users/shivanidaxini/.rvm/gems/ruby-2.0.0-p451@global/gems/bundler-1.6.1/lib/bundler/runtime.rb:61:in `each'
shivanidaxini$ bundle exec rake db:create
/MYPROJECT/vendor/ruby/2.0.0/gems/therubyracer-0.12.0/lib/v8/init.bundle: [BUG] Segmentation fault
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin13.1.0]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
Process: ruby [15615]
Path: /Users/USER/*/ruby
Identifier: ruby
Version: ???
Code Type: X86-64 (Native)
Parent Process: bash [97549]
Responsible: iTerm [328]
User ID: 501
Date/Time: 2014-05-15 19:51:24.492 +0530
Process: ruby [18450]
Path: /Users/USER/*/ruby
Identifier: ruby
Version: ???
Code Type: X86-64 (Native)
Parent Process: bash [7191]
Responsible: iTerm [314]
User ID: 501
Date/Time: 2014-05-16 16:02:43.561 +0530
Forem::Forum Load (0.3ms) SELECT `forem_forums`.* FROM `forem_forums` WHERE `forem_forums`.`id` = 1 ORDER BY name ASC LIMIT 1
Rendered /Users/shivanidaxini/.rvm/gems/ruby-1.9.3-p545@project/bundler/gems/forem-4726ad67a36d/app/views/forem/topics/_head.html.erb (2.8ms)
SQL (0.5ms) SELECT `memberships`.`organisation_id` FROM `memberships` WHERE `memberships`.`person_id` = 000 AND `memberships`.`state` = 'donotknow'
SQL (0.4ms) SELECT `memberships`.`organisation_id` FROM `memberships` WHERE `memberships`.`person_id` = 000 AND `memberships`.`is_owner` donotknow`memberships`.`state` = 'donotknow'
SQL (0.4ms) SELECT `memberships`.`organisation_id` FROM `memberships` WHERE `memberships`.`person_id` = 000 AND `memberships`.`state` = 'donotknow'
SQL (0.3ms) SELECT `memberships`.`organisation_id` FROM `memberships` WHERE `memberships`.`person_id` = 000 AND `memberships`.`state` = 'donotknow'
SQL (0.3ms) SELECT `memberships`.`organisation_id` FROM `memberships` WHERE `memberships`.`person_id` = 000 AND
Hi @ wycats,
I am using emberjs 1.8.0 release and I am trying to build a dynamic view. As per various reference and suggestions on the web.
I planned to use ContainerView and ChildViews as I have to dynamically add a single row of the grid, whenever someone click ADD button
on my main view.
Using this reference I am able to add the childViews in the containerView. However I am facing issue with data retrival.
I am not able to get data in my controller, which i have entered in the each child view. I think because
controller and ContainerView has not direct relation.
Here is the JSBin of what I am doing http://emberjs.jsbin.com/gatoja/8/
I want to get value of all the dynamically added WIDTH fields
@shivanibhanwal
shivanibhanwal / gist:d740fa7770a0f44893e9
Created January 14, 2015 15:43
Airbrake-js payload
{"notifier"=>
{"name"=>"airbrake-js-v8",
"version"=>"0.3.10",
"url"=>"https://github.com/airbrake/airbrake-js"},
"errors"=>
=> {"notifier"=>
{"name"=>"airbrake-js-v8",
"version"=>"0.3.10",
"url"=>"https://github.com/airbrake/airbrake-js"},
"errors"=>
.row.bottom-gap
.small-9.small-offset-3.large-4.large-offset-2.columns
.button.button-with-gradient.button-round
%div.ico.icon-cart
= t('home.index.buy')
.small-9.small-offset-3.large-4.large-offset-2.columns
.button.button-with-gradient.button-round
%div.ico.icon-redeem
= t('home.index.redeem')