I hereby claim:
- I am mrreiha on github.
- I am mrreiha (https://keybase.io/mrreiha) on keybase.
- I have a public key ASAuSQLDhuw-gbWfOqtp3ZYsz5bBvxiIuljfKCrWwYi8Ogo
To claim this, I am signing this object:
<?php | |
const OS = array( | |
// Windows | |
'Windows 10' => 'windows nt 10\.0', | |
'Windows 8.1' => 'windows nt 6\.3', | |
'Windows 8' => 'windows nt 6\.2', | |
'Windows 7' => 'windows nt 6\.1', | |
'Windows Vista' => 'windows nt 6\.0', |
I hereby claim:
To claim this, I am signing this object:
# ANSI Start Codes | |
# Styles. | |
Normal="\x1b[0m" | |
Bold="\x1b[1m" | |
Faint="\x1b[2m" | |
Italic="\x1b[3m" | |
Underline="\x1b[4m" | |
Blink_Slow="\x1b[5m" | |
Blink_Rapid="\x1b[6m" |
var windowHeight = Math.min( innerHeight || Infinity, screen.availHeight, screen.height ); | |
var windowWidth = Math.min( innerWidth || Infinity, screen.availWidth, screen.width ); |
/** | |
* ================================================================================= | |
* Convert latin numbers to persian, and persian numbers to latin | |
* ================================================================================= | |
* | |
* @author Reiha Hosseini ( @mrReiha ) | |
* @since 2015/09 | |
* | |
* @license GPL | |
* |
/* It's like background-size: contain; */ | |
.parent img { | |
max-height: 100%; | |
max-width: 100%; | |
} | |
/* It's like background-size: cover; */ | |
.parent img { | |
min-height: 100%; | |
min-width: 100%; |
var putCaretAtEnd = function() { | |
var range; | |
if ( typeof this.selectionStart == 'number' ) | |
this.selectionStart = this.selectionEnd = this.value.length; | |
else if ( typeof this.createTextRange != 'undefined' ) { | |
this.focus(); | |
if ( isset( $_SERVER[ 'HTTP_USER_AGENT' ] ) ) | |
if ( preg_match( '/bot|spider|curl|crawl/i', $_SERVER[ 'HTTP_USER_AGENT' ] ) ) | |
exit; |
$ip = isset( $_SERVER[ 'HTTP_X_REAL_IP' ] ) ? | |
$_SERVER[ 'HTTP_X_REAL_IP' ] : ( isset( $_SERVER[ 'HTTP_X_FORWARDED_FOR' ] ) ? | |
$_SERVER[ 'HTTP_X_FORWARDED_FOR' ] : $_SERVER[ 'REMOTE_ADDR' ] ); |
SELECT *, CONVERT( CAST( `field` as BINARY ) USING utf8 ) as `coverted_field` FROM `table` |