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
.notSelect { | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} |
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
<?php | |
// create JSON data format | |
$json_data = array ('id'=>1,'name'=>"rolf",'country'=>'russia',"office"=>array("google","oracle")); | |
echo json_encode($json_data); | |
echo "\n\n"; | |
// parse JSON data into PHP object | |
$json_string='{"id":1,"name":"rolf","country":"russia","office":["google","oracle"]} '; |
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
<?php | |
/** | |
* Get the name without extension | |
* | |
* @param String $filename | |
* | |
* @return String | false (by error) | |
*/ | |
function getFileName($filename) |
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
<?php | |
/** | |
* recursively creates & chmod directories | |
* | |
* @param String $name | |
* @param Int $mode (null for default value from config) | |
* | |
* @return Boolean | |
*/ |
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
<?php | |
/** | |
* checkEmail | |
* | |
* @param String $email | |
* @param Boolean $mxCheck (do not use, if you don't need it) | |
* | |
* @return Boolean | |
*/ |
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
<?php | |
/** | |
* check for date-format | |
* | |
* @param string $date valid is only "YYYY-MM-DD" | |
* | |
* @return bool | |
*/ | |
function checkDateFormat($date) |
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
var selector = $("#getID"); | |
var withPercent = selector.width() / selector.parent().width() * 100; |
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 submitenter(myfield,e) { | |
var keycode; | |
if (window.event) { | |
keycode = window.event.keyCode; | |
} | |
else if (e) { | |
keycode = e.which; | |
} | |
else { |
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
/*========== Mobile First Method ==========*/ | |
/* Custom, iPhone Retina */ | |
@media only screen and (min-width : 320px) { | |
} | |
/* Extra Small Devices, Phones */ | |
@media only screen and (min-width : 480px) { |
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
<!-- | |
Desktop: | |
[1 2 3] [1 2 3 4 5 6 7 8 9] | |
Mobile: | |
[1 2 3] | |
[1 2 3 4 5 6 7 8 9] | |
--> | |
<div class="row"> | |
<div class="col-md-9 col-md-push-3">1 2 3 4 5 6 7 8 9 </div> |