View Javascript OO Cheat Sheet
| /*********************************************************************************************************************** | |
| *********************************************************************************************************************** | |
| * CONTENTS: | |
| * Native Object | |
| * Object Literal | |
| * Basic Object | |
| * Psuedo-Class | |
| * Self Executing/Invoking Structure | |
| * Lazy Function | |
| * Module Pattern |
View defaultPluginName.js
| /*! | |
| * jQuery plugin boilerplate | |
| */ | |
| ;(function ( $, window, document, undefined ) { | |
| /** | |
| * @defaults | |
| * @property pluginName {string} Plugin name | |
| * @property defaults {object} Default values for plugin |
View ffmpegchapters-explicit.sh
| #!/bin/bash | |
| # Author: http://crunchbang.org/forums/viewtopic.php?id=38748#p414992 | |
| # m4bronto | |
| # Chapter #0:0: start 0.000000, end 1290.013333 | |
| # first _ _ start _ end | |
| while [ $# -gt 0 ]; do | |
| ffmpeg -i "$1" 2> tmp.txt |
View imacros-cheatsheet.md
iMacro CheatSheet - Command Reference
- http://wiki.imacros.net/Command_Reference
- http://wiki.imacros.net/iMacros_for_Firefox#Javascript_Scripting_Interface
Variables
iMacros supports 3 types of variables
- The macro variables !VAR0 thru !VAR9. They can be used with the SET and ADD command inside a macro.
View contrast-color.js
| /** | |
| * Calculate the contrast of a color to determine the appropriate opposing text color. | |
| * @author D. Condrey | |
| * @param {string|object} - element background-color or element | |
| * @return {string} | |
| * white - if background is a dark shade color | |
| * black - if background is a light shade color | |
| */ | |
| define(function() { |
View svn-color.py
| #!/usr/bin/env python | |
| """ | |
| Author: Saophalkun Ponlu (http://phalkunz.com) | |
| Contact: phalkunz@gmail.com | |
| Date: May 23, 2009 | |
| Modified: June 15, 2009 |
View readme.md
TEST
Markdown template
Author: D. Condrey
E-mail:
View handlebars-demodata.xml
| <?xml version="1.0" encoding="UTF-8"?> | |
| <data> | |
| <test>test</test> | |
| <strings> | |
| <string id="SITE_TITLE"><![CDATA[Title]]></string> | |
| </strings> | |
| <quiz> | |
| <page> | |
| <question><![CDATA[Question 1]]></question> | |
| <answers> |
View gist:60c73fcc8fae9346a16d
| <form class="topLabel"> | |
| <header class="form-header"> | |
| <div class='form-header-overlay'></div> | |
| <h2>Progress</h2> | |
| </header> | |
| <ul id="quiz"> | |
| <li id="form-field-1"> | |
| <fieldset> |
NewerOlder