Class "Hello World" app with a bit of canvas thrown in for good measure.
- MDN: Basic usage of Canvas
- Codelab 2: Create Basic App
<!DOCTYPE html> | |
<html><head> | |
<title>wordeck - words in a deck</title> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" /> | |
<link rel="stylesheet/less" href="wordeck.less" /> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/1.7.0/less.min.js"></script> | |
</head><body class="mode-edit"> | |
<nav class="navbar navbar-default" role="navigation"> | |
<div class="navbar-header"> | |
<a class="navbar-brand" href="#">wordeck</a> |
#!/bin/bash | |
youtube-dl --batch-file $1 --extract-audio --output '%(autonumber)s-%(title)s-%(id)s.%(ext)s' |
Class "Hello World" app with a bit of canvas thrown in for good measure.
(function (factory) { | |
'use strict'; | |
if ('function' === typeof define && define.amd) { | |
define(['jquery'], factory); // register anonymous AMD module | |
} else { factory(jQuery); } // browser globals | |
}(function (jQuery) { | |
'use strict'; | |
var | |
$ = jQuery, | |
orig = $.fn.removeClass, |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
html, body { margin: 0; } | |
canvas { | |
position: absolute; | |
height: 100%; | |
width: 100%; | |
margin: 0; |
<?php | |
header('Content-Type: text/xml'); | |
$result = $_GET['Twiml']; | |
foreach($_REQUEST as $k => $v) { | |
if ($k === 'Twiml') { continue; } // avoid infinite loop | |
$result = str_replace('${' . $k . '}', $v, $result); | |
}//end for: replaced all the tokens | |
echo $result; |
# Show virtual environment (if any) and git branch (if any; requires .git-prompt.sh). | |
source ~/.git-prompt.sh | |
__blank="\[\e]0;\w\a\]\n" # white | |
__virtualenv=`basename "$VIRTUAL_ENV"` | |
__userhost="\[\e[32m\]\u@\h" # green | |
__pwd="\[\e[33m\]\w" # yellow | |
__cursor="\[\e[0m\]\n\$ " # white | |
export PS1="${__blank}${__virtualenv:+$__virtualenv }${__userhost} ${__pwd}\$(__git_ps1)${__cursor}" |
'Version 0.1.2 // 2012-12-07 | |
'Required References: | |
' Microsoft Scripting Library | |
' Microsoft XML | |
Dim cache As New Dictionary | |
Dim fso As New FileSystemObject | |
Public Const LIMIT_CACHE = False 'keep cache small | |
Public Const REFRESH_CACHE = True 'delete old cache |