http://codersblock.com/blog/checkbox-trickery-with-css/#comment-2107072157
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 lifeCycleLogger = [ | |
| 'componentWillMount', | |
| 'componentDidMount', | |
| 'componentWillUnmount', | |
| 'componentWillReceiveProps', | |
| 'shouldComponentUpdate', | |
| 'componentWillUpdate', | |
| 'componentDidUpdate' | |
| ].reduce( | |
| (o, m) => { |
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
| '.source.js': | |
| 'Create React component': | |
| 'prefix': 'reactcomp' | |
| 'body': 'var React = require("react");\n\nvar $1 = React.createClass({\n\n\trender: function() {\n\t}\n\n});\n\nmodule.exports = $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
| function installCSS() { | |
| var styleEl = document.createElement('style'); | |
| styleEl.id = "inline-editor-css"; | |
| document.head.appendChild(styleEl); | |
| var sheet = styleEl.sheet; | |
| var rules = sheet.rules; | |
| sheet.insertRule('.editor { width: 100%; position: relative; display: none; }', rules.length); | |
| sheet.insertRule('.editor textarea { width: 100%; display: block; }', rules.length); | |
| sheet.insertRule('.editor .button.ok { position: absolute; left: 0; top: 100%; }', rules.length); |
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
| (function($) { | |
| var | |
| dates = $('.entry-header .entry-meta'), | |
| page = $('#page'), | |
| post = $('#content > article.post') | |
| ; | |
| $(window).on('resize', keepDateAligned); | |
| keepDateAligned(); |
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
| /* | |
| Theme Name: Twenty Eleven Child | |
| Theme URI: http: //example.com/ | |
| Description: Child theme for the Twenty Eleven theme | |
| Author: Giulio Mainardi | |
| Author URI: http: //mgiulio.altervista.org | |
| Template: twentyeleven | |
| Version: 0.1.0 | |
| */ |
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 | |
| add_action('template_redirect', 'on_template_redirect'); | |
| function on_template_redirect() { | |
| if (!is_home()) | |
| return; | |
| wp_enqueue_script( | |
| 'post-date', |
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
| jQuery.fn.swap = function(b){ | |
| b = jQuery(b)[0]; | |
| var a = this[0]; | |
| var t = a.parentNode.insertBefore(document.createTextNode(''), a); | |
| b.parentNode.insertBefore(a, b); | |
| t.parentNode.insertBefore(b, t); | |
| t.parentNode.removeChild(t); | |
| return this; | |
| }; |
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
| <script src="http://code.jquery.com/jquery-1.5.js"></script> | |
| <script> | |
| jQuery.fn.clone = function( dataAndEvents, deepDataAndEvents ) { | |
| dataAndEvents = dataAndEvents == null ? false : dataAndEvents; | |
| deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; | |
| return this.map( function () { | |
| return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); | |
| }); | |
| }; |
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
| <ul id="nav"> | |
| <li><a href="#" title="Home Page" rel="nofollow">Home</a></li> | |
| <li><a href="#" title="About" rel="nofollow">About</a></li> | |
| <li><a href="#" title="Projects" rel="nofollow">Projects</a></li> | |
| <li><a href="#" title="Contact" rel="nofollow">Contact</a></li> | |
| </ul> | |
| <!-- | |
| http://en.wikipedia.org/wiki/Nofollow | |
| --> |