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:
#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, |
<?php | |
/** | |
* Add a big fucking warning when the client uploads a PNG when they should | |
* be using a JPG | |
*/ | |
function varga_62341_admin_png_warning() { | |
global $post_type; | |
echo '<script>var varga_62341_post_type="'.$post_type.'";</script>'; | |
?> |
div, | |
%test, | |
.test, | |
#test-#{$test}, | |
.test:not(.test), | |
.test:not(div), | |
.test[test] {} | |
&-test, | |
&.test { | |
@extend %test, .test; |
$('#myImage').resizeToParent(); |
I hereby claim:
To claim this, I am signing this object:
<?php | |
function my_custom_submenu() { | |
global $post; | |
$menu_items = wp_get_nav_menu_items('Menu'); | |
$current_menu_id = null; | |
// get current top level menu item id | |
foreach ( $menu_items as $item ) { |
$.getJSON('/resources/twitter_cache.php', function(data) { | |
$.each(data, function(i) { | |
console.log( data[i] ); | |
// do something with tweet | |
}); | |
}); |
<?php | |
error_reporting( 0 ); // don't let any php errors ruin the feed | |
$username = 'username'; | |
$number_tweets = 4; | |
$feed = "http://api.twitter.com/1/statuses/user_timeline.json?screen_name={$username}&count={$number_tweets}&include_rts=1&callback=?"; | |
$cache_file = dirname(__FILE__).'/cache/'.'twitter-cache'; | |
$modified = filemtime( $cache_file ); | |
$now = time(); |
gem 'will_paginate', '~> 3.1.0' |
127.0.0.1 project1.localhost | |
127.0.0.1 project2.localhost |