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
<?php | |
// Change these to suit your site! | |
$homepage = "http://example.com"; // The home page of your comic | |
$comic_dir = "comics"; // The folder where comic image files are kept | |
$news_dir = "news"; // The folder where post/news HTML files are kept | |
$digits = 3; // The number of digits in each comic ID. e.g. 3 for 001 | |
// Checks whether a page exists for a given ID in the directory | |
// If it does, returns the file name |
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
position:relative; | |
z-index:1; | |
/* put the above two lines at the end of the .nav rule (inside the brackets) in monsterpulse.css, lines 86-94 */ |
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 class="mq"> | |
<div class="mq__xs"></div> | |
<div class="mq__sm"></div> | |
<div class="mq__md"></div> | |
<div class="mq__lg"></div> | |
</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
.copy > * { | |
margin-left: 30px; | |
margin-right: 30px; | |
} | |
.copy > .post-title { | |
margin-left: 30px; | |
margin-right: 30px; | |
} |
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 getMaxZIndex = function (element, maxZIndex) { | |
var maxZIndex = maxZIndex || 0; | |
var zIndex = element.css('z-index'); | |
if (zIndex !== 'auto') { | |
maxZIndex = Math.max(maxZIndex, zIndex); | |
} | |
var parent = element.parent(); | |
if (parent[0].nodeName === 'HTML') { | |
return maxZIndex; | |
} else { |
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 Guest = Backbone.Model.extend(); | |
var Table = Backbone.Model.extend(); | |
var firstGuest = new Guest(guests[0]); | |
var GuestView = Backbone.View.extend({ | |
initialize: function () { | |
this.listenTo(this.model, 'change', this.render); | |
}, | |
tagName: 'h1', |
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 friendly_count(num) | |
if num >= 1000000000000 | |
'999B+' | |
elsif num >= 2000000000 | |
"#{num / 1000000000}B" | |
elsif num >= 1100000000 | |
"#{(num.to_f / 1000000000.0).round(1)}B" | |
elsif num >= 1000000000 | |
'1B' | |
elsif num >= 2000000 |
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 address_name | |
families = [] | |
last_names = {} | |
guests.each do |guest| | |
# Discard if name has question marks | |
unless guest.name =~ /\?/ | |
names = guest.name.split(' ') | |
# Discard if last name isn't uppercase | |
if names.last =~ /[A-Z]/ | |
# If last name ends with a period, it's a suffix |