Skip to content

Instantly share code, notes, and snippets.

View hugojay's full-sized avatar
🇹🇼
Don't Forget 64 in China

宇狗 Hugo hugojay

🇹🇼
Don't Forget 64 in China
View GitHub Profile
@wancw
wancw / 0 - Readme.md
Last active July 4, 2023 09:34
移除 macOS 健保卡元件

檔案說明

  • removeNHIICC.sh : 移除健保卡元件與相關設定,須以 root (sudo) 權限執行。
  • postinstall.sh : 官方「MAC 元件移除安裝檔」的 script 內容(2020)
@zhusee2
zhusee2 / tokenPaymentBanks.md
Last active March 28, 2019 06:55
台灣國際Pay服務 支援銀行對照表

j = JCB, m = Mastercard, v = VISA

銀行 Apple Pay Google Pay Samsung Pay Garmin Pay Fitbit Pay
國泰世華 mv mv mv mv mv
中國信託 jmv mv mv mv mv
台新銀行 mv mv mv mv mv
聯邦銀行 jmv mv mv mv mv
玉山銀行 jmv mv mv mv mv
台北富邦 mv mv mv mv mv
@SheldonWangRJT
SheldonWangRJT / Convert .mov or .MP4 to .gif.md
Last active July 27, 2024 18:46
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

@tdsymonds
tdsymonds / backbutton-closebootstrap-modal.js
Last active June 1, 2021 08:13 — forked from thedamon/backbutton close bootstrap modal
Cause back button to close Bootstrap modal windows
// For the below to work with the escape key
// I needed to add data-keyboard="false" to the modal
// in the HTML so that the standard bootstrap function
// doesn't fire, the below fires instead
$('div.modal').on('show.bs.modal', function() {
var modal = this;
var hash = modal.id;
window.location.hash = hash;
window.onhashchange = function() {
@zhusee2
zhusee2 / nearby_pokemon.js
Created August 9, 2016 04:12
Find nearby catchable Pokémons
import pogobuf from 'pogobuf';
import POGOProtos from 'node-pogo-protos';
import chalk from 'chalk';
const USERNAME = '__YOUR_USERNAME__';
const PASSWORD = '__YOUR_PASSWORD__';
// 捷運西門站6號出口
const LAT = 25.0432504;
const LNG = 121.5081401;
// ==UserScript==
// @name YMAC = (Y)ahoo (M)ail (A)d (C)leaner
// @description Remove ads in Yahoo Mail
// @version 1.26
// @date 30.11.2015
// @author Eric Fehrenbacher
// @grant metadata
// @updateUrl https://gist.github.com/oxchronxo/c8865a58dc297980fcf7/raw/ymac.user.js
// @downloadUrl https://gist.github.com/oxchronxo/c8865a58dc297980fcf7/raw/ymac.user.js
// @include http://*.mail.yahoo-inc.com/*
@kenners
kenners / flight.py
Last active May 15, 2020 20:10
Use Flightradar24.com's internal API to get flight path and output it as KML.
#!/usr/bin/env python3
import simplekml
import urllib.request
try:
import simplejson as json
except ImportError:
import json
fr24_flight_code = ""
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active July 17, 2024 14:20
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 27, 2024 16:01
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@alkos333
alkos333 / gist:1771618
Created February 8, 2012 17:52
Read URL GET variable
// Given a query string "?to=email&why=because&first=John&Last=smith"
// getUrlVar("to") will return "email"
// getUrlVar("last") will return "smith"
// Slightly more concise and improved version based on http://www.jquery4u.com/snippets/url-parameters-jquery/
function getUrlVar(key){
var result = new RegExp(key + "=([^&]*)", "i").exec(window.location.search);
return result && unescape(result[1]) || "";
}