see Leko/setup-osx.
コンソール:https://cloud.google.com/console/project/
-
APIsでCalendar APIをONに
-
CredentialsでCREATE NEW CLIENT ID押して登録
- Client ID、Client secret, Redirect URLsをコピー
-
CredentialsでCREATE NEW KEY押して登録
- API keyってのを登録
-
Consent screenでProduct nameを登録
-
設定ファイルを書き換え
This file contains hidden or 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
| // overwride $.data(key, value) | |
| ;(function(global, $) { | |
| 'use strict'; | |
| var originalData = $.fn.data; | |
| $.fn.data = function(key, value) { | |
| if(typeof value !== 'undefined') { | |
| return $(this).attr('data-' + key, value); |
This file contains hidden or 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
| var PREFIX = "FLAG_", | |
| ANY = ".*", | |
| flag = "", | |
| tokens = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split(""); | |
| /** | |
| * ログインを試み、このパスワードでログインが可能か否か判断する | |
| * @param {String} pass パスワード文字列 | |
| */ | |
| function loginable(pass) { |
This file contains hidden or 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
| // extendでコンストラクタ定義してくパターン | |
| var MyApp = {}; | |
| MyApp.Core = (function() { | |
| // 何かコアとなる処理・プロパティがあれば追加 | |
| function Core() { | |
| } |
This file contains hidden or 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
| /** | |
| * 呼び出された数字をゼロ埋めした文字列を返す | |
| * | |
| * @method zeroFill | |
| * @namespace Number | |
| * @param {Number} ゼロ埋めする桁数。呼び出された数字より小さければ無視される | |
| * @return {String} ゼロ埋めした文字列 | |
| */ | |
| Number.prototype.zeroFill = Number.prototype.zeroFill || function(digit) { | |
| "use strict"; |
This file contains hidden or 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
| (function(global, undefined) { | |
| "use strict"; | |
| var Pocket = (function() { | |
| var https = require("https"); | |
| function Pocket(opt) { | |
| this.consumer_key = opt.consumer_key; | |
| this.access_token = opt.access_token; | |
| } |