I hereby claim:
- I am levymetal on github.
- I am levymetal (https://keybase.io/levymetal) on keybase.
- I have a public key whose fingerprint is 9B4B CA67 E4CB 4791 1894 BA66 A223 AEAA B714 64F3
To claim this, I am signing this object:
<?php | |
error_reporting( 0 ); // don't let any php errors ruin the feed | |
$username = 'username'; | |
$number_tweets = 4; | |
$feed = "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name={$username}&count={$number_tweets}&include_rts=1"; | |
$cache_file = dirname(__FILE__).'/cache/'.'twitter-cache'; | |
$modified = filemtime( $cache_file ); | |
$now = time(); |
#sub-menu ul li { | |
display: none; | |
} | |
#sub-menu .menu > li > a { | |
display: none; | |
} | |
#sub-menu ul .current-menu-item, | |
#sub-menu ul .current-menu-item li, |
tell application "Finder" | |
tell the front Finder window | |
-- get the current bounds of the finder window | |
set b to the bounds | |
-- create a really wide window | |
set the bounds to {item 1 of b, item 2 of b, 3000, item 4 of b} | |
-- set window back to its original size | |
set the bounds to b | |
end tell | |
end tell |
$('.input-text.qty', 'ul.products').on('input', function() { | |
$(this).closest('li').find('.add_to_cart_button').data('quantity', $(this).val()); | |
}); |
<?php | |
/** | |
* Allow hypenated usernames | |
* | |
* @wp-hook wpmu_validate_user_signup | |
* @param array $result | |
* @return array | |
*/ | |
function wpse_59760_allow_hyphenated_usernames( $result ) { |
<?php | |
function my_wp_nav_menu( $theme_location = 'primary', $container = false, $items_wrap = "<div class='widget'><nav><ul>%3\$s</ul></nav></div>" ) { | |
$menu = wp_nav_menu(array( | |
'container' => $container, | |
'items_wrap' => $items_wrap, | |
'sub_menu' => true, | |
'theme_location' => $theme_location, | |
'echo' => false | |
)); |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** wp_nav_menu( array( | |
'theme_location' => 'primary', | |
'sub_menu' => true | |
) ); | |
or | |
wp_nav_menu( array( |
<?php | |
/* usage | |
* | |
* wp_nav_menu( array( | |
* 'theme_location' => 'primary', | |
* 'sub_menu' => true, | |
* 'root_id' => id_of_menu_item | |
* ) ); | |
*/ |
<?php | |
// call this script using a GET parameter, eg: http://your-domain.com/twitter-cache.php?screen_name=your_twitter_username | |
error_reporting( 0 ); // don't let any php errors ruin the feed | |
$username = $_GET['screen_name']; | |
$number_tweets = 4; | |
$feed = "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name={$username}&count={$number_tweets}&include_rts=1"; | |
$cache_file = dirname(__FILE__).'/cache/'.'twitter-cache-'.$username; |