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
.initial | |
.top-banner-ad-container | |
.top-banner-ad-container--desktop | |
.top-banner-ad-container--facia-layout | |
.ad-slot |
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
// Image replacement scss mixin | |
@mixin image_replace($img, $width, $height, $x: 0, $y: 0) { | |
display: block; | |
background: image-url($img) no-repeat $x $y; | |
width: $width; | |
height: $height; | |
overflow: hidden; | |
text-indent: -9999em; | |
} |
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
@mixin fancy-hover($sprite_dir, $off_state, $hover_state, $speed: 0.3s) | |
$sprites: sprite-map("#{$sprite_dir}/*.png") | |
$width: image-width(sprite_file($sprites, $off_state)) | |
$height: image-height(sprite_file($sprites, $off_state)) | |
@include hide-text | |
width: $width | |
height: $height | |
background: sprite($sprites, $off_state) no-repeat | |
display: block | |
position: relative |
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
.tumblr_posts { | |
.tumblr_post { | |
.tumblr_title {} | |
.tumblr_body img {} | |
.read_more_container {} | |
.read_more_container a.read_more {} | |
} | |
.tumblr_text_post { |
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 mixin requires three arguments: the standard definition sprite map, the hd sprite map, and the icon you want to use. | |
Optionally, you can give it X and Y offsets to position it, a width to resize it, or you can center it on the X axis, Y axis, or both. | |
Use it something like this: | |
// Create sprite maps | |
// (Just do this once per sprite sheet) | |
$general-sd: sprite-map("icons/general/*.png", $spacing: 30px); | |
$general-hd: sprite-map("hd/icons/general/*.png", $spacing: 60px); |
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
<!doctype html> | |
%html{:lang => "en"} | |
%meta{:content => "IE=edge", "http-equiv" => "X-UA-Compatible"}/ | |
%meta{:charset => "utf-8"}/ | |
/[if lt IE 9] | |
<script src="//html5shim.googlecode.com/svn/trunk/html5-els.js"></script> | |
<script> document.createElement("main") </script> | |
%title MY TITLE | |
%header{:role => "banner"} | |
%h1 BANNER |
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 assert = require('assert'); | |
function sortMerged(lOne, lTwo) { | |
return lOne.reduce(function (sortedList, num, index) { | |
var position = findPositionBinary(sortedList, num); | |
sortedList.splice(position, 0, num); | |
return sortedList; | |
}, lTwo); | |
} |
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 | |
global $post; | |
$current_date = date('j M Y'); | |
$end_date = date('j M Y', strtotime('1 month')); | |
echo 'Start Date:'. $current_date; | |
echo 'End Date:'. $end_date; | |
$all_events = tribe_get_events( | |
array( |
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 'sinatra' | |
get '/' do | |
File.read(File.join('public', 'index.html')) | |
# or | |
# send_file File.join(settings.public, 'index.html') | |
end |
OlderNewer