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 | |
if (! function_exists('tailclass')) { | |
function tailclass($key, $default = null) { | |
$default = $classArr['default'] ?? []; | |
unset($classArr['default']); | |
$result = $default; | |
foreach($classArr as $key => $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
<?php | |
namespace App\Http\Livewire; | |
use Livewire\Component; | |
class SimpleBrowserNotification extends Component | |
{ | |
public string $title; |
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
ALTER TABLE bu_translates ADD FULLTEXT (`content`) WITH PARSER ngram; |
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
/* | |
:: Enhanced Version @extralam :: | |
Allows for ajax requests to be run synchronously in a queue , remove queue | |
Usage:: | |
var queue = new $.AjaxQueue(); | |
// add with tag name or not , both ok | |
queue.add('test',{ | |
url: 'url', |
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
import java.util.ArrayList; | |
import com.bumptech.glide.GenericRequestBuilder; | |
import com.bumptech.glide.Glide; | |
import com.bumptech.glide.request.animation.GlideAnimation; | |
import com.bumptech.glide.request.target.SimpleTarget; | |
import com.bumptech.glide.request.target.Target; | |
import android.content.Context; |
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 | |
/** | |
* Created by PhpStorm. | |
* User: alan | |
* Date: 24/12/2018 | |
* Time: 5:47 PM | |
*/ | |
namespace App\Models; |
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
import android.os.Build; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.os.Build; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.view.animation.AlphaAnimation; | |
/** | |
* |
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 eps_checksum(accNumber) { | |
return 10 - (accNumber.split("").map((digit, index) => digit*( Number((index+1)%2==0)+1) ).reduce((a,b)=> a+(b%10)+Number(b>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
<?php | |
$zh_hk = [ | |
"一" => "yat", | |
"丁" => "ding", | |
"七" => "chat", | |
"万" => "waan", | |
"丈" => "jeung", | |
"三" => "sham", | |
"上" => "seung", |
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"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>{{config('admin.title')}} | {{ trans('admin.login') }}</title> | |
<!-- Tell the browser to be responsive to screen width --> | |
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> | |
@if(!is_null($favicon = Admin::favicon())) |
NewerOlder