Skip to content

Instantly share code, notes, and snippets.

View IS-Kuan's full-sized avatar

IS-Kuan

  • Taipei, Taiwan
View GitHub Profile
@filipemeneses
filipemeneses / countries.json
Last active February 20, 2026 02:12
List of countries with flag, iso and unicode
[
{
"iso": "AD",
"name": "Andorra",
"unicode": "U+1F1E6 U+1F1E9",
"flag": "🇦🇩"
},
{
"iso": "AE",
"name": "United Arab Emirates",
@pastleo
pastleo / nm_l2tp_ipsec_vpn.md
Last active November 10, 2025 07:53
setup L2TP IPSEC VPN in archlinux using NetworkManager
@cecilemuller
cecilemuller / launch.json
Last active April 4, 2025 13:08
Run ts-node in VSCode Debugger
{
"version": "0.2.0",
"configurations": [
{
"name": "Example",
"type": "node",
"request": "launch",
"runtimeExecutable": "node",
"runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"],
@islishude
islishude / caret.js
Last active November 26, 2023 00:16
[DEPRECATED]get/set caret position in contentEditable or textarea/input element(JavaScript)
/**
* @file get/set caret position and insert text
* @author islishude
* @license MIT
*/
export class Caret {
/**
* get/set caret position
* @param {HTMLColletion} target
*/
@0xdevalias
0xdevalias / jquery-release-notes.md
Last active July 18, 2022 08:01 — forked from teppeis/jquery-release-notes.md
jQuery Release Notes
@Aleksandr-ru
Aleksandr-ru / bs-btngroup-nowrap-table.css
Created July 15, 2016 13:02
Bootstrap no-wrap buttons of btn-group in a table
.table .btn-group {
white-space: nowrap;
}
.table .btn-group .btn {
display: inline-block;
float: none;
}
.table .btn-group .btn + .btn {
margin-left: -5px;
}
@evanwill
evanwill / gitBash_windows.md
Last active January 11, 2026 21:41
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

@runspired
runspired / form.html
Created May 23, 2016 13:46
How to turn off password and email/username autocomplete.
<!--
<form autocomplete="off"> will turn off autocomplete for the form in most browsers
except for username/email/password fields
-->
<form autocomplete="off">
<!-- fake fields are a workaround for chrome/opera autofill getting the wrong fields -->
<input id="username" style="display:none" type="text" name="fakeusernameremembered">
<input id="password" style="display:none" type="password" name="fakepasswordremembered">
@collinsrj
collinsrj / server.js
Created July 22, 2015 05:10
TLS 1.2 Node.js Server
// A super simple HTTPS service which allows you to GET a collection of names from https://<hostname>/names
var express = require('express');
var https = require('https');
var app = express();
var fs = require('fs');
app.get('/names', function (req, res) {
res.json(["Simon", "Bob"])
});
// Experimental InverseMouseArea
import QtQuick 2.0
Item {
id : component
property Item sensingArea : null
signal pressed