Skip to content

Instantly share code, notes, and snippets.

View chico's full-sized avatar

Chico Charlesworth chico

View GitHub Profile
$('map').cool();
@chico
chico / gist:1008782
Created June 5, 2011 08:22
Royal Wedding Visualisation
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="http://maps.google.com/maps?file=api&amp;v=2" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="http://static.clientsection.co.uk/css/weddingify-example.css" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" href="http://static.clientsection.co.uk/css/weddingify-example-ie.css" /><![endif]-->
</head>
@chico
chico / gist:1039016
Created June 21, 2011 21:56
Geovisualasation of Your Local Tweets
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="http://maps.google.com/maps?file=api&amp;v=2" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="http://static.clientsection.co.uk/css/weddingify-example.css" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" href="http://static.clientsection.co.uk/css/weddingify-example-ie.css" /><![endif]-->
</head>
@chico
chico / slideshow.html
Created July 16, 2011 12:13
jQuery Fullscreen Slideshow Usage
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.fullscreen.slideshow.js"></script>
</head>
<body>
<script type="text/javascript">
$.slideshow(["/path/to/image1.jpg", "/path/to/image2.jpg"]);
</script>
</body>
@chico
chico / new_visitor_growl_example.html
Created July 31, 2011 11:42
Growl Notification for New Web Visitors
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="http://stanlemon.net/javascript/jquery.jgrowl.js" type="text/javascript"></script>
<script src="https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://stanlemon.net/stylesheet/jquery.jgrowl.css" type="text/css"/>
<style>
@chico
chico / cross-domain-ajax-example.html
Created September 19, 2011 09:58
Cross Domain Ajax
<html>
<head>
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<head>
<body>
<script>
$(document).ready(function () {
// Cross domain ajax (uses YQL)
@chico
chico / main.scala.html
Created September 8, 2012 10:52
Play environment mode in templates
@if(play.Play.application().isProd()) {
...
}
@chico
chico / gist:3762293
Created September 21, 2012 15:54
currency and price based on IP address
var DOLLAR = "DOLLAR";
var POUND = "POUND";
var EURO = "EURO";
function getCurrency(callback) {
$.ajax({
url: "http://api.hostip.info/get_json.php",
timeout:1000 // timeout after 1 second and default to dollars
}).done(function(json) {
var country = "";
#import <Foundation/Foundation.h>
@interface NSDictionary (QueryStringBuilder)
- (NSString *)queryString;
@end

Keybase proof

I hereby claim:

  • I am chico on github.
  • I am chico (https://keybase.io/chico) on keybase.
  • I have a public key whose fingerprint is CDAD ED2F 12B0 B6E3 6109 1525 4F96 6D26 7A52 0B0F

To claim this, I am signing this object: