Skip to content

Instantly share code, notes, and snippets.

View ClassicOldSong's full-sized avatar
🐦

Yukino Song ClassicOldSong

🐦
View GitHub Profile
@ClassicOldSong
ClassicOldSong / MouseDelta.ahk
Last active January 26, 2024 07:35
AHK for enhancing GPD Pocket. Run pocket_enhancement.ahk. Feature: Esc + Mouse movenent = ScrollWheel, CapsLock + PrtScn = Region Screen Capture
; Instantiate this class and pass it a func name or a Function Object
; The specified function will be called with the delta move for the X and Y axes
; Normally, there is no windows message "mouse stopped", so one is simulated.
; After 10ms of no mouse movement, the callback is called with 0 for X and Y
Class MouseDelta {
State := 0
__New(callback){
;~ this.TimeoutFn := this.TimeoutFunc.Bind(this)
this.MouseMovedFn := this.MouseMoved.Bind(this)
@ClassicOldSong
ClassicOldSong / tmuxlogin
Last active November 21, 2023 22:49
Use tmux as your login shell
#!/bin/bash
# Usage:
# Download this file
# Put it in /bin or wherever you want, eg: `/bin/tmuxlogin`
# Give it excutable permission, eg: `sudo chmod +x /bin/tmuxlogin`
# Modify your `/etc/shells` and add `/bin/tmuxlogin` to it
# Modify your `~/.tmux.conf` and add `set-option -g default-shell /bin/bash(or whatever shell you want)` to it
# `chsh -s /bin/tmuxlogin`
# Done!
@ClassicOldSong
ClassicOldSong / efml-prompt.md
Created March 25, 2023 22:23
Prompt trying to teach ChatGPT to write EFML

Use only the information mentioned here, do not use anything from Vue.js, React, Svelte etc.

  1. EF.js is a JavaScript library that uses EFML, a logic-free template language, to create dynamic user interfaces.
  2. EFML is a simple and easy-to-use template language that focuses on data binding and event handling.
  3. In EFML, lines not starting with >#%@.|+- are considered comments.
  4. Each EFML tag, attribute, property, event handler, text node, and mount point must start on a new line.
  5. Tags are defined using the > character, and can include class names and reference names. Shorthand for class names can be used by including a . after the tag name.
  6. Reference names for elements are defined using the # character at the end of the tag definition.
  7. Attributes are defined using the # character, and can include any valid HTML attribute. They must be defined on a new line after the tag definition.
  8. Properties are defined using the % character, and can include any valid JavaScript object property.
# this file contains keys needed for decryption of file system data (WUD/WUX)
# 1 key per line, any text after a '#' character is considered a comment
# the emulator will automatically pick the right key
541b9889519b27d363cd21604b97c67a # example key (can be deleted)
d7b00402659ba2abd2cb0db27fa2b656 # Common
805e6285cd487de0faffaa65a6985e17 # Espresso Ancast
b5d8ab06ed7f6cfc529f2ce1b4ea32fd # Starbuck Ancast
9a164ee15ac7ceb64d3cc130094095f6 # 007 Legends [EUR, NUS]
@ClassicOldSong
ClassicOldSong / app.jsx
Last active December 19, 2022 18:43
Solidjs + NativeScript + SwiftUI
import { Application } from "@nativescript/core"
import { render } from "@dominative/solid"
import { createSignal } from "solid-js"
import { registerElement } from 'dominative'
import { SwiftUI, registerSwiftUI, UIDataDriver } from '@nativescript/swift-ui'
registerElement('swiftui', SwiftUI)
registerSwiftUI("sampleView", (view) =>
/* Usage:
import parseEft from 'eft-parser'
import compileToXML from 'ef-ast-xml-compiler-with-data.js'
const ast = parseEft(`
>h1
.Hello {{name}}!
-mountPoint
+listMountPoint
`)
@ClassicOldSong
ClassicOldSong / surfingkeys.js
Last active November 7, 2019 13:40
My SurfingKeys Configuration
/* Original gist from deluxghost
* https://gist.github.com/deluxghost/f15e304ab18214e6a39587e17b63dd4d
*/
unmap('cp');
unmap('spa');
unmap('spb');
unmap('spd');
unmap('sps');
unmap('spc');
@ClassicOldSong
ClassicOldSong / GitHub_top_bar_enhancement.user.js
Last active August 9, 2019 11:10
GitHub top bar enhancement
// ==UserScript==
// @name GitHub top bar enhancement
// @namespace https://ccoooss.com/
// @version 0.1.3
// @description Fix and Auto Hide GitHub Top Bar w/ Ocototree caused headerbar displacement fix
// @author Yukino Song
// @match https://github.com
// @match https://github.com/*/*
// @match https://gist.github.com/*
// @grant none

Keybase proof

I hereby claim:

  • I am ClassicOldSong on github.
  • I am classicoldsong (https://keybase.io/classicoldsong) on keybase.
  • I have a public key whose fingerprint is FDCF 498C CBA6 943D F62F 9B08 D752 1E12 8373 6003

To claim this, I am signing this object: