Skip to content

Instantly share code, notes, and snippets.

@mba811
mba811 / default.custom.yaml
Last active May 14, 2024 03:59 — forked from lotem/default.custom.yaml
神級輸入法——Rime
# 中西文切換鍵的默認設置寫在 default.yaml 裏面
# 以下的 default.custom.yaml 在全局範圍重定義該組快速鍵
#
# 可用的按鍵有 Caps_Lock, Shift_L, Shift_R, Control_L, control_R
# Mac 系統上的鼠鬚管不能區分左、右,因此只有對 Shift_L, Control_L 的設定起作用
#
# 已輸入編碼時按切換鍵,可以進一步設定輸入法中西文切換的形式。
# 可選的臨時切換策略有三:
# inline_ascii 在輸入法的臨時西文編輯區內輸入字母、數字、符號、空格等,回車上屏後自動復位到中文
# commit_text 已輸入的候選文字上屏並切換至西文輸入模式
@berteh
berteh / ultimate-guitar-download.user.js
Last active May 14, 2024 03:59
download tabs/chords from ultimate-guitar.com song as a text file, simply hit CTRL+ALT+D after page is loaded.
// ==UserScript==
// @name download Ultimate Guitar tabs-chords
// @description hit CTRL+ALT+D after whole page is loaded to download tabs/chords of current page as a text file.
// @version 1.1
// @icon https://tabs.ultimate-guitar.com/static/public/img/product_icons/ug/favicon.ico
// @require http://code.jquery.com/jquery-latest.js
// @run-at document-end
// @downloadURL https://gist.github.com/berteh/8c052685905f58b64ccc44f272273506/raw/ultimate-guitar-download.user.js
// @match https://tabs.ultimate-guitar.com/*
// ==/UserScript==
@dimasferiansanjaya
dimasferiansanjaya / input_data_to_google_spreadsheet
Created August 13, 2023 17:06
Code for generate data from incoming whatsapp message to google spreadsheet.
function doPost(request) {
var idSpreadSheet = 'YOUR-SPREADSHEET-ID'
var sourceSheetName = "YOUR-SHEET-NAME"; // Replace with the name of the source sheet
var spreadSheet = SpreadsheetApp.openById(idSpreadSheet)
var sourceSheet = spreadSheet.getSheetByName(sourceSheetName);
var data = JSON.parse(request.postData.contents);
var values = data.message.split("#");
if (validate(data.message)[0]) {
sourceSheet.appendRow([values[0].trim(), values[1].trim(), new Date(values[2].trim()), values[3].trim(), values[4].trim()]);
@StevenACoffman
StevenACoffman / Homoglyphs.md
Last active May 14, 2024 03:57
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ
@imba-tjd
imba-tjd / .Cloud.md
Last active May 14, 2024 03:56
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合

@yamgarcia
yamgarcia / move.ps1
Last active May 14, 2024 03:54
Auto Mouse Mover - AntiscreenSaver
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class Mouse {
[DllImport("user32.dll")]
public static extern bool SetCursorPos(int x, int y);
}
"@
function Start-AntiscreenSaver {
@candycode
candycode / image-arraybuffer.js
Created March 7, 2014 15:24
Create a jpg image from ArrayBuffer data
// Simulate a call to Dropbox or other service that can
// return an image as an ArrayBuffer.
var xhr = new XMLHttpRequest();
// Use JSFiddle logo as a sample image to avoid complicating
// this example with cross-domain issues.
xhr.open( "GET", "http://fiddle.jshell.net/img/logo.png", true );
// Ask for the result as an ArrayBuffer.
xhr.responseType = "arraybuffer";
@nikbabchenko
nikbabchenko / image-arraybuffer.js
Created June 28, 2018 19:34 — forked from candycode/image-arraybuffer.js
Create a jpg image from ArrayBuffer data
// Simulate a call to Dropbox or other service that can
// return an image as an ArrayBuffer.
var xhr = new XMLHttpRequest();
// Use JSFiddle logo as a sample image to avoid complicating
// this example with cross-domain issues.
xhr.open( "GET", "http://fiddle.jshell.net/img/logo.png", true );
// Ask for the result as an ArrayBuffer.
xhr.responseType = "arraybuffer";
@landsman
landsman / squash-commits.sh
Created July 26, 2017 13:56 — forked from jbub/squash-commits.sh
git squash last two commits into one
git rebase --interactive HEAD~2
# we are going to squash c into b
pick b76d157 b
pick a931ac7 c
# squash c into b
pick b76d157 b
s a931ac7 c
@nikbabchenko
nikbabchenko / squash-commits.sh
Created July 3, 2018 10:39 — forked from landsman/squash-commits.sh
git squash last two commits into one
git rebase --interactive HEAD~2
# we are going to squash c into b
pick b76d157 b
pick a931ac7 c
# squash c into b
pick b76d157 b
s a931ac7 c