Skip to content

Instantly share code, notes, and snippets.

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

xgqfrms xgqfrms

💭
🎉 👻 💻 🕵️‍♂️
View GitHub Profile
@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
@zerobase
zerobase / japanese_ime.html
Created December 10, 2013 01:41
"compositionstart" and "compositionend" events, and Japanese Input Method
<!DOCTYPE html>
<html>
<head>
<title>"compositionstart" and "compositionend" events, and Japanese Input Method</title>
</head>
<body>
<textarea name="textarea" id="textarea" cols="30" rows="3"></textarea>
<h2>onkeydown</h2>
<p>nowCompositioning: <span id="nowCompositioning"></span></p>
<p>keyCode: <span id="keyCode"></span></p>
anonymous
anonymous / index.html
Created April 26, 2014 16:48
A Pen by ara.
<canvas id="canvas" style="position:absolute; top:0; left:0;"></canvas>
<div id="buffer" style="display:none;">
@yiwenl
yiwenl / JsBlobSaveJson
Last active September 25, 2023 18:35
Javascript using Blob to save json file
var saveJson = function(obj) {
var str = JSON.stringify(obj);
var data = encode( str );
var blob = new Blob( [ data ], {
type: 'application/octet-stream'
});
var url = URL.createObjectURL( blob );
var link = document.createElement( 'a' );
@marty-mcgee
marty-mcgee / install_cygwin_sshd.txt
Last active December 17, 2020 00:32 — forked from roxlu/install_cygwin_sshd.txt
Installing CYGWIN 64-bit with SSH (and optional packages)
Installing CYGWIN 64-bit with SSH (and other optional packages)
1) Download cygwin setup.exe from http://www.cygwin.com as "cygwin-setup-x86_64.exe"
- Execute cygwin-setup-x86_64.exe
- Install from internet (for new packages)
- Root directory: `c:\webserver\cygwin` + all users
- Local package directory: use default value
- Select a mirror to download files from
- Select these (optional) packages:
- net > openssh 6.8p1-1
- admin > cygrunsrv 1.62-1
@xgqfrms007
xgqfrms007 / Gist 007
Created February 6, 2016 16:43
Instantly share code, notes, and snippets.
# Instantly share code, notes, and snippets.
@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

@xgqfrms-GitHub
xgqfrms-GitHub / express-static-server.md
Last active October 5, 2023 15:40
express static server (Node.js HTTP Server)

Node.js HTTP Server

/**
* express static server for react build/dist test!
*/ 

// simple express server for HTML pages!
// ES6 style
@xgqfrms-GitHub
xgqfrms-GitHub / 前端知识汇总.md
Created December 21, 2016 07:43
前端知识汇总
@xgqfrms
xgqfrms / html5-index.html
Last active September 5, 2020 16:34
html5
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0">
<!-- SEO : Search Engine Optimization -->
<meta name="keywords" content="HTML5,Website,xgqfrms,2016,shanghai,github,front-end,front end,learning programming,...">
<meta name="description" content="HTML5 :This is a web front-end learning webiste for anybody who love web programming!">
<meta name="author" content="xgqfrms 2016">