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($enclosure){ // this is Line 78 | |
list($width, $height, $type, $attr) = getimagesize($url); | |
echo '<enclosure url="' . $image_url . '" length="' . $filesize . '" type="'.image_type_to_mime_type($type).'" />'; | |
} | |
if($media){ | |
list($width, $height, $type, $attr) = getimagesize($url); | |
echo '<media:content url="'.$image_url.'" width="'.$width.'" height="'.$height.'" medium="image" type="'.image_type_to_mime_type($type).'" />'; | |
} |
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
# Will allow to use a .gif extension. | |
# Script can now be used as www.mydomain.com/pokemon.gif | |
RewriteEngine on | |
RewriteRule ^(.*).gif giphy.php?tag=$1 [L,QSA] |
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
# Activate colors | |
export CLICOLOR='true' | |
export LSCOLORS="gxfxcxdxbxCgCdabagacad" | |
export EDITOR=vi | |
# Git branch in good-looking prompt. | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} |
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
/* | |
Requires jsdom and request. | |
Grabs serienplakat.de to check for free posters | |
*/ | |
var dom = require('jsdom'); | |
var request = require('request'); | |
var mainURL = 'http://serienplakat.de'; | |
var detailURL = mainURL + '/backend/_ajax.php'; | |
var scripts = ['http://code.jquery.com/jquery.js']; |