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
| <?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
| <?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
| <div style='background-image: url(' data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg"><rect fill="#F00" width="100%" height="100%" rx="100%"/></svg> ');padding: 2em;display: inline-block;text-align: center;'> | |
| I haz a circular! | |
| </div> |
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 node #// -*- Mode: Node.js JavaScript; tab-width: 4; -*- | |
| /* | |
| --- | |
| url: http://gist.github.com/441101 | |
| name : safari-get-html | |
| description : safari-get-html will rock your socks! | |
| authors : Thomas Aylott | |
| copyright : © 2010 Thomas Aylott | |
| license : MIT |
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 ruby | |
| =begin | |
| --- | |
| url : http://gist.github.com/437012 | |
| name : complete.rb | |
| description : "Ruby Code Completion framework for TextMate. Supports ENV var, JSON & Plist completion lists & options." | |
| authors : Thomas Aylott | |
| copyright : © 2008-2010 Thomas Aylott | |
| license : MIT |
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
| =begin | |
| --- | |
| url: http://gist.github.com/437000 | |
| ... | |
| =end | |
| # When creating a custom regex for Word.current_word, you need to keep a few things in mind: | |
| # The regex matches from your caret, so your caret position will always be the beginning of the line | |
| # Everything before your caret is reversed for the match, so the left of your caret will also match your caret position as ^ | |
| # You must use a capture group () for the text you're trying to match | |
| # You must use a capture group () for the text before/after your match |
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
| # generate xml scopes from document using a single language | |
| cat my-document|mater my-language | |
| # generate xml scopes from document | |
| # using a single language | |
| # providing many other languages | |
| # as optional imports | |
| # and scope injection (TM2+ only) | |
| cat my-document|mater -l my-language ~/Library/Application\ Support/TextMate/Bundles/*/Syntaxes/* | |
| # or |
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: fx | |
| description: very basic animation logic. | |
| authors: | |
| - "[Valerio Proietti](http://mad4milk.net)" | |
| - "[Thomas Aylott](http://subtlegradient.com)" | |
| license: "[MIT](http://mootools.net/license.txt)" | |
| provides: fx | |
| ... |
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
| var myListener; | |
| // Make a Listener instance | |
| myListener = element.listen().relay("a[href^=#]").listen('click').tell(function(event){ event.stop() }); | |
| myListener = Butt.listen({ | |
| listen: 'kick', | |
| relay: "a[href^=#]", | |
| tell: function(event){ event.stop() }, | |
| default | |
| }); |