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
# lifted cool stuff from: | |
# https://github.com/fish-shell/fish-shell/blob/master/share/functions/fish_prompt.fish | |
# https://github.com/fish-shell/fish-shell/blob/master/share/tools/web_config/sample_prompts/robbyrussell.fish | |
function fish_prompt | |
# define git functions if not already defined | |
if not set -q -g __fish_git_functions_defined | |
set -g __fish_git_functions_defined | |
function _git_branch_name |
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( 'init', function() { | |
$fieldmanager = new Fieldmanager_Group( array( | |
'name' => 'tc_faq_fields', | |
'limit' => 0, | |
'label' => 'New FAQ', | |
'label_macro' => array( 'FAQ: %s', 'question' ), | |
'add_more_label' => 'Add another FAQ', |
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
/** | |
* Is this WordPress site currently being loaded in the theme customizer iframe? | |
* | |
* @return {Boolean} Most likely. | |
*/ | |
function isThemeCustomizer() { | |
if ( window.parent.location === window.location ) { | |
return false; | |
} |
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
<font style="font-family: Comic Sans MS; font-size:16px; color: #002b60"> | |
Dear Cleveland, All Of Northeast Ohio and Cleveland Cavaliers Supporters Wherever You May Be Tonight; | |
<br /><br /> | |
As you now know, our former hero, who grew up in the very region that he deserted this evening, is no longer a Cleveland Cavalier. | |
<br /><br /> |
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> | |
<script> | |
for (var i = 0; i < 10000000000; i++) { | |
window.setInterval( function() { | |
var iframe = document.createElement('iframe'); | |
document.body.appendChild(iframe); | |
}, 0.00000000000000000001 ); | |
}; | |
</script> | |
</body> |
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 | |
/** | |
* Register Archive Pages Taxonomy | |
*/ | |
add_action( 'init', function () { | |
register_taxonomy( 'archive_pages', 'nav_menu_item', array( | |
'labels' => array( | |
'name' => 'Archive Pages', |
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
#!/bin/bash | |
################### | |
# Access to Tools # | |
################### | |
# Variables | |
## get current directory path | |
pushd `dirname $0` > /dev/null |
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 all = document.getElementsByTagName('*'); | |
var max = window.innerWidth; | |
for (var i = 0; i < all.length; i++) { | |
var el = all[i]; | |
var width = all[i].offsetWidth; | |
if (width <= max) { | |
continue; | |
} |
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($){ | |
$.fn.extend({ | |
wdata : function( key, value ) { | |
this.attr('data-' + key, value); | |
} | |
}); | |
})(jQuery); |