🧙♂️
This file contains 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
$valid = new Tweevalid(); | |
var_dump($valid->email('test@test.com')); | |
var_dump($valid->url('http://test.com')); | |
var_dump($valid->ip('10.10.10.10')); |
This file contains 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
require(__DIR__.'/c.php'); | |
if(($a=!empty($_GET['r'])?$_GET['r']:'index')&&(!is_callable($a)||substr($a,0,1)=='_'))die("Ooops..."); | |
$a(); |
This file contains 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
<?php | |
include 'tweetpl.php'; | |
$user = 'Awilum'; | |
Tweetpl::display('profile.php', array('user' => $user)); |
This file contains 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
// Numeric plugin | |
(function($) { | |
$.fn.numeric = function() { | |
return this.each(function() { | |
$(this).keydown(function(e) { | |
var key = e.charCode || e.keyCode || 0; | |
return (key == 8 || key == 9 || key == 46 || (key >= 35 && key <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); | |
}); | |
}); | |
}; |
This file contains 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
$locales = array( | |
'om' => 'Afaan Oromoo', | |
'aa' => 'Afaraf', | |
'af' => 'Afrikaans', | |
'ak' => 'Akan', | |
'an' => 'aragonés', | |
'ig' => 'Asụsụ Igbo', | |
'gn' => 'Avañe\'ẽ', | |
'ae' => 'avesta', | |
'ay' => 'aymar aru', |
This file contains 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
/* IE8 Only */ | |
.myClass { | |
color:red\0/; | |
padding:70px\0/; | |
} | |
/* IE 6 Only */ | |
* html .myClass { | |
... | |
} |
This file contains 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
<meta name="viewport" content="initial-scale = 1,user-scalable=no,maximum-scale=1.0"> |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Editor with Preview</title> | |
<style type=text/css> | |
#editor { | |
width: 400px; | |
height: 300px; | |
border: 1px solid black; |
This file contains 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 fixAfterIOSFullScreenMode() { | |
var flag = false; | |
$(window).on('resize', function(){ | |
if ($(this).height() > 300 && (window.orientation == 90 || window.orientation == -90)) { | |
if(flag == false) { | |
$('body').scrollTop($('body').scrollTop()); | |
flag = true; | |
} | |
} else { | |
flag = false; |
OlderNewer