Skip to content

Instantly share code, notes, and snippets.

@fghhfg
fghhfg / Return to Top Arrow.markdown
Created October 25, 2015 11:49
Return to Top Arrow
@fghhfg
fghhfg / watch.sh
Last active May 2, 2016 17:50 — forked from mikesmullin/watch.sh
watch is a linux bash script to monitor file modification recursively and execute bash commands as changes occur
#!/usr/bin/env bash
# script: watch
# author: Mike Smullin <mike@smullindesign.com>
# license: GPLv3
# description:
# watches the given path for changes
# and executes a given command when changes occur
# usage:
# watch <path> <cmd...>
#
@fghhfg
fghhfg / gist:186d4024e7efff67a2b40d8bd29ff33a
Last active November 1, 2017 16:03
阻止yahoo bing 廣告到處撥放。如果你希望廣告只出現在yahoo/bing搜尋引擎,而不是到處播送,可以把下列網址加入到排除網站中[廣告活動-全選-編輯-其他變更]。下列網址是從[維度-廣告發行商網站]中來的。
012.tw
123kubo.com
ck101.com
dmeden.net
arms-cool.net
xuite.net
comicbus.com
sopeen.com
pixnet.net
buzzhand.com
@fghhfg
fghhfg / self-eq-this-vs-bind.md
Created November 12, 2017 14:38 — forked from jashmenn/self-eq-this-vs-bind.md
Javascript var self = this; vs. .bind

The Problem

In Javascript this is bound in unexpected ways. Functions, in particular, create a new 'this' and so when you want to keep a reference to an "outer" object you sometimes see the pattern:

var self = this;

as in:

var self = this;
@fghhfg
fghhfg / diigo-oneclick-bookmarklet.js
Last active January 21, 2018 03:03 — forked from avivo/diigo-oneclick-bookmarklet.js
A bookmarklet to make a diigo bookmark with a default tag with one click.
javascript:
(function(){
var path = 'https://secure.diigo.com/api/v2/bookmarks';
var params = {
'url': document.URL,
'title': document.title,
'tags': 'oneclick',
'shared': 'no'
};
@fghhfg
fghhfg / GitHub curl.sh
Created March 19, 2018 19:02 — forked from Integralist/GitHub curl.sh
Download a single file from a private GitHub repo. You'll need an access token as described in this GitHub Help article: https://help.github.com/articles/creating-an-access-token-for-command-line-use
curl --header 'Authorization: token INSERTACCESSTOKENHERE' \
--header 'Accept: application/vnd.github.v3.raw' \
--remote-name \
--location https://api.github.com/repos/owner/repo/contents/path
# Example...
TOKEN="INSERTACCESSTOKENHERE"
OWNER="BBC-News"
REPO="responsive-news"
@fghhfg
fghhfg / File manager
Last active December 15, 2018 13:22
electron 坑 / editor
kw: nodejs server file manager
File manager web server based on Node.js with Koa, Angular.js and Bootstrap
https://github.com/efeiefei/node-file-manager
express-file-manager
This is an Express middleware that provides a nice UI for editing files on the web.
Text files are opened/edited using Ace. The directory browser and image preview pages can accept drag-and-drop, and will upload files.
https://www.npmjs.com/package/express-file-manager
http://tmsearch.uspto.gov/bin/showfield?f=doc&state=4801:mm5tgu.2.53
centurion 行李箱
2015-06-25 19:56 #18
這牌子/商標 是今年二月在美國申請通過的 申請人住在台中 公司應該在台灣 產地是大陸(箱子上印的)
附圖是美國商標局的註冊紀錄 應該沒錯吧?!
Word Mark CENTURION
Goods and Services IC 018. US 001 002 003 022 041. G & S: Suitcases; Travelling trunks; Garment bags for travel; Valises; Handbags; Canvas shopping bags; Leather shopping bags; Reusable shopping bags; Shopping bags with wheels attached; Textile shopping bags; Mesh shopping bags; Briefcases; Trunks being luggage; Bags for climbers in the nature of all-purpose carrying bags; Wallets; Purses; Backpacks; Suitcase handles; Rucksacks; Travelling cases of leather; Business card cases; and Traveling bags. FIRST USE: 20140911. FIRST USE IN COMMERCE: 20151225
@fghhfg
fghhfg / Galaxy S6: Top 100 Tips, Tricks, and Hidden Features.md
Last active May 8, 2022 10:00
Galaxy S6: Top 100 Tips, Tricks, and Hidden Features. https://youtu.be/wSNwA0aQtIA

Galaxy S6: Top 100 Tips, Tricks, and Hidden Features. https://youtu.be/wSNwA0aQtIA

  1. fingerprint reader
  2. double tap home button to camera
  3. hold power home to send SOS message with image and GPS
  4. screen is best visibility on outside
  5. screen is the mosst accurate color
  6. made of aluminum and gorilla glass
  7. wireless charge
  8. front camera 2k