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
try: | |
new_version = 'v' + download['version'] | |
except: | |
print '%s: Error parsing JSON from repository %s.' % (info.get('name'), self.repo) | |
print '%s: Download version is null.' % (info.get('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
# Title: Lead-in Text Block | |
# Author: Yetrina Battad (http://aether.nu) | |
# Description: Provides a block for lead-in text. Inspired by this plugin: http://blog.darkrefraction.com/2012/jekyll-excerpt-plugin.html | |
# | |
# Captures the text between the 'lead' block and places it in the post data's 'lead' property. | |
# Also wraps the text between the 'lead' tags into a paragraph with CSS hook for styling. | |
# | |
# Usage: | |
# {% lead %} | |
# Wheeee! |
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
border-collapse: collapse; | |
color: rgb(0, 0, 0); | |
display: block; | |
font-family: Arial, Helvetica, sans-serif; | |
font-size: 13px; | |
font-weight: bold; | |
height: 18px; | |
line-height: 17px; | |
margin-bottom: 0px; | |
margin-left: 0px; |
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
.content { | |
background: #EFEEEA url(../img/body-bg.png) repeat-y 0 0; | |
background-size: 100%; | |
padding: 100px 24px 120px; | |
margin: 0 0 -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
a\s*(?i)href\s*=\s*(\"([^"]*\")|'[^']*'|([^'">\s]+)) |
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
//echo $imagefullpath; | |
$img = ImageCreateFromJPEG($imagefullpath); | |
$canvas = imagecreatetruecolor($thumb_w,$thumb_h); | |
// following image calculation based on | |
// http://return-true.com/2009/02/making-cropping-thumbnails-square-using-php-gd/ | |
$orig_w = imagesx($img); | |
$orig_h = imagesy($img); | |
$w_ratio = ($thumb_w / $orig_w); | |
$h_ratio = ($thumb_h / $orig_h); | |
if ($orig_w > $orig_h) { // horizontal image |
NewerOlder