Skip to content

Instantly share code, notes, and snippets.

S. Ali Mihandoost AliMD

View GitHub Profile
* {
padding : 0;
margin : 0;
}
menu:after {
content: ' ';
display: block;
width : 0;
height : 0;
body{
background-color: #DDD;
}
.accslide {
width: 600px;
height: 300px;
border: 1px solid black;
margin: 0 auto;
overflow: hidden;
@AliMD
AliMD / jsbin.epadot.html
Last active December 20, 2015 05:28
jQuery Plugin for Select Odd and Even Elements after selected
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<div>1</div>
<div>1</div>
@AliMD
AliMD / jsbin.oronic.html
Created July 25, 2013 13:43
Use two jQuery version in one file !
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script>
jQuery10 = jQuery;
$.noConflict(); // remove $
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<script>
<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
<meta charset="utf-8" />
<title>JS Bin</title>
</head>
<body>
@AliMD
AliMD / Wordpress Admin Welcome Notice.md
Last active December 20, 2015 14:19
Wordpress Admin Welcome Notice

Wordpress Admin Welcome Notice

Get current user data

add_action('admin_init', 'get_user_info');
function get_user_info(){
  global $current_user;
  get_currentuserinfo();
}
.tbl{
display: table;
width: 100%;
}
.tblc{
display: table-cell;
}
html,body,.tbl,.tblc{
height: 100%;
vertical-align: middle;
html,body{
padding: 0;
margin: 0;
height: 100%;
}
.box {
position: absolute;
top: 0;
bottom: 0;
left: 0;
.grids > * {
outline: 1px dashed gray;
}
.grids > * > * {
outline: 1px dashed lightblue;
}
.grids > * > * > *{
outline: 1px dashed blue;
@AliMD
AliMD / battery.status.web.api.css
Last active December 21, 2015 04:38
Battery Status Web API Sample
/* based on http://www.red-team-design.com/how-to-create-slick-effects-with-css3-box-shadow*/
/* --------------------------- */
body {
background-color: #a9a9a9;
}
span {
font-family: verdana;
font-size: x-large;
}