NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| @mixin ie6 { * html & { @content } } | |
| #logo { | |
| background-image: url("/images/logo.png"); | |
| @include ie6 { background-image: url("/images/logo.gif"); } | |
| } |
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Responsive Design Testing</title> | |
| <style> | |
| body { margin: 20px; font-family: sans-serif; overflow-x: scroll; } | |
| .wrapper { width: 6000px; } | |
| .frame { float: left; } | |
| h2 { margin: 0 0 5px 0; } |
| // if you have a link in your HTML that points to a sound: <a href="http://soundcloud.com/matas/hobnotropic">My Track</a> | |
| // it will convert them to our new HTML5 widgets | |
| $('a[href*="soundcloud.com"]').each(function(){ | |
| var $link = $(this); | |
| $.getJSON('http://soundcloud.com/oembed?format=js&url=' + $link.attr('href') + '&iframe=true&callback=?', function(response){ | |
| $link.replaceWith(response.html); | |
| }); | |
| }); |
| import sublime, sublime_plugin | |
| class CopyScopeCommand(sublime_plugin.TextCommand): | |
| def run(self, edit): | |
| sublime.set_clipboard(self.view.scope_name(self.view.sel()[0].begin())) | |
| sublime.status_message("Copied scope") | |
| def is_enabled(self): | |
| return self.view.sel() |
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| # == Synopsis | |
| # Proof of concept using Fuzzy File Finder to locate a script to edit | |
| # Searches a set of predefined locations for a fuzzy string | |
| # e.g. "mwp" matches both "myweatherprogram" and "mowthelawnplease" | |
| # ................on "(m)y(w)eather(p)rogram" and "(m)o(w)thelawn(p)lease" | |
| # | |
| # Results are ranked and a menu is displayed with the most likely | |
| # match at the top. Editor to be launched and directories to search |
| <?php | |
| /** | |
| * @file | |
| * Default theme implementation to display a block. | |
| * | |
| * Available variables: | |
| * - $block->subject: Block title. | |
| * - $content: Block content. | |
| * - $block->module: Module that generated the block. |
| property theURL : "" | |
| tell application "Safari" | |
| set theURL to URL of current tab of window 1 | |
| end tell | |
| if appIsRunning("Google Chrome") then | |
| tell application "Google Chrome" | |
| make new window | |
| set URL of active tab of window 0 to theURL | |
| activate | |
| end tell |