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
search for flickr photos | |
http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=XXXXXXXX&text=LeSueur | |
get information after you have a photo id: | |
http://www.flickr.com/services/api/flickr.photos.getInfo.html | |
there is also this: flickr.com/photo.gne?id=185333846 |
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
example url | |
http://gdata.youtube.com/feeds/api/videos?q=lesueuer+car&orderby=published&start-index=11&max-results=10&v=2&prettyprint=true | |
for more info: | |
http://code.google.com/apis/youtube/2.0/developers_guide_protocol.html#Searching_for_Videos |
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
http://api.yelp.com/business_review_search?num_biz_requested=1&term=wendys&location=tempe,%20az&ywsid=XXXXXXXX |
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
/* | |
* jQuery JSON Plugin | |
* version: 2.1 (2009-08-14) | |
* | |
* This document is licensed as free software under the terms of the | |
* MIT License: http://www.opensource.org/licenses/mit-license.php | |
* | |
* Brantley Harris wrote this plugin. It is based somewhat on the JSON.org | |
* website's http://www.json.org/json2.js, which proclaims: | |
* "NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.", a sentiment that |
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
<script> | |
// a little for each thing | |
function each(arr, func) { | |
for (var key in arr) { | |
func(key,arr[key]) | |
} | |
} | |
function is_alpha(str) { |
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
<script> | |
function graph(arr) { | |
} | |
</script> |
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
<iframe src="http://docs.google.com/present/embed?id=dcvpj4qq_338dc6p835k&interval=15&size=l" frameborder="0" width="700" height="559"></iframe> |
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
javascript: var sCrIpT = document.createElement("script"); sCrIpT.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"; document.body.appendChild(sCrIpT); $('<div id = "the_timer">hey</div>').css({'font-size' : '30pt','z-index' : '1000000','background-color': 'black', color : 'white','position': 'absolute' }).appendTo($(document.body)); void(0); void(0); |
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
javascript: var sCrIpT = document.createElement("script"); sCrIpT.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"; document.body.appendChild(sCrIpT); void(0); |
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
<? | |
public resize_image($image, $w, $h) { | |
$ret = imagecreatetruecolor($w, $h); //main image is called thumb. | |
imagealphablending( $ret, false ); | |
imagesavealpha( $ret, true ); | |
imagecopyresampled($ret, $image, 0, 0, 0, 0, $w, $h, imagesx($image), imagesy($image)); | |
//imageantialias($thumb,true); | |
return $ret; | |
} |