Skip to content

Instantly share code, notes, and snippets.

View mvickers's full-sized avatar

Matthew Vickers mvickers

View GitHub Profile
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg);">
<scene id="scene1">
<label t="translate(0,346)">
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg);">
<scene id="scene1">
<label t="translate(0,346)">
@mvickers
mvickers / index.html.js
Created September 11, 2012 02:13
Load Cordova ?
<head>
<script>
var getOS = function { //Just using indexOf() is dirty. Returns iOS/Android/unknown.
var iOS = ['iPad', 'iPod', 'iPhone', 'iPhone Simulator'], //TODO: Remove for release - This is just for debugging.
tmp = new RegExp('\\((.*?)\\)').exec(navigator.userAgent).slice(1).toString().split('; '),
OS, i;
for (i=0; i<tmp.length; i++) {
if (iOS.lastIndexOf(tmp[i]) !== -1) {
OS = 'iOS';
@mvickers
mvickers / some_website
Created October 20, 2011 05:05
Basic Centos init script for Dancer apps
#!/bin/sh
#
# some_website - this script starts and stops some_website
#
# chkconfig: - 85 15
# description: Some website description
# pidfile: /var/run/plackup.some_website.pid
PID=/var/run/plackup.some_website.pid
package content_disposition;
use Dancer ':syntax';
our $VERSION = '0.1';
# SHELL> curl --head http://localhost:3000
# HTTP/1.0 200 OK
# Content-Type: text/html; charset=UTF-8
# Content-Disposition: attachment; filename=test.html
# X-Powered-By: Perl Dancer 1.2000