I hereby claim:
- I am crishoj on github.
- I am crishoj (https://keybase.io/crishoj) on keybase.
- I have a public key ASAkPv-nLbCvA-deaFI2NKwV47Nz8gQXni4c9VZLCxpWAwo
To claim this, I am signing this object:
<?php | |
if (! function_exists('to_sentence')) { | |
function to_sentence(array $parts, $connector = ', ', $finally = ' and '): string | |
{ | |
switch (count($parts)) { | |
case 0: | |
return ''; | |
case 1: | |
return reset($parts); |
<?php | |
function paginateOptimized(Builder $builder, $perPage = null, $pageName = 'page', $page = null): LengthAwarePaginator | |
{ | |
$model = $builder->getModel(); | |
$page = $page ?: Paginator::resolveCurrentPage($pageName); | |
$perPage = $perPage ?: $model->getPerPage(); | |
$sql = $builder->forPage($page, $perPage)->toSql(); |
I hereby claim:
To claim this, I am signing this object:
Delivered-To: eorder@imusic.dk | |
Received: by 10.31.170.197 with SMTP id t188csp550289vke; | |
Fri, 23 Feb 2018 04:34:11 -0800 (PST) | |
X-Google-Smtp-Source: AG47ELugto9uFG3a2nqQcrY8q4WwyaEz+mG9hxyxkeVPh5KGmyTbm0UPd9SG8RZOaZ1vxuiBSvvW | |
X-Received: by 10.46.60.22 with SMTP id j22mr1221583lja.27.1519389251617; | |
Fri, 23 Feb 2018 04:34:11 -0800 (PST) | |
ARC-Seal: i=1; a=rsa-sha256; t=1519389251; cv=none; | |
d=google.com; s=arc-20160816; | |
b=MRU+m3Y8TuEPD2MQyeabItO2nub+yX8O9IV1wQBO998byTLDMna/ZjylshtbwqdrbG | |
MxWT1loLMOZI/j/YRANCcZdD8h91xamTe2mog8UJaj139UP31cELoDjR+bzMbhD89x9V |
## | |
## Ubuntu Bionic with PHP 7.2.7 and ImageMagick 6.9.7 | |
## | |
>>> $resource = new Imagick("tests/images/bookcover.jpg") | |
=> Imagick {#2286} | |
>>> $resource->getImagePixelColor(20, 20)->getColor(true) | |
=> [ | |
"r" => 0.0, | |
"g" => 0.10196078431373, |
Christian Rishøj built the Thai-English Dictionary from Thai-language.com app as a free app.
No personal information is collected by the app, and no third party services are used.
Log data remains on the device on which the app is installed, and is not transmitted elsewhere.
Please direct any questions or suggestions to christian@rishoj.net.
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
class EnsureQueueWorkerIsRunning extends Command | |
{ | |
protected $signature = 'queue:checkup'; | |
protected $description = 'Ensure that the queue worker is running.'; |
#!/usr/bin/env bash | |
START_TIME=$SECONDS | |
set -e | |
echo "-----START GENERATING HLS STREAM-----" | |
# Usage create-vod-hls-gpu.sh SOURCE_FILE [OUTPUT_NAME] | |
[[ ! "${1}" ]] && echo "Usage: create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]" && exit 1 | |
# comment/add lines here to control which renditions would be created | |
renditions=( |
// Type definitions for ads-client 1.14.2 | |
// Project: https://github.com/jisotalo/ads-client | |
import ADS = require("ads-client/src/ads-client-ads.js"); | |
import EventEmitter = require("events"); | |
interface Settings { | |
targetAmsNetId: string; | |
targetAdsPort: number; | |
objectifyEnumerations?: boolean; |