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
DELIMITER $$ | |
CREATE DEFINER=`root`@`localhost` FUNCTION `greeklish`(input text charset utf8) RETURNS text CHARSET utf8 | |
BEGIN | |
DECLARE result text charset utf8 DEFAULT ''; | |
DECLARE len INT(4) DEFAULT 0; | |
DECLARE pos INT(4) DEFAULT 1; | |
DECLARE letter VARCHAR(10) charset utf8; | |
SET input = LOWER(input); | |
SET len = CHAR_LENGTH(input); |
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
/** | |
* Conditionally compiles an array of classes and contrainnts into a CSS class string | |
* | |
* The array key contains the classes you wish to add | |
* The value is a boolean expression | |
* | |
* If the array element has a numeric key, it will always be included | |
*/ | |
function arrayToCssClasses($inArrClasses) |
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
class Mymodel extends Model | |
{ | |
public function setMyfieldAttribute($value) | |
{ | |
if ($this->myfield) { | |
return; | |
} | |
$this->attributes['myfield'] = $value; | |
} |
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
- https://github.com/barryvdh/laravel-ide-helper | |
- https://github.com/barryvdh/laravel-debugbar | |
- https://github.com/beyondcode/laravel-query-detector | |
- https://github.com/spatie/laravel-backup | |
- https://github.com/glhd/laravel-dumper |
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
/* | |
* @ AppServiceProvider add... | |
*/ | |
use Symfony\Component\HttpFoundation\Request; | |
public function boot() { | |
/* This line set the Cloudflare's IP as a trusted proxy | |
Request::setTrustedProxies( | |
['REMOTE_ADDR'], |
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
#EXTM3U | |
#EXTINF:-1 tvg-id="" tvg-name="" tvg-language="Hindi" tvg-logo="https://sportzwiki.com/wp-content/uploads/2016/07/Star-Sports.png" tvg-country="IN" tvg-url="" group-title="Sport",STAR SPORTS INDIA | |
https://www.youtube.com/watch?v=OByvQ3Qbhcc | |
#EXTINF:-1 tvg-id="" tvg-name="" tvg-language="" tvg-logo="https://images-na.ssl-images-amazon.com/images/I/71eK1Q3-dbL._AC_SL1500_.jpg" tvg-country="UN" tvg-url="" group-title="Uncategorized",NASA Live Stream Earth From Space / Real ISS Live Feed | |
https://www.youtube.com/watch?v=lx2CNP7kwhI | |
#EXTINF:-1 tvg-id="" tvg-name="" tvg-language="" tvg-logo="https://images-na.ssl-images-amazon.com/images/I/71eK1Q3-dbL._AC_SL1500_.jpg" tvg-country="UN" tvg-url="" group-title="Uncategorized",NASA Live Official Stream of NASA TV | |
https://www.youtube.com/watch?v=21X5lGlDOfg | |
#EXTINF:-1 tvg-id="" tvg-name="" tvg-language="" tvg-logo="https://images-na.ssl-images-amazon.com/images/I/71eK1Q3-dbL._AC_SL1500_.jpg" tvg-country="UN" tvg-url="" group-title="Uncategorized",NASA Live Offic |
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
<div class="adsbygoogle mycontent">This is my content</div> | |
<script> | |
setTimeout( function() { | |
if ( $('.mycontent').length > 0 ) { | |
if ( $('.mycontent').is(":hidden") || ! $(".mycontent").length ) { | |
alert('AdBlock Detected'); | |
} | |
} | |
}, 1000); |
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
/** | |
* @param {string} inSelector - The selector containing text to auto size. | |
*/ | |
window.autoSizeText = function(inSelector) { | |
var el, elements, _i, _len, _results; | |
elements = $(inSelector); | |
if (elements.length < 0) { | |
return; | |
} |
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
S3 Alternatives | |
--------------- | |
- https://wasabi.com | |
- https://www.exoscale.com | |
- https://www.vultr.com | |
- https://www.arubacloud.com/ | |
- https://www.digitalocean.com | |
- https://min.io/ | |
- http://leo-project.net/ | |
- https://www.backblaze.com/ |
NewerOlder