Skip to content

Instantly share code, notes, and snippets.

@miku3920
miku3920 / LOLUserDictionary.txt
Created November 28, 2023 14:07
華碩智慧輸入法 | 英雄聯盟LOL | 全詞彙 | 個人詞庫
吉茵珂絲 ㄐㄧˊㄧㄣˉㄎㄜˉㄙˉ
雷玟 ㄌㄟˊㄨㄣˊ
希維爾 ㄒㄧˉㄨㄟˊㄦˇ
剎雅 ㄔㄚˋㄧㄚˇ
姍娜 ㄕㄢˉㄋㄚˋ
厄薩斯 ㄜˋㄙㄚˋㄙˉ
奧莉安娜 ㄠˋㄌㄧˋㄢˉㄋㄚˋ
珍娜 ㄓㄣˉㄋㄚˋ
凱爾 ㄎㄞˇㄦˇ
瑟雷西 ㄙㄜˋㄌㄟˊㄒㄧˉ
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@miku3920
miku3920 / phpcs.xml
Last active February 24, 2021 15:29
一些中文註釋
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PSR12" xsi:noNamespaceSchemaLocation="../../../phpcs.xsd">
<description>My coding standard. https://github.com/squizlabs/PHP_CodeSniffer/wiki/Customisable-Sniff-Properties</description>
<arg name="tab-width" value="4"/>
<!-- 檢查陣列縮排 -->
<rule ref="Generic.Arrays.ArrayIndent"/>
<!-- 警告參數未使用 -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<!-- 禁止省略大括號 -->
@miku3920
miku3920 / Firebase.php
Created September 29, 2019 16:38
Firebase using php curl
<?php
define('FIREBASE_HOST','https://?????????????????.firebaseio.com');
define('FIREBASE_AUTH','????????????????????????????????????????');
function exec_curl_request($handle) {
$response = curl_exec($handle);
if ($response === false) {
$errno = curl_errno($handle);
$error = curl_error($handle);