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 Internet Explorer there was an issue where the iframe/canvas embed for a Facebook App would cause flashing as the app redirected to itself over and over as it was blocking any sort of cookies set from an external url... | |
Source of final AHA: | |
http://duanesbrain.blogspot.com/2007/11/facebook-ie-and-iframes.html | |
View the Page's Privacy Policy in Internet Explorer and you should see external cookies blocked for your app that is hosted elsewhere. | |
Solution: | |
Set the headers properly! (Or check if you aren't loading a file properly like Duane's solution). |
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
def test_equilateral_triangles_have_equal_sides | |
assert_equal :equilateral, triangle(2, 2, 2) | |
assert_equal :equilateral, triangle(10, 10, 10) | |
end | |
def test_isosceles_triangles_have_exactly_two_sides_equal | |
assert_equal :isosceles, triangle(3, 4, 4) | |
assert_equal :isosceles, triangle(4, 3, 4) | |
assert_equal :isosceles, triangle(4, 4, 3) | |
assert_equal :isosceles, triangle(10, 10, 2) |
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
class Pto | |
attr_accessor :hire_date, :hire_date_vacation_adjustment, :vacation_this_year, :ytd, :eoy_accrual | |
def initialize(hire_date, hire_date_vacation_adjustment, vacation_this_year) | |
self.hire_date = hire_date | |
self.hire_date_vacation_adjustment = hire_date_vacation_adjustment | |
self.vacation_this_year = vacation_this_year | |
calculate_pto | |
end |
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
- if (albums.length) | |
- albums.forEach(function(album){ | |
.band-info | |
a(target="_blank", href="#{album.shortUrl}", class="album-link") | |
span#album-image | |
img(src="#{album.icon}", alt="#{album.name}") | |
span#album-name | |
a(target="_blank", href="#{album.shortUrl}") | |
#{album.name} | |
span#band-name #{album.artist} |
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
- if (albums.length) | |
- albums.forEach(function(album){ | |
.band-info | |
a(target="_blank", href="#{album.shortUrl}", class="album-link") | |
span#album-image | |
img(src="#{album.icon}", alt="#{album.name}") | |
span#album-name | |
a(target="_blank", href="#{album.shortUrl}") | |
#{album.name} | |
span#band-name #{album.artist} |
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
<a href="#" class="tooltip" title="Discovery"> | |
<div class="tip-text">Discover</div> | |
</a> |
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
.current { | |
display: block !important; | |
z-index: 980 !important; | |
} |
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
/* This is a work in progress. Refactors/Clean Up to come */ | |
$(function(){ | |
/* Get the user(s) from RDIO for avatars */ | |
$.ajax({ | |
url: "http://qlrdio.herokuapp.com/user/collin?callback=?", | |
dataType: "jsonp", | |
success: function(data){ | |
var keyVal = data.key, | |
iconPic = data.icon; |
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
<!-- Check for Placeholder support natively in the browser with | |
Modernizr - modernizr.com or your own check --> | |
<script type="text/javascript"> | |
if (!Modernizr.input.placeholder){ | |
$('input, textarea').placehold_me(); | |
} | |
</script> | |
<!-- example input --> | |
<input type="text" placeholder="Address" /> |
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
location / { | |
auth_basic "Restricted"; | |
auth_basic_user_file /data/nginx/servers/<app_name>/<app_name>.users; | |
passenger_enabled on; | |
} |