Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| // Mixins ======================================================================================== / | |
| @mixin clearfix { // micro clearfix hack | |
| zoom: 1; | |
| &:before, &:after { content: ""; display: table; } | |
| &:after { clear: both; } | |
| } | |
| @mixin border-box { // border-box mixin | |
| -webkit-box-sizing: border-box; |
| [ | |
| { "keys": ["ctrl+shift+b"], "command": "insert_snippet", "args": {"contents": "${TM_COMMENT_START/s*$//} ==${1/./=/g}==${TM_COMMENT_END/^s*(.+)/ $1/}\n${TM_COMMENT_START/s*$//} = ${1:Banner} =${TM_COMMENT_END/^s*(.+)/ $1/}\n${TM_COMMENT_START/s*$//} ==${1/./=/g}==${TM_COMMENT_END/^s*(.+)/ $1/}"}} | |
| ] |
| module.exports = function(grunt) { | |
| // Project configuration. | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| compass: { | |
| dev: { | |
| options: { |
| [ | |
| { "keys": ["ctrl+shift+b"], "command": "insert_snippet", "args": {"contents": "${TM_COMMENT_START/s*$//} ==${1/./=/g}==${TM_COMMENT_END/^s*(.+)/ $1/}\n${TM_COMMENT_START/s*$//} = ${1:Banner} =${TM_COMMENT_END/^s*(.+)/ $1/}\n${TM_COMMENT_START/s*$//} ==${1/./=/g}==${TM_COMMENT_END/^s*(.+)/ $1/}"}}, | |
| { "keys": ["super+shift+l"], | |
| "command": "insert_snippet", | |
| "args": { | |
| "contents": "console.log(${1:}$SELECTION);${0}" | |
| }, "context": | |
| [ |
| [ | |
| { "keys": ["ctrl+shift+b"], "command": "insert_snippet", "args": {"contents": "${TM_COMMENT_START/s*$//} ==${1/./=/g}==${TM_COMMENT_END/^s*(.+)/ $1/}\n${TM_COMMENT_START/s*$//} = ${1:Banner} =${TM_COMMENT_END/^s*(.+)/ $1/}\n${TM_COMMENT_START/s*$//} ==${1/./=/g}==${TM_COMMENT_END/^s*(.+)/ $1/}"}}, | |
| { "keys": ["super+shift+l"], | |
| "command": "insert_snippet", | |
| "args": { | |
| "contents": "console.log(${1:}$SELECTION);${0}" | |
| }, "context": | |
| [ |
| /* See http://mrdanadams.com/2012/pixel-ems-css-conversion-sass-mixin/ */ | |
| /* Default font size in pixels if not overridden. */ | |
| $baseFontSize: 16; | |
| /* Convert PX units to EMs. | |
| Ex: margin-right: pem(16); | |
| */ | |
| @function pem($pxval, $base: $baseFontSize) { | |
| @return #{$pxval / $base}em; |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
| <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.10.1.min.js"><\/script>')</script> |
| <script type="text/javascript"> | |
| $('select').each(function () { | |
| var title = this.options[this.selectedIndex].text; | |
| $(this).css({ opacity: '0', zIndex: '9999' }); | |
| $(this).after('<span class="select">' + title + '</span>'); | |
| }); | |
| $('select').change(function () { | |
| var getvalue = this.value; | |
| var title = this.options[this.selectedIndex].text; |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| // private method | |
| // Wraps the HTML in a TAG, Tag is optional | |
| // If the html starts with a Tag, it will wrap the context in that tag. | |
| // doesn't ACTUALLY work | |
| function wrap(xhtml, tag) { | |
| // new approach | |
| // createDocumentFragment | |
| var docFrag = document.createDocumentFragment(), | |
| dummy, | |
| wrapTag; |