Skip to content

Instantly share code, notes, and snippets.

View suiyi8760's full-sized avatar

suiyi8760

  • Guangzhou,Guangdong,China
View GitHub Profile
@suiyi8760
suiyi8760 / macOS-input-method-killer.sh
Created September 3, 2023 08:52 — forked from qzydustin/macOS-input-method-killer.sh
Resolving macOS Chinese Input Lag Issue
#!/bin/sh
# This script aims to address the problem of input lag that can occur when using the Chinese input method on macOS.
# It provides a simple and effective solution by terminating the SCIM process, which is often the cause of the lag.
# To use the script, follow these steps:
# 1. Open the Terminal application (located in "Applications/Utilities/Terminal").
# 2. Copy and paste the script into the Terminal window.
# 3. Press Enter to execute the script.
@suiyi8760
suiyi8760 / index.html
Created July 19, 2022 04:56
webgl实现透明视频
<div class="video_demo" style="visibility: visible;"><canvas class="video_canvas"
id="js_output_2" width="1680" height="2368"></canvas></div>
@suiyi8760
suiyi8760 / easing.js
Created December 11, 2017 15:53 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
@suiyi8760
suiyi8760 / 0_reuse_code.js
Created August 15, 2016 12:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console