| Language / Prior Art | ‘Valid’ HTML | HTML Mapping | Example | Example with Args |
|---|---|---|---|---|
| ‘Valid’ | CSS Selectable | CSS Mapping | CSS Select | CSS Selector w Args |
| JavaScript MooTools | Multiple instance Separate Args | new Foo(element); new Bar(element) |
new Foo(element, {a:"a", bB:"b B", c:{c:1}}); new Bar(element, {d:"d"}) |
|
| — | — | — | — | — |
| HTML attr Dojo <1.6 | NO |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>com.subtlegradient.Packager.setupOrUpdatePackages</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>~/bin/mootools-update-libs.sh</string> | |
| </array> |
This file contains hidden or 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 | |
| function flushPause($pause = 0){ | |
| echo ob_get_clean(); | |
| @ob_flush(); | |
| flush(); | |
| usleep($pause * 1000000); | |
| } | |
| ob_start(); | |
| ob_implicit_flush(false); | |
| flushPause(); |
This file contains hidden or 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
| /* | |
| --- | |
| name: DomReady | |
| description: Contains the custom event domready. | |
| license: MIT-style license. | |
| requires: [Browser, Element, Element.Events] |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # | |
| # url : https://gist.github.com/672684 | |
| # version : 2.0.2 | |
| # name : appify | |
| # description : Create the simplest possible mac app from a shell script. | |
| # usage : cat my-script.sh | appify MyApp | |
| # platform : Mac OS X | |
| # author : Thomas Aylott <oblivious@subtlegradient.com> |
This file contains hidden or 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
| #!/usr/bin/env osascript | |
| -- name: Create a New File | |
| -- description: | |
| -- Create a new Untitled file in the current Finder window | |
| -- Intended to be used as an appify app in the Finder toolbar | |
| -- | |
| -- author: Thomas Aylott <oblivious@subtlegradient.com> | |
| -- license: MIT | |
| tell the application "Finder" |
This file contains hidden or 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
| // // // // // // // // // // // // // // // // // // // // // | |
| // works as a generic! | |
| Array.sg_asyncEach([1, 2, 3], | |
| function(value, key, array) { | |
| console.log(value, key, array) | |
| return "eachFn result " + value | |
| }, | |
| function(err, result) { | |
| console.log('sg_asyncEach callback', err && "Error!" || "Success!", result) |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Author: Thomas Aylott <thomas@subtlegradient.com> | |
| # Usage:| | |
| # git-jira getIssue | |
| # git-jira getComments | |
| # Notes:| | |
| # This expects you to use branch names like "thomas/HUE-123-Make-Things-Awesomer" or "tom-HUE-321-code-stuff" | |
| BRANCH_NAME="$(git symbolic-ref HEAD|sed 's/refs\/heads\///')" | |
| TICKET_ID="$(echo "$BRANCH_NAME"|sed -E 's/^.*[/-]([A-Z]+-[0-9]+).*$/\1/')" |
This file contains hidden or 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
| <form> | |
| <input type="datetime" data-behavior="TimePicker" data-timepicker-pad="true" data-timepicker-labels-hours="HR" /> | |
| </form> | |
| <a href="#my_modal" data-behavior="TargetModal">Open Modal</a> | |
| <div id="my_modal" data-behavior="Modal" data-modal-style="color:#333; opacity:0.7"> | |
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | |
| </div> |
And then with a separate behavior sheet.
<img src=Cheddar.png alt="Pungent Orange Cheddar Cheese" data-type=food-dairy-cheese-cheddar data-smell=pungent data-color=orange>
And the Behavior Sheet
<style type="text/behavior2.0">
[data-type|=food-dairy-cheese]{
@behavior Sing {