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
@"(?:\\(|:\\s+)(?!http)([^\\s]+\\.(?:jpe?g|gif|png|svg|pdf))" | |
# matches local images: | |
# matches "(image.png)" | |
# matches "]: image.png" | |
# does not match remote images (http*) |
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
import Image | |
import photos, speech, console | |
speech.say('left image?', '', .18) | |
s1 = photos.pick_image() | |
speech.say('right image?', '', .18) | |
s2 = photos.pick_image() | |
w = s1.size[0] + s2.size[0] + 60 | |
h = max(s1.size[1], s2.size[1]) + 40 |
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
<?php | |
/** | |
* AJAX call for parsing HTML | |
* | |
*/ | |
public function parse_html() { | |
// get content from textarea | |
$text = $_POST['content']; |
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
/* ========================================================================== | |
Grid Overlay Styles | |
Author: Steve Hickey | http://stevehickeydesign.com | |
Company: Fresh Tilled Soil | http://freshtilledsoil.com | |
========================================================================== */ | |
div#gridOverlay { | |
position: absolute; | |
top: 0; right: 0; bottom: 0; left: 0; | |
width: 940px; | |
margin: 0 auto; |
NewerOlder