View watch.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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...> | |
# |
View gist:186d4024e7efff67a2b40d8bd29ff33a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
012.tw | |
123kubo.com | |
ck101.com | |
dmeden.net | |
arms-cool.net | |
xuite.net | |
comicbus.com | |
sopeen.com | |
pixnet.net | |
buzzhand.com |
View self-eq-this-vs-bind.md
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;
View diigo-oneclick-bookmarklet.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: | |
(function(){ | |
var path = 'https://secure.diigo.com/api/v2/bookmarks'; | |
var params = { | |
'url': document.URL, | |
'title': document.title, | |
'tags': 'oneclick', | |
'shared': 'no' | |
}; |
View GitHub curl.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
View File manager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View gist:626a781de019d7e9446fc9f045cc07cd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |