Skip to content

Instantly share code, notes, and snippets.

View codepo8's full-sized avatar

Christian Heilmann codepo8

View GitHub Profile
<p><a href="http://lanyrd.com/people/codepo8" id="lanyrd">See my conferences on Lanyard</a></p>
<script src="lanyrdbadge.js"></script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.0/build/reset-fonts-grids/reset-fonts-grids.css&2.8.0/build/base/base-min.css">
</head>
<body class="yui-skin-sam">
<div id="doc" class="yui-t7">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.0/build/reset-fonts-grids/reset-fonts-grids.css&2.8.0/build/base/base-min.css">
</head>
<body class="yui-skin-sam">
var slideshare_mobile_object = {
slideshow: {
"slideshowId":5398860,
"slideshowType":"presentation",
"slideshowTitle":"Reasons to be cheerful - Fronteers 2010",
"fbShareUrl":"/slideshow/get_facebook_share_url",
"baseSlideUrl":"http://cdn.m.slideshare.com/convert.php?file=reasons-to-be-cheerful-101009023351-phpapp01",
"totalSlides":134,
"twShareUrl":"/slideshow/get_twitter_share_url",
"truncatedSlideshowTitle":"Reasons to be cheerful - Fronteers 2010"},
function ydntt(o){
var out = document.getElementById('results'),
cpy = document.getElementById('copy'),
html = '',
disp = '',
n,i,j;
for(i=0,j=o.length;i<j;i++){
n = o[i].n.replace('}','</a>');
n = n.replace('{','<a href="'+o[i].u+'">');
html+='<li>'+n+'</a></li>';
@codepo8
codepo8 / transformvideo.js
Created January 18, 2011 16:02
A video player with zoom and rotate
/*
Zooming and rotating HTML5 video player
Homepage: http://github.com/codepo8/rotatezoomHTML5video
Copyright (c) 2011 Christian Heilmann
Code licensed under the BSD License:
http://wait-till-i.com/license.txt
*/
(function(){
/* predefine zoom and rotate */
@codepo8
codepo8 / edge.html
Created August 3, 2011 08:30
output of the Edge tool
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<!--Adobe Edge Runtime-->
<script type="text/javascript" src="../edge_includes/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../edge_includes/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="../edge_includes/edge.0.1.1.min.js"></script>
<script type="text/javascript" src="../edge_includes/edge.symbol.0.1.1.min.js"></script>
@codepo8
codepo8 / edge.js
Created August 3, 2011 08:31
Edge JS
/**
* Adobe Helium: symbol definitions
*/
window.symbols = {
"stage": {
version: "0.1",
baseState: "Base State",
initialState: "Base State",
parameters: {
@codepo8
codepo8 / vidly.php
Created December 1, 2011 18:59
vid.ly conversion interface
<?php
$key = '{your key here}';
$message = '';
if(isset($_POST['send'])){
if($_POST['email'] !== '' && $_POST['url'] !== '') {
$query = '<?xml version="1.0"?>'.
'<query><action>AddMedia</action><userid>481</userid>'.
'<userkey>'.$key.'</userkey>'.
'<notify>'.$_POST['email'].'</notify>'.
@codepo8
codepo8 / resizer.js
Created February 1, 2012 15:20
Resize image to thumbnail size
function resize( imagewidth, imageheight, thumbwidth, thumbheight ) {
var w = 0, h = 0, x = 0, y = 0,
widthratio = imagewidth / thumbwidth,
heightratio = imageheight / thumbheight,
maxratio = Math.max( widthratio, heightratio );
if ( maxratio > 1 ) {
w = imagewidth / maxratio;
h = imageheight / maxratio;
} else {
w = imagewidth;