NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| (ns express_sample | |
| (:require [cljs.nodejs :as node])) | |
| (def express (node/require "express")) | |
| (def app (. express (createServer))) | |
| (defn -main [& args] | |
| (doto app | |
| (.use (. express (logger))) | |
| (.get "/" (fn [req res] |
| <!DOCTYPE html> | |
| <meta charset=utf-8> | |
| <meta name=viewport content="width=device-width, initial-scale=1, maximum-scale=1"> | |
| <meta name=apple-mobile-web-app-capable content=yes> | |
| <meta name=apple-mobile-web-app-status-bar-style content=black> | |
| <title>Test fullscreen</title> | |
| <style> | |
| html, body { | |
| margin: 0; | |
| padding: 0; |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| /* | |
| You can now create a spinner using any of the variants below: | |
| $("#el").spin(); // Produces default Spinner using the text color of #el. | |
| $("#el").spin("small"); // Produces a 'small' Spinner using the text color of #el. | |
| $("#el").spin("large", "white"); // Produces a 'large' Spinner in white (or any valid CSS color). | |
| $("#el").spin({ ... }); // Produces a Spinner using your custom settings. | |
| $("#el").spin(false); // Kills the spinner. |
| --type-add=ruby=.haml,.rake,.rsel,.builder | |
| --type-add=html=.html.erb,.html.haml | |
| --type-add=js=.js.erb | |
| --type-add=css=.sass,.less,.scss | |
| --type-set=cucumber=.feature | |
| --type-set=coffeescript=.coffee | |
| --ignore-dir=coverage | |
| --ignore-dir=doc | |
| --ignore-dir=log |
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| var someRegexes = { | |
| email: /^([^0-9\.\+])([\w.\+])+\@(([\w\-])+\.)+[a-zA-Z0-9]{2,}/, | |
| domain: /^(http:\/\/)([\w]+\.){1,}[A-Z]{2,}\b/gi, | |
| creditcard: /^[0-9]{16}$/gi, | |
| ccspecial: /^[0-9]{12}$/gi, | |
| cvv: /^[0-9]{3,4}$/gi, | |
| phone: /^[0-9]{10}$/gi, | |
| postcode: /^[0-9]{4}$/gi, | |
| numeric: /^[0-9]+$/gi, | |
| alphanumeric: /^[0-9a-f\-\s]+$/gi, |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 @louis_remi <http://louisremi.com> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| /*! | |
| * jQuery Tiny Pub/Sub for jQuery 1.7 - v0.1 - 27/10/2011 | |
| * Based on @cowboy Ben Alman's REALLY tiny pub/sub. | |
| * 1.7 specific updates by @addyosmani. | |
| * Copyright maintained by @cowboy. | |
| * Dual licensed under the MIT and GPL licenses. | |
| */ | |
| (function($){ |