This file contains hidden or 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
function pdf_function($attr, $url) { | |
extract(shortcode_atts(array( | |
'width' => '640', | |
'height' => '480' | |
), $attr)); | |
return '<iframe src="http://docs.google.com/viewer?url=' . $url . '&embedded=true" style="width:' .$width. '; height:' .$height. ';">Your browser does not support iframes</iframe>'; | |
} | |
add_shortcode('pdf', 'pdf_function'); |
This file contains hidden or 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/bash | |
# Open iPhone Simulator on default location for XCode 4.3 | |
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app | |
# Open mobile safari | |
echo Open mobile safari on emulator and press return | |
read | |
# Plug debug to MobileSafari.app |
This file contains hidden or 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
$book = new stdClass; | |
$book->title = "Harry Potter and the Prisoner of Azkaban"; | |
$book->author = "J. K. Rowling"; | |
$book->publisher = "Arthur A. Levine Books"; | |
$book->amazon_link = "http://www.amazon.com/dp/0439136369/"; | |
$array = array( | |
"title" => "Harry Potter and the Prisoner of Azkaban", | |
"author" => "J. K. Rowling", |
This file contains hidden or 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
.parent { display: -ms-flex; display: -webkit-flex; display: flex; } | |
.parent>div { flex:1; } |
This file contains hidden or 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
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
-webkit-transform: translate(-50%, -50%); |
This file contains hidden or 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
.close { | |
position: absolute; | |
right: 32px; | |
top: 32px; | |
width: 32px; | |
height: 32px; | |
opacity: 0.3; | |
} | |
.close:hover { | |
opacity: 1; |
This file contains hidden or 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
ls -t | sed -e '1,10d' | xargs -d '\n' rm |
This file contains hidden or 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
$body = array( | |
array( | |
'offerIdTarifs' => "FPP-CLASSIC", | |
'pickupName' => get_bloginfo("name"), | |
'pickupLatitude' => PICKUPLAT, | |
'pickupLongitude' => PICKUPLNG, | |
'pickupAddress' => PICKUPADRESSE, | |
'pickupAddress2' => "", | |
'pickupTel' => PICKUPTEL, | |
'pickupZip' => PICKUPZIP, |
This file contains hidden or 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 datas = [{ | |
'offerIdTarifs': pickup.offerIdTarifs, | |
'pickupName': pickup.pickupName, | |
'pickupLatitude': pickup.pickupLatitude, | |
'pickupLongitude': pickup.pickupLongitude, | |
'pickupAddress': pickup.pickupAddress, | |
'pickupAddress2': pickup.pickupAddress2, | |
'pickupTel': pickup.pickupTel, | |
'pickupZip': pickup.pickupZip, | |
'pickupCity': pickup.pickupCity, |
OlderNewer