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
# Installs migrations from unmountable engines | |
bundle exec rake railties:install:migrations FROM=<ENGINE-NAME>_engine |
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
$(window).bind('orientationchange', function(){ | |
// do whatever | |
}); | |
// The below will give you the current orientation for iOS devices, possible values being 0, 90, -90 or 180 (180 on iPad only) | |
if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) { | |
alert(window.orientation); | |
} |
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.fn.fitToParent = function() | |
{ | |
this.each(function() | |
{ | |
var width = $(this).width(); | |
var height = $(this).height(); | |
var parentWidth = $(this).parent().width(); | |
var parentHeight = $(this).parent().height(); | |
if(width/parentWidth < height/parentHeight) |
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
Spree::Order.prepend(Kjus::Order) | |
Spree::Order.class_eval do | |
attr_accessor :use_shipping | |
before_validation :clone_shipping_address, if: :use_shipping? | |
def use_shipping? | |
@use_shipping == true || @use_shipping == 'true' || @use_shipping == '1' | |
end |
- Invite Supply Chain Users
- demonstrate that an invited contact associated with a member authority is given access to the supply chain member dashboard, and sees only their company's data
- Adding a User
- Regional Help for Cities
- Demo expandable guidance doc block
- Demo webinar calendars and Programme calendars
- including different colours for supply chain/cities
- Supply Chain custom search block
- Supply Chain specific help block
- Tweaks to search results page?
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 Link | |
constructor: -> | |
$(document).ready -> | |
@registerHandlers() | |
registerHandlers: -> | |
$('.activate-links').on 'click', => | |
$link = $(this) | |
linkActive = $link.hasClass 'active' |
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
# time in Vagrant seems to fall out of sync fairly often (albeit very slowly) | |
# and can fuck with some oauth requests - this syncs it back up: | |
sudo ntpdate pool.ntp.org |
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
Rock Paper Scissors Lizard Spock is a more convoluted and much geekier version of Rock Paper Scissors. | |
The rules are: | |
Rock beats Scissors | |
Rock crushes Lizard | |
Paper covers Rock | |
Paper disproves Spock | |
Scissors cut Paper | |
Scissors decapitate Lizard |
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 the numbers 1 to 5 are written out in words: one, two, three, four, five | |
then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total. | |
If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used? | |
NOTE: | |
Do not count spaces or hyphens. For example, 342 (three hundred and forty-two) contains 23 letters and 115 (one hundred and fifteen) contains 20 letters. The use of "and" when writing out numbers is in compliance with British usage. |
NewerOlder