zipダウンロードじゃいけない
"require": {
"php": ">=5.3.3",
"monolog/monolog": "1.5.*",
"fuelphp/upload": "2.0.1",
// 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); |
コンソール:https://cloud.google.com/console/project/
APIsでCalendar APIをONに
CredentialsでCREATE NEW CLIENT ID押して登録
CredentialsでCREATE NEW KEY押して登録
Consent screenでProduct nameを登録
設定ファイルを書き換え
function parseQuery(query) { | |
return query.split("&").reduce(function(memo, query){ | |
var parts = query.split('='), | |
key = parts[0], | |
val = encodeURIComponent(parts[1]); | |
if(key.indexOf('[]') == key.length-2) { | |
key = key.replace('[]', ''); | |
memo[key] = Array.isArray(memo[key]) ? memo[key] : []; | |
memo[key].push(val); |
<?php | |
namespace Observer; | |
require_once __DIR__.'/model.php'; | |
/** | |
* FuelのModelクラスを継承し(という想定で => 継承枠を開けて) | |
* 更にEventModelの機構を使用するシンプルなモデル | |
*/ |
var iconClasses = [ | |
'icoFontYahoo', | |
'icoFontWindows', | |
'icoFontVideoChatOff', | |
'icoFontVideoChat', | |
'icoFontTwitter', | |
'icoFontTumblr', | |
'icoFontTriangleTop', | |
'icoFontTriangleRight', | |
'icoFontTriangleLeft', |
/** | |
* @class ChatworkExtension | |
*/ | |
var ChatworkExtension = (function() { | |
var config = { | |
ids: { | |
roomInfo: { | |
name: '_roomInfoName', | |
description: '_roomInfoDescription' | |
} |
<?php | |
define('CELL_START', 'S'); | |
define('CELL_GOAL', 'G'); | |
define('CELL_WALL', '#'); | |
define('NA', -1); | |
function search($sx, $sy) { | |
global $maze, $visited; |
var each = function(obj, callback) { | |
for(var p in obj) { | |
if(!obj.hasOwnProperty(p)) continue; | |
callback(p, obj[p]); | |
} | |
}; | |
var Model = (function() { | |
function Model(params) { |
<?php | |
/** | |
* RGBカラーをHueで使用するHSBカラーに変換する | |
* 通常のHSBカラーとの違いはHの値域が0~360ではなく0~65535(16bitカラー)であること | |
* 参考:http://www.technotype.net/tutorial/tutorial.php?fileId=%7BImage%20processing%7D§ionId=%7B-converting-between-rgb-and-hsv-color-space%7D | |
* | |
* @param int $red 赤 | |
* @param int $green 緑 | |
* @param int $blue 青 |