Skip to content

Instantly share code, notes, and snippets.

View thu-san's full-sized avatar
🎯
Focusing

Thu San thu-san

🎯
Focusing
View GitHub Profile
@thu-san
thu-san / cloudSettings
Last active August 14, 2020 03:24
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-14T03:24:28.383Z","extensionVersion":"v3.4.3"}
  1. Install https://karabiner-elements.pqrs.org/
  2. Allow necessary security and privacies
  3. Open Karabiner-Elements
  4. Go to Simple Modifications Tab
  5. Add "PCキーボードの無変換キー" to "lang1"
  6. Add "PCキーボードの変換キー" to "lang2" You will be able to change language by pressing 無変換 and 変換 keys.

Screen Shot 2020-08-02 at 16 11 20

@thu-san
thu-san / Make localhost SSL certificate valid.md
Last active July 5, 2018 07:35
Make valid ssl certificate in localhost with xampp or node.js
@thu-san
thu-san / calculate destination latitude and longitude by starting latitude, longitude, bearing, and distance.js
Last active April 20, 2018 04:51
JavaScript (Pure) function to calculate the destination point by start point (latitude, longitude [numeric]), bearing (numeric degrees) and distance (km).
/*!
* JavaScript (Pure) function to calculate the destination point by start point (latitude, longitude [numeric]), bearing (numeric degrees) and distance (km).
*
* Optimized from https://stackoverflow.com/a/2637079/6160436
*/
(function(){
function toRad(val) {
return val * Math.PI / 180;
};