Skip to content

Instantly share code, notes, and snippets.

View beshur's full-sized avatar

Alex Buznik beshur

View GitHub Profile
@beshur
beshur / Jquery-on-the-go.js
Last active October 3, 2015 02:57
Jquery on the go
// paste this into console
var script = document.createElement('script');
script.setAttribute('type', 'text/javascript');
script.setAttribute('src', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js');
document.body.appendChild(script);
//typeof $
@beshur
beshur / gist:2363417
Created April 11, 2012 23:16
PHP Wordpress - slidejs simple
// easy SlidesJs gallery adding to wordpress page
function slides_from_post($atts) {
extract(shortcode_atts(array(
"exclude" => '' // parameter to exclude the images you don't want to show
), $atts));
;
$tmp = explode(", ", $exclude);
if ($tmp) {
foreach ($tmp as $tmpItem) {
@beshur
beshur / gist:2050911
Created March 16, 2012 16:30
Forms input hover
$("form *").hover(function () {
$(this).focus();
});