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 namespace App\Helpers; | |
use Str; | |
use Exception; | |
function createUniqueModel($modelClass, $fieldName='hash', $data=[], $length=48, $tries=0) { | |
try { | |
$model = $modelClass::create( | |
array_merge( | |
$data, |
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
<script> | |
(function(d){ | |
var s = d.createElement('link'); | |
d.getElementsByTagName('head')[0].appendChild(s); | |
s.setAttribute('type', 'text/css'); | |
s.setAttribute('rel', 'stylesheet'); | |
s.setAttribute('href', 'app.css?v='+(new Date()).getTime()); | |
var s = d.createElement('script'); |
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
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
source /etc/network/interfaces.d/* | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# The primary network interface |
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 | |
/** | |
* Plugin Name: Tavs plugins | |
*/ | |
class Tavs_Plugins { | |
public static $ins; | |
/** | |
* Veidojam singletonu |
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 lang="lv-LV"> | |
<head> | |
<meta charset="UTF-8" /> | |
</head> | |
<body> | |
</body> | |
</html> |
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
foreach ( debug_backtrace() as $d ) | |
echo $d['function']."<br />\n"; |