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
.cf{zoom:1;}.cf:before,.cf:after{content:"";display:table;}.cf:after{clear: both;} | |
[id^="example-"] [class^="ss-"]:before { | |
padding-right: 0.5em; | |
} | |
[id^="example-"], [id^="example-"] button { | |
font-family: Helvetica, sans-serif; | |
font-size: 16px; | |
line-height: 1.5; |
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
<style> | |
.ss-book { font-size: 18px; text-decoration: none; position: relative; color: black; } | |
.ss-book:before { font-size: 80px; position: absolute; left: -16px; top: -36px; color: #ccc;} | |
.ss-book .text { position: relative; z-index: 1; } | |
</style> | |
<a href="#" class="ss-book"><span class="text">Books</span></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
RewriteCond "%{HTTP_HOST}_%{HTTP_REFERER}" "!\.?([^\.]+\.[^\.]+?)_https?://.*\1/.*$" [OR] | |
RewriteCond %{HTTP_REFERER} ^$ | |
RewriteRule ss-[a-zA-Z0-9-]+\.(woff|eot|ttf|svg|js|css)$ - [F,NC,L] |
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
[{ | |
"title":"Post 1", | |
"body":"Body goes here.", | |
"tags":["Tag 1", "Tag 2"], | |
"slug":"post-1", | |
"published_at":"2013-06-05T18:24:59-04:00" | |
}, { | |
"title":"Post 2", | |
"body":"Body goes here.", | |
"tags":["Tag 1", "Tag 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
require "siteleaf" | |
require "yaml" | |
# API settings | |
Siteleaf.api_key = '...' | |
Siteleaf.api_secret = '...' | |
# site settings | |
site_id = '...' | |
page_id = '...' # blog page to import posts into |
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
#!/bin/sh | |
echo "Pushing Siteleaf theme..." | |
siteleaf push theme |
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> | |
<h3 style="border-top:1px dashed #ccc;margin-top:1em;padding-top:1em">BOX_HEADLINE</h3> | |
BOX_LINKLIST_IMAGE | |
</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
{{ site.posts | json }} |
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 'fog' | |
def benchmark(connection, dir, n) | |
path = connection.directories.get(dir) | |
timers = [] | |
n.times do | |
folder = SecureRandom.hex.to_s | |
start = Time.now | |
file = path.files.create( |
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
{% capture html %} | |
<html> | |
... | |
</html> | |
{% endcapture %}{{ html | strip_newlines | replace:' ','' | replace:' ','' | replace:' ',' ' }} |
OlderNewer