Skip to content

Instantly share code, notes, and snippets.

<link rel="stylesheet" href="style.css" />
<section>
<h1 class="logo"></h1>
<ul>
<li><a class="profile icon"></a></li>
<li><a class="contact icon"></a></li>
<li><a class="close icon"></a></li>
</ul>
<p>I saw for the first time the earth's shape. I could easily see the shores of continents, islands, great rivers, folds of the terrain, large bodies of water. The horizon is dark blue, smoothly turning to black. . . the feelings which filled me I can express with one word - joy.</p>
@jamesflorentino
jamesflorentino / index.html
Created September 18, 2012 18:48
HTML5 form validator example
<!doctype>
<html>
<head>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<form>
<h4>User name</h4>
<input
type = "text"
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch
@jamesflorentino
jamesflorentino / favicons.html
Created September 23, 2012 11:37
favicon html template
<link rel="icon" href="/favicon_16x16.png" sizes="16x16" type="image/png">
<link rel="icon" href="/favicon_32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="/favicon_64x64.png" sizes="64x64" type="image/png">
<link rel="icon" href="/favicon_128x128.png" sizes="128x128" type="image/png">
<!-- home screen for iphones without the gloss effect -->
<link rel="apple-touch-icon-precomposed" href="/images/icon-iphone.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/images/icon-ipad.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/images/icon-iphone4.png">
@jamesflorentino
jamesflorentino / module-template.js
Created September 25, 2012 11:18
Template for defining a JavaScript module.
(function() {
var TestModule = (function() {
function Module() {
/** constructor **/
}
/** prototype methods **/
Module.prototype = {
create : function() {},
read : function() {},
@jamesflorentino
jamesflorentino / readme.md
Created October 2, 2012 05:57
Senators of the 15th congress of the Philippines

Senators of the 15th congress of the Philippines

Note: This document is also available in JSON format.

Ed Angara

<!doctype>
<style>
body {
background: #222;
}
#leaf {
background: green;
border-radius: 130px;
width: 130px;
height: 130px;
@jamesflorentino
jamesflorentino / outline.md
Created November 7, 2012 23:09
PWDO FFC 2012 James Florentino - From Flash to HTML5

From Flash to HTML5

Introduction

This talk will be mostly about my experience on how I moved from Flash to using HTML5 as a platform for my game which includes libraries that I've used and techniques I've contrived during my learning experience.

I will be using my game, Wings Of Lemuria, as an example for this talk.

@jamesflorentino
jamesflorentino / umd-class.js
Created November 18, 2012 01:47
Useable in both CommonJS and AMD
/**
* AMD/CommonJS Class Module
* Copyright (c) 2012 James Florentino
*
* Distributed under the terms of the MIT license.
* http://www.opensource.org/licenses/mit-license.html
*
* Derived from John Resig's Simple Prototypal Inheritance http://ejohn.org/
* UMD compatible
**/
@jamesflorentino
jamesflorentino / class.js
Created November 27, 2012 20:00
ES5, AMD and CommonJS compliant Class module
/**
* ES5 compliant AMD/CommonJS Class Module
* Copyright (c) 2012 James Florentino
*
* Distributed under the terms of the MIT license.
* http://www.opensource.org/licenses/mit-license.html
*
* Derived from John Resig's Simple Prototype Inheritance http://ejohn.org/
* UMD compatible
*