A Pen by Jason Calleiro on CodePen.
This file contains hidden or 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
NSShadow *shadow = [[NSShadow alloc] init]; | |
shadow.shadowColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.8]; | |
shadow.shadowOffset = CGSizeMake(0, 1); | |
[[UINavigationBar appearance] setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys: | |
[UIColor colorWithRed:245.0/255.0 green:245.0/255.0 blue:245.0/255.0 alpha:1.0], NSForegroundColorAttributeName, | |
shadow, NSShadowAttributeName, | |
[UIFont fontWithName:@"HelveticaNeue-CondensedBlack" size:21.0], NSFontAttributeName, nil]]; |
This file contains hidden or 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
-#- if can? :access, :workshops | |
-#%li.dropdown | |
-#%a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#"} | |
-#Workshops | |
-#%b.caret | |
-#%ul#workshops.dropdown-menu{"aria-labelledby" => "dLabel", :role => "menu"} | |
-#%li= link_to "New", new_workshop_path | |
-#%li= link_to "List", workshops_path | |
-#- if can? :access, :organizations |
This file contains hidden or 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
/* Form Progress */ | |
.progress { | |
margin: 20px auto; | |
text-align: center; | |
overflow: visible; | |
background: inherit; | |
box-shadow: inherit; | |
text-align: right; | |
} |
This file contains hidden or 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
.navbar-header | |
%a.logo{href: home_path} | |
- if content_for(:header_follow) | |
.sharing | |
= yield :header_follow | |
- if content_for?(:navigation) | |
= yield :navigation | |
- else | |
%nav{role: "navigation"} |
This file contains hidden or 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
.navbar-header | |
%a.logo{href: home_path} | |
- if content_for(:header_follow) | |
.sharing | |
= yield :header_follow | |
- if content_for?(:navigation) | |
= yield :navigation | |
- else | |
%nav{role: "navigation"} |
This file contains hidden or 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
.jackbox-modal { | |
font: 12px Arial, Helvetica, sans-serif; | |
color: #666; | |
line-height: 18px; | |
background: rgba(0, 0, 0, 0.75); | |
-webkit-box-sizing: content-box; | |
-moz-box-sizing: content-box; | |
-o-box-sizing: content-box; | |
-ms-box-sizing: content-box; | |
box-sizing: content-box; |
This file contains hidden or 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
$(document).ready -> | |
$(".next").click -> | |
target = $(this).attr('data-target') | |
$('body, html').animate | |
scrollTop: $('#' + target).offset().top, 600 | |
setTimeout (-> | |
$(".idea-logo").addClass "animated tada" | |
), 2000 |
This file contains hidden or 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
Problem: | |
Attempted to set a value for 'name' which is not allowed on the model User. | |
Summary: | |
Without including Mongoid::Attributes::Dynamic in your model and the attribute does not already exist in the attributes hash, attempting to call User#name= for it is not allowed. This is also triggered by passing the attribute to any method that accepts an attributes hash, and is raised instead of getting a NoMethodError. | |
Resolution: | |
You can include Mongoid::Attributes::Dynamic if you expect to be writing values for undefined fields often. | |
/Users/jjco/.rvm/gems/ruby-2.0.0-p0@quickmvp/bundler/gems/mongoid-9b3bc1264032/lib/mongoid/attributes/processing.rb:96:in `process_attribute' | |
/Users/jjco/.rvm/gems/ruby-2.0.0-p0@quickmvp/bundler/gems/mongoid-9b3bc1264032/lib/mongoid/attributes/processing.rb:25:in `block in process_attributes' | |
/Users/jjco/.rvm/gems/ruby-2.0.0-p0@quickmvp/bundler/gems/mongoid-9b3bc1264032/lib/mongoid/attributes/processing.rb:23:in `each_pair' | |
/Users/jjco/.rvm/gems/ruby-2.0.0-p0@quickmvp/bundler |
This file contains hidden or 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
[ | |
{ | |
"id":"0001", | |
"type":"donut", | |
"name":"Cake", | |
"ppu":0.55, | |
"batters":{ | |
"batter":[ | |
{ | |
"id":"1001", |