Skip to content

Instantly share code, notes, and snippets.

(function($) {
$.kptalks = function(options) {
var settings = $.extend({
api: 'http://api.kptaipei.tw/v1/category/40?accessToken=kp53f568e77303e9.28212837',
image: [
'http://github.com/FuYaoDe/kp/blob/gh-pages/img/khhungry.png'
],
height: 450, // image height
```shell
spotify play list https://open.spotify.com/user/spotifytaiwan/playlist/47baPUxFPZOL3WtwD5iFJz
```
@FuYaoDe
FuYaoDe / pre-commit
Created December 2, 2015 12:21
Run Check .only before commit, prevent mocha test prevent .
#!/bin/sh
#
# Run Check Only before commit.
RED='\033[0;31m'
if [ "$(git diff --cached | grep "+" | grep ".only")" != "" ]; then
echo ""
echo "${RED}COMMIT FAILED:"
echo "${RED}Some spec files have .only. Please remove only and try committing again."
{
"version": "0.0.0",
"name": "react-chrome-extension-example",
"manifest_version": 2,
"description": "Example for react-chrome-extension-boilerplate",
"browser_action": {
"default_title": "React Chrome Extension Example",
"default_popup": "popup.html"
},
"icons": {
import sig from "amazon-s3-url-signer";
import fse from 'fs-extra';
import request from 'request';
import {exec} from 'child_process';
import path from 'path';
let home = process.cwd();
module.exports = {
getS3Url: (path,time) => {