⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Simple CSS Selector | |
* Copyright(C) 2010 by Amin Akbari [ eAmin.js on gmail ] | |
* Licenced under the MIT Style License [http://www.opensource.org/licenses/mit-license.php] | |
* Created on: 1/22/2010 | |
*/ | |
var selector = function(query) { | |
var trim = function(arg) { return arg.replace(/^\s+|\s+$/, ''); }; | |
var contains = function(arg1, arg2) { return arg1.indexOf(arg2) !== -1; }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* English digit to persian | |
* Copyright(C) 2009 by Amin Akbari [ http://eAmin.me/ ] | |
* Licensed under the MIT Style License [http://www.opensource.org/licenses/mit-license.php] | |
* | |
*/ | |
String.prototype.toFaDigit = function() { | |
return this.replace(/\d+/g, function(digit) { | |
var ret = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Original by AHHP(Amir Hossein Hodjaty Pour) ~ [email protected] | |
* Port to JavaScript by Amin Akbari [ eAmin.js on Gmail ] | |
* License : GPL | |
*/ | |
function western_to_persian(str) { | |
var character = { | |
'\u00db\u00b0' : '\u06f0', '\u00db\u00b1' : '\u06f1', '\u00db\u00b2' : '\u06f2', '\u00db\u00b3' : '\u06f3', '\u00db\u00b4' : '\u06f4', '\u00db\u00b5' : '\u06f5', '\u00db\u00b6' : '\u06f6', '\u00db\u00b7' : '\u06f7', '\u00db\u00b8' : '\u06f8', | |
'\u00db\u00b9' : '\u06f9', '\u00d8\u00a2' : '\u0622', '\u00d8\u00a7' : '\u0627', '\u00d8\u00a3' : '\u0623', '\u00d8\u00a5' : '\u0625', '\u00d8\u00a4' : '\u0624', '\u00d8\u00a6' : '\u0626', '\u00d8\u00a1' : '\u0621', '\u00d8\u00a8' : '\u0628', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Grep.js | |
Author : Nic da Costa ( @nic_daCosta ) | |
Created : 2012/11/14 | |
Version : 0.2 | |
(c) Nic da Costa | |
License : MIT, GPL licenses | |
Overview: | |
Basic function that searches / filters any object or function and returns matched properties. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gen_random_pass($length=20) { | |
return (function_exists('openssl_random_pseudo_bytes')) ? | |
base64_encode(openssl_random_pseudo_bytes($length)) | |
: base64_encode(mcrypt_create_iv($length, MCRYPT_DEV_URANDOM)); | |
} | |
$generate = gen_random_pass(); | |
echo 'Generated password: '.$generate; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* (C)Leanest CSS spinner ever | |
*/ | |
@keyframes spin { | |
to { transform: rotate(1turn); } | |
} | |
.progress { | |
position: relative; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Polygon kitties - By @LeaVerou */ | |
div { | |
display: inline-block; | |
position: relative; | |
width: 200px; | |
height: 200px; | |
margin: 40px; | |
overflow: hidden; | |
backface-visibility: hidden; /* hack to make it smoother, suggested by Mottie */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* iMessage-style loader | |
*/ | |
@keyframes fade { | |
to { background: rgba(0,0,0,.1); } | |
} | |
.progress, | |
.progress:before, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Getting the month names from the browser | |
*/ |
OlderNewer