Skip to content

Instantly share code, notes, and snippets.

View supersonictw's full-sized avatar
🦋

不知火 Shiranui supersonictw

🦋
View GitHub Profile
@supersonictw
supersonictw / ISO-639-1-language.json
Created March 23, 2024 05:09 — forked from jrnk/ISO-639-1-language.json
ISO 639-1 Alpha-2 codes of languages JSON
[
{ "code": "aa", "name": "Afar" },
{ "code": "ab", "name": "Abkhazian" },
{ "code": "ae", "name": "Avestan" },
{ "code": "af", "name": "Afrikaans" },
{ "code": "ak", "name": "Akan" },
{ "code": "am", "name": "Amharic" },
{ "code": "an", "name": "Aragonese" },
{ "code": "ar", "name": "Arabic" },
{ "code": "as", "name": "Assamese" },
@supersonictw
supersonictw / timezone.json
Created March 23, 2024 03:18 — forked from EmadAdly/timezone.json
Common timezone list in json
[
{
"zone": "Pacific/Midway",
"gmt": "(GMT-11:00)",
"name": "Midway Island"
},
{
"zone": "US/Samoa",
"gmt": "(GMT-11:00)",
"name": "Samoa"
@supersonictw
supersonictw / ecrp.js
Last active April 26, 2024 12:21 — forked from sintaxi/server.js
Easy CORS/Reverse Proxy
#!/usr/bin/env node
// Easy CORS/Reverse Proxy
// License: MIT (https://ncurl.xyz/s/RD0Yl5fSg)
// https://gist.github.com/supersonictw/cf01a30ed886c8763bdd8329c1115f8c
"use strict";
const cookieEncoder = (data) => {
const cookies = [];
for (const key in data) {
const value = encodeURIComponent(data[key]);
@supersonictw
supersonictw / PHP 註解規範.md
Last active April 16, 2023 14:23 — forked from angusty/php注释规范
PHP 通用註解寫法

PHP 註解規範

通用註解寫法

一、文件的註解通用樣例(普通程式文件,類文件,函數文件,變量定義文件)

/**
 * XXXXX的文件
 *
<?php
/**
* Given a URL, normalize that URL.
* @param String URL
* @return String Normalized URL
*/
function normalizeUrl($input_url)
{
$newUrl = "";
$url = parse_url($input_url);
{
"Afghanistan": {
"zh_TW": "阿富汗",
"location": [
33,
65
]
},
"Albania": {
"zh_TW": "阿爾巴尼亞",