Skip to content

Instantly share code, notes, and snippets.

View PrintNow's full-sized avatar

Shine PrintNow

View GitHub Profile
@t3dotgg
t3dotgg / try-catch.ts
Last active December 10, 2025 16:45
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};
@inkss
inkss / #readme.md
Last active November 19, 2025 05:39
IPV6 直播源

个人向直播源

精简了上游直播源内容,仅保留个人所需的。

一、订阅地址

TVM3U

https://gist.githubusercontent.com/inkss/0cf33e9f52fbb1f91bc5eb0144e504cf/raw/ipv6.m3u
@xgqfrms
xgqfrms / auto open dingtalk.md
Last active October 16, 2025 09:48
auto open dingtalk

auto open dingtalk

自动打开钉钉 App

DD link & 钉钉 & URL Scheme

@laravel-shift
laravel-shift / .php-cs-fixer.php
Last active November 21, 2025 10:25
PHP CS Fixer - Laravel Coding Style Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
@okutbay
okutbay / free_email_provider_domains.txt
Last active November 19, 2025 07:50 — forked from tbrianjones/free_email_provider_domains.txt
Most complete list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created. I also created a service for it https://emailprovider.yonetic.im/ and use this list in my free link shortener service ht…
This file has been truncated, but you can view the full file.
0-00.usa.cc
0-180.com
0-30-24.com
0-420.com
0-900.com
0-aa.com
0-mail.com
0-z.xyz
0.pl
@zwjzxh520
zwjzxh520 / NginxLog.php
Last active February 1, 2022 13:59
php写的nginx 日志分析
<?php
/**
* nginx日志文件分析。
* 根据配置的nginx日志格式,分析对应的日志内容。各变量
*/
class NginxLog {
protected static $br = "\n";
/**
@Yimiprod
Yimiprod / difference.js
Last active August 7, 2025 14:25
Deep diff between two object, using lodash
/**
* This code is licensed under the terms of the MIT license
*
* Deep diff between two object, using lodash
* @param {Object} object Object compared
* @param {Object} base Object to compare with
* @return {Object} Return a new object who represent the diff
*/
function difference(object, base) {
function changes(object, base) {