Skip to content

Instantly share code, notes, and snippets.

S. Ali Mihandoost AliMD

View GitHub Profile
@AliMD
AliMD / ThemeForest Total Sale Calculator.md
Last active December 14, 2015 15:39
ThemeForest Total Sale and Sale/Month Calculator and Convert to Iranian Rial ;)

ThemeForest Total Sale Calculator

Create a bookmark in your broser and copy pase calc.min.js content in url.
Now you can go to the a themeforest page and click on that bookmark.
You can set window.dollarInToman=5000 in js console.
If you want to make money in themeforest like us cotact me ;)

@AliMD
AliMD / Javascript es5 and strict mode with jshint configs.md
Last active December 15, 2015 06:39
Javascript es5 and strict mode with jshint configs ;)

Salam be hame
Hamegi azin be bad az in olgoo baraye code haye .js estefade konin
va hamishe code hatoon ro ba site jshint.com check konin ke validate bashe ;)

@AliMD
AliMD / Install Package Controll.py
Last active December 16, 2015 14:39
Sublime Text 2 for Web Developers, Ali.MD Edition ;)
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation');
@AliMD
AliMD / console log style trick.js
Created May 9, 2013 23:18
Console log trick !
for(var i=0;i<20;i++) console.log('%c Hello !','padding:3px;color:hsl('+(Math.random()*360)+',50%,50%);font-size:'+(i*3+16)+'px;font-weight:bold');
@AliMD
AliMD / lib.php
Created June 11, 2013 15:16
Get list of file in directory.
<?php
function getFiles($path,$type){
$files = scandir($path);
foreach ($files as $file){
$temp = explode('.',$file);
$file_type = strtolower( end($temp) ); // JPG => jpg
if($file_type == $type){
$images[] = $file;
}
@AliMD
AliMD / jsbin.alupah.css
Created July 7, 2013 07:28
Very Basic Table Layout
.container {
width: 900px;
margin: 0 auto;
}
.header{
height: 80px;
}
.leftpanel{
.mainmenu {
list-style-type: none;
padding: 0;
}
.mainmenu li {
float: left;
margin-right: 2px;
}
.mainmenu {
list-style-type: none;
padding: 0;
width: 450px;
margin: 0 auto;
}
.mainmenu li {
float: left;
margin-right: 04px;
@AliMD
AliMD / jsbin.atipuj.html
Created July 9, 2013 15:42
Pure CSS3 Image !
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Image 2 Box-Shadow !!!</title>
</head>
<body>
<div id="box"></div>
<script src="image2boxshadow.js" type="text/javascript"></script>
</body>