Skip to content

Instantly share code, notes, and snippets.

View metasong's full-sized avatar
💭
improve metago

JZ Song metasong

💭
improve metago
  • Schlumberger
  • Houston, Tx
View GitHub Profile
@metasong
metasong / option.js
Last active October 11, 2023 09:39
Surfingkeys
/// https://gist.githubusercontent.com/metasong/96a522a6d76b6625a48e8392532a9180/raw/option.js
// config for:
// https://github.com/brookhong/Surfingkeys
// default mappings:
// https://github.com/brookhong/Surfingkeys/blob/master/src/content_scripts/common/default.js
// Note:
// command: [number of repeat or position(index or time)][action][object]
// Microsoft Edge Shortcuts:
// https://support.microsoft.com/en-us/microsoft-edge/keyboard-shortcuts-in-microsoft-edge-50d3edab-30d9-c7e4-21ce-37fe2713cfad
‎‎​
@metasong
metasong / index.js
Last active April 13, 2022 16:19
bookmarklet
const bookmarkLet = {
"Design Mode 💡": () => {
document.designMode = document.designMode == "on" ? "off" : "on";
void 0;
},
"Theme (Dark/Light) 💡": () => {
if (document.documentElement.style.colorScheme == "dark")
document.documentElement.style.colorScheme = "light";
else document.documentElement.style.colorScheme = "dark";
@metasong
metasong / SeqSignals.user.js
Last active June 21, 2023 23:19
SeqSignals.js
// ==UserScript==
// @name Seq signals
// @namespace http://tampermonkey.net/
// @version 1.3
// @description add functions to manipulate signals: delete, import, export actives, export all, rename group.
// the readme: https://dev.azure.com/JSong2020/_git/SeqSignals?path=/readme.md&version=GBmaster&_a=preview
// @author Jianzhong Song
// @match http://localhost:5341/
// @match https://drillops.rig/log/
// @match https://*/log/
@metasong
metasong / SurfingkeysSetting.js
Last active July 27, 2020 17:08
Surfingkeys Setting
unmap('u'); // u is used for undo;
/*
** iteration in collection or tree
**
** {: fist or root
** }: last or last leaf
** ]: next
** [: previous
** t: to
** |: time based last used(active)
using System;
public class ClassInGist
{
public void Hello()
{
Console.WriteLine("Hello from a gist");
}
}
@metasong
metasong / SearchEverything.ahk
Created July 11, 2017 10:52 — forked from Onurtag/ExploreEverything.ahk
Search from current explorer folder, desktop and taskbar using Everything
#NoTrayIcon
#SingleInstance Force
MyUsername := "Onurtag" ;Go to %userprofile% and change this to the title of that window. Keep the quotes.
MyRecycleBin := "Recycle Bin" ;Go to your Recycle Bin and change this to the title of that window. Keep the quotes.
MyThisPC := "This PC" ;Go to your This PC and change this to the title of that window. Keep the quotes.
;You can delete below blocks if you don't want the features. Replace ^F with F3 if you are using that instead.
;BLOCK 1 - DESKTOP
@metasong
metasong / file1.txt
Last active November 17, 2017 00:28
the description for this gist
String file contents
ssssss
@metasong
metasong / create-new-file.ahk
Created June 8, 2017 05:19
AutoHotKey: Create a new file with Ctrl+Alt+N keyboard shortcut in Windows Explorer
; This is part of my AutoHotKey [1] script. When you are in Windows Explorer it
; allows you to press Ctrl+Alt+N and type a filename, and that file is created
; in the current directory and opened in the appropriate editor (usually
; [gVim](http://www.vim.org/) in my case, but it will use whatever program is
; associated with the file in Windows Explorer).
; This is much easier than the alternative that I have been using until now:
; Right click > New > Text file, delete default filename and extension (which
; isn't highlighted in Windows 7), type the filename, press enter twice.
; (Particularly for creating dot files like ".htaccess".)