Skip to content

Instantly share code, notes, and snippets.

Avatar
☁️
Clouding Stuff ...

Ali Mihandoost AliMD

☁️
Clouding Stuff ...
View GitHub Profile
@AliMD
AliMD / TransferDollar.md
Created Oct 4, 2012
Transfer Dollar for domain and host
View TransferDollar.md
@AliMD
AliMD / gist:3910476
Created Oct 18, 2012
Dark and white 60% background base64 for iEeeeeeee
View gist:3910476

dark_bg.png

<div style="background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA9JREFUeNpiYGBgmAkQYAAAngCaoMXLCwAAAABJRU5ErkJggg==');"></div>

light_bg.png

<div style="background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABBJREFUeNpi+P///0yAAAMACZUDl8+B/NgAAAAASUVORK5CYII=');"></div>
@AliMD
AliMD / gist:3918649
Created Oct 19, 2012
Invert Pages :D
View gist:3918649

Nazaretoon rajebe github e chappe chiye ? :trollface: :D
in matn ro too address bar browser copy konid

data:text/html;base64,TW92ZSB0aGlzIGxpbmsgPGEgaHJlZj0iamF2YXNjcmlwdDooZnVuY3Rpb24oKXtkb2N1bWVudC5ib2R5LnN0eWxlLndlYmtpdFRyYW5zaXRpb249J2FsbCAxcyc7c2V0VGltZW91dChmdW5jdGlvbigpe2RvY3VtZW50LmJvZHkuc3R5bGUud2Via2l0VHJhbnNmb3JtPSdzY2FsZVgoLTEpJzt9LDEwKTt9KSgpOyI+SW52ZXI8L2E+IHRvIHlvdXIgYm9va21hcmsgOyk=

hala too har pagi ke doost dashti roosh click konin ;)
baghiye khalaghiyat ha be ohdeye khodetoon

View gist:3918905

At the Hangar

  • hold Shift and type xaxdqx to unlock the A-12 Avenger 2.
  • hold Shift and type aqaqax to unlock the F-18 HARV.
  • hold Shift and type dxdxdq to unlock the FB-22 Strike Raptor.
@AliMD
AliMD / onmousewheel.md
Created Oct 20, 2012
The onmousewheel event of JavaScript
View onmousewheel.md

onmousewheel event and Firefox's equivalent

var mousewheelevt=(/Firefox/i.test(navigator.userAgent))? "DOMMouseScroll" : "mousewheel" ; //FF doesn't recognize mousewheel as of FF3.x
 
if (document.attachEvent) //if IE (and Opera depending on user setting)
    document.attachEvent("on"+mousewheelevt, function(e){alert('Mouse wheel movement detected!')});
else if (document.addEventListener) //WC3 browsers
    document.addEventListener(mousewheelevt, function(e){alert('Mouse wheel movement detected!')}, false);
@AliMD
AliMD / gist:3932137
Created Oct 22, 2012
Customizing WordPress Menu With Descriptions
View gist:3932137

Customizing WordPress Menu With Descriptions

Place this in your functions.php file

// Customizing WordPress Menu With Descriptions

class Menu_With_Description extends Walker_Nav_Menu {
	function start_el(&$output, $item, $depth, $args) {
		global $wp_query;
@AliMD
AliMD / gist:3932317
Created Oct 22, 2012 — forked from billerickson/gist:1325991
Menu With Description class
View gist:3932317
// Customizing WordPress Menu With Descriptions
class Menu_With_Description extends Walker_Nav_Menu {
function start_el(&$output, $item, $depth, $args) {
global $wp_query;
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
$class_names = $value = '';
$classes = empty( $item->classes ) ? array() : (array) $item->classes;
View Follow_Org.md

Copy and paste and run this code in your chrome console

$.post("https://github.com/users/follow?target=1schools");

Now you following 1schools organization. ;)