This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page Title</title> | |
<link href='http://fonts.googleapis.com/css?family=Cardo:regular"' rel='stylesheet' type='text/css'> | |
<style type="text/css" media="screen"> | |
BODY { | |
background-color:#999; | |
font-family:Cardo; |
This file contains 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
var resizeHandle = document.getElementById('resize-se'); | |
resizeHandle.addEventListener('mousedown', function (e){ | |
var isDragging = true; | |
var mousePosition = {x:event.clientX, y:event.clientY}; | |
document.addEventListener('mousemove', drag, false); | |
document.addEventListener('mouseup', function (e){ | |
document.removeEventListener('mousemove', drag, false); | |
document.removeEventListener('mouseup', arguments.callee, false); |
This file contains 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
var AppThemes = { | |
"Dreadnaught":{ | |
"stylesheet":"Dreadnaught.css", | |
"palmtheme":'dark' | |
}, | |
"Clean":{ | |
"stylesheet":"Clean.css", | |
"palmtheme":'light' | |
} | |
}; |
This file contains 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
var AppThemes = { | |
"Dreadnaught":{ | |
"stylesheet":"Dreadnaught.css", | |
"palmtheme":'dark' | |
}, | |
"Clean":{ | |
"stylesheet":"Clean.css", | |
"palmtheme":'light' | |
}, | |
"My Cool Theme":{ |
This file contains 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
#!/bin/bash | |
# USAGE: /path/to/chrometest <localfile.html> | |
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \ | |
--disable-web-security \ | |
--allow-file-access-from-files \ | |
--allow-file-access \ | |
--log-level 3 \ | |
$@ |
This file contains 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
<a href="http://spaz.spreadshirt.com" target="_blank"><img src="http://funkatron.com/images/pullreq_or_STFU_120x90.gif" width="120" height="90"></a> |
This file contains 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 | |
// hey dude | |
$boom = 'flazm'; | |
$heydude = function ($name) use ($boom) { | |
echo "Hey {$name}: {$boom}"; |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page Title</title> | |
<script src="http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
<script src="http://ajax.cdnjs.com/ajax/libs/less.js/1.0.41/less-1.0.41.min.js"></script> | |
<script src="http://ajax.cdnjs.com/ajax/libs/underscore.js/1.1.4/underscore-min.js"></script> |
This file contains 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
function callSpaz(serviceParams, onFailure) { | |
var appids = ['com.funkatron.app.spaz-sped', 'com.funkatron.app.spaz', 'com.funkatron.app.spaz-beta'], index = 0; | |
function makeCall() { | |
if (index < appids.length) { | |
Mojo.Log.info('Trying to post with appid %s', appids[index]); | |
var request = new Mojo.Service.Request("palm://com.palm.applicationManager", { |
This file contains 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
body { | |
font-family: "Helvetica", "Arial", sans-serif; | |
font-size: 1em; | |
background: #f2f2f2; | |
margin: 0; | |
padding: 0; | |
color: #666; | |
} |