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 consoleLog(msg) { | |
| if (typeof console !== ‘undefined’) { | |
| console.log(msg); | |
| } | |
| } |
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
| body {hyphens: auto;} | |
| code, var, kbd, samp, tt, dir, listing, plaintext, xmp, | |
| abbr, acronym, blockquote, q {hyphens: none;} |
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 class="modal hide" id="<#id#>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
| <div class="modal-header"> | |
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| <h3 id="myModalLabel"> | |
| <#modal-title#> | |
| </h3> | |
| </div> | |
| <div class="modal-body"> | |
| <#modal-body#> | |
| </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
| $(document).ready(function() { | |
| $("a").click(function(event) { | |
| alert(event.target.id); | |
| }); | |
| }); |
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
| cd to/dir/where/you/want/to/start | |
| find . -type d -name '.svn' -print -exec rm -rf {} \; |
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 doesAppExist() { | |
| // try to open iOS application | |
| document.location = 'customiosappurl://'; | |
| // if above failed, nothing happened | |
| // set a timeout and do something else | |
| !window.document.webkitHidden && setTimeout(function() { | |
| setTimeout(function() { | |
| window.location = '//apple.itunes.com/whatever' | |
| }, 100); |
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
| { | |
| "files": | |
| { | |
| "Dynamic-Carousel": "https://raw.github.com/Wilto/Dynamic-Carousel/master/plugin.js", | |
| "FitText": "https://raw.github.com/davatron5000/FitText.js/master/jquery.fittext.js", | |
| "FitVids": "https://raw.github.com/davatron5000/FitVids.js/master/jquery.fitvids.js", | |
| "backbone": "http://documentcloud.github.com/backbone/backbone.js", | |
| "backbone.min": "http://documentcloud.github.com/backbone/backbone-min.js", | |
| "Eric-Meyer-Reset": "http://meyerweb.com/eric/tools/css/reset/reset.css", | |
| "history": "https://raw.github.com/balupton/history.js/master/scripts/compressed/history.js", |
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 id="symbolsetter"> | |
| <table> | |
| <tr> | |
| <td><input type="button" name="sym-copy" onclick="insertSymbol('copy')" value="©" /></td> | |
| </tr> | |
| <tr> | |
| <td><input type="button" name="sym-reg" onclick="insertSymbol('reg')" value="®" /></td> | |
| </tr> | |
| <tr> | |
| <td><input type="button" name="sym-trade" onclick="insertSymbol('trade')" value="™" /></td> |
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
| viewport = document.querySelector("meta[name=viewport]"); | |
| viewport.setAttribute('content', 'initial-scale=1.0, user-scalable=no, width=device-width, maximum-scale=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
| add_action('wp_head', 'show_template'); | |
| function show_template() { | |
| global $template; | |
| print_r($template); | |
| } |
OlderNewer