Skip to content

Instantly share code, notes, and snippets.

View zxs-1024's full-sized avatar
🌴
I may be slow to respond.

张小手 zxs-1024

🌴
I may be slow to respond.
  • null
  • 上海
View GitHub Profile
@zhuziyi1989
zhuziyi1989 / URL Schemes.md
Last active April 19, 2025 02:50
常用 URL Schemes 收集。

** 由于此文年事已久,可能某些 URL Schemes 已失效,可在评论区留言指出!(最后更新于 2024.10.28)

关于 URL Scheme 你知道多少?

iOS 系统中

由于苹果的各应用都是在沙盒中,不能够互相之间访问或共享数据。但是苹果还是给出了一个可以在 APP 之间跳转的方法:URL Scheme。简单的说,URL Scheme 就是一个可以让 APP 相互之间可以跳转的协议。每个 APP 的 URL Scheme 都是不一样的,如果存在一样的 URL Scheme,那么系统就会响应先安装那个 APP 的 URL Scheme,因为后安装的 APP 的 URL Scheme 被覆盖掉了,是不能被调用的。

Android 系统中

@shelldandy
shelldandy / App.js
Created October 17, 2017 19:08
nprogress with react-router in create-react-app
import React from 'react'
import { BrowserRouter as Router, Switch } from 'react-router-dom'
import routes from './routes'
import FancyRoute from './components/tools/FancyRoute'
const App = props =>
<Router>
<Switch>
{routes.map((route, i) =>
<FancyRoute key={i} {...route} />
@buchiya4th
buchiya4th / stylelint.config.js
Last active February 15, 2024 21:29
stylelintの設定ファイル
module.exports = {
plugins: ['stylelint-order', 'stylelint-scss'],
rules: {
indentation: 2,
'color-hex-case': 'lower', // hex値は小文字指定(大文字を禁止)
'color-hex-length': 'short', // hex値は短い表記(冗長な表記は禁止)
'color-named': 'never', // 名前付きカラー指定を禁止
'color-no-invalid-hex': true, // 無効な16進数の色指定を禁止
'function-comma-space-after': 'always-single-line', // 単一行のカンマ後には空白が必要
'function-comma-space-before': 'never', // カンマ前の空白を禁止
@yzyzsun
yzyzsun / shadowsocks-libev.sh
Last active August 16, 2023 05:38
shadowsocks-libev server setup script on CentOS 7
cd /etc/yum.repos.d
curl -O https://copr.fedorainfracloud.org/coprs/librehat/shadowsocks/repo/epel-7/librehat-shadowsocks-epel-7.repo
yum -y install shadowsocks-libev
setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/ss-server
cat > /etc/shadowsocks-libev/config.json << 'EOF'
{
"server": "0.0.0.0",
"server_port": 443,
"password": "p@$$w0rd",
"method": "aes-128-gcm"