Skip to content

Instantly share code, notes, and snippets.

View xgqfrms's full-sized avatar
💭
🎉 👻 💻 🕵️‍♂️

xgqfrms xgqfrms

💭
🎉 👻 💻 🕵️‍♂️
View GitHub Profile
@xgqfrms
xgqfrms / 如何使用 macOS 剪切文件的方法汇总.md
Created April 25, 2024 15:29
如何使用 macOS 剪切文件的方法汇总

如何使用 macOS 剪切文件的方法汇总

  1. 在多个 Finder 窗口间,直接拖拽文件

  2. 使用快捷键 Option + Command + V 剪切文件

@xgqfrms-GitHub
xgqfrms-GitHub / 前端知识汇总.md
Created December 21, 2016 07:43
前端知识汇总
@xgqfrms
xgqfrms / linux-shell-comments-EOF.md
Last active April 9, 2024 06:39 — forked from mathiasbynens/appify
appify — create the simplest possible Mac app from a shell script

appify

#!/bin/bash

if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
@emotality
emotality / duplicate_line_xcode.md
Last active April 6, 2024 04:23
Xcode - Duplicate Line key binding

NOTE (2022-07-09): Xcode finally added this functionality in Xcode 14, please see release notes here:

New Features in Xcode 14 Beta 3
When editing code, the Edit > Duplicate menu item and its corresponding keyboard shortcut now duplicate the selected text — or the line that currently contains the insertion point, if no text is selected. (8614499) (FB5618491)


Xcode line duplicate

Bind keys to duplicate lines in Xcode

@jofftiquez
jofftiquez / mock-http.js
Last active February 27, 2024 02:23
Mock HTTP request in javascript using promise and timeout.
const mock = (success, timeout = 1000) => {
return new Promise((resolve, reject) => {
setTimeout(() => {
if(success) {
resolve();
} else {
reject({message: 'Error'});
}
}, timeout);
});
@xgqfrms
xgqfrms / 程序员移民新加坡攻略 All In One.md
Created October 24, 2022 16:40
程序员移民新加坡攻略 All In One

程序员移民新加坡攻略 All In One

S$ => Singapore dollar / 新加坡元

首先,新加坡目前投资移民的门槛极高(公司市值/家办资产 S$200M+), 能满足这个门槛的人也自有途径去操作, 所以这里不讨论投资移民,只讨论工作/创业类签证。

Employment Pass,也就是普通工签

@xgqfrms
xgqfrms / how to download youtube videos in js.md
Created October 7, 2022 13:46
how to download youtube videos in js

how to download youtube videos in js

@roxlu
roxlu / install_cygwin_sshd.txt
Last active November 27, 2023 22:20
Installing CYGWIN + SSHD for remote access through SSH on windows
Installing CYGWIN with SSH
1) Download cygwin setup.exe from http://www.cygwin.com
- Execute setup.exe
- Install from internet
- Root directory: `c:\cygwin` + all users
- Local package directory: use default value
- Select a mirror to download files from
- Select these packages:
- editors > xemacs 21.4.22-1
- net > openssh 6.1-p