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
query = "category = '#{params[:category]}'" | |
projects = Project.where(query).limit(10) |
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
string = "Nate is #{ruby_variable}. And super smart." |
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
ruby_variable = "cool" | |
string = "Nate is #{ruby_variable}" |
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
<body> | |
<div id='myAlert' style="background: #000; font-size: 2rem; color: #fff; padding: 2rem; display:none; line-height: 2.5rem"> | |
<a href="#" style="float: right; color: #fff; text-decoration: none" onclick="hideAlert()">×</a> | |
We'll be offline at 9:00PM Central June 22 for database maintance. It should take 60 minutes at most. | |
</div> |
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='myAlert' style="background: #000; font-size: 2rem; color: #fff; padding: 2rem; display:none; line-height: 2.5rem"> | |
<a href="#" style="float: right; color: #fff; text-decoration: none" onclick="hideAlert()">×</a> | |
We'll be offline at 9:00PM Central June 22 for database maintance. It should take 60 minutes at most. | |
</div> | |
<script> |
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
require 'zlib' | |
module FeatureFlags | |
BETA_ACCOUNTS = %w(subdomain1 subdomain2) | |
FLAGS = { | |
:new_import_flow => { | |
:percentage => 10, | |
:account_subdomains => [] | |
}, |
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
jQuery("#recordings").on("snapback-cache:loaded", function(e, cachedPage) { | |
// sets the pager to page from the appropriate place | |
EndlessPage.offset = cachedPage.nextPageOffset | |
}); |
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
var snapbackCache = SnapbackCache({ | |
bodySelector: "mandatory selector of your infinite feed", | |
finish: function () { | |
optional method of something that needs to finish on your page before caching the page | |
}, | |
removeAutofocus: function () { | |
optional method to kill autofocusing which screws with scrolling the page | |
}, | |
refreshItems: function (dirtyThings) { | |
optional method to fetch fresh bits from your server you want to replace in the cache |
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
var snapbackCache = SnapbackCache({ | |
bodySelector: "#recordings" | |
}); | |
jQuery(document).on("click", "body#recordings a", function (e) { | |
snapbackCache.cachePage(); | |
}); |
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
/* ++++++++++++++++++ Highrise (http://highrisehq.com) ------------------------------------------------------ */ | |
/* ------------------ Main App Styles ----------------------------------------------------------------------- */ | |
@font-face { | |
font-family: 'Highrise Open Sans'; | |
font-style: normal; | |
font-weight: 400; | |
src: url("//static.highrisehq.com/web/fonts/opensans-regular.eot?#iefix") format("embedded-opentype"), url("//static.highrisehq.com/web/fonts/opensans-regular.woff2") format("woff2"), url("//static.highrisehq.com/web/fonts/opensans-regular.woff") format("woff"), url("//static.highrisehq.com/web/fonts/opensans-regular.ttf") format("truetype"); } | |
@font-face { | |
font-family: 'Highrise Open Sans'; | |
font-style: normal; |