Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Application level View Helper
*
* This file is application-wide helper file. You can put all
* application-wide helper-related methods here.
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
@webuilder240
webuilder240 / composer.json
Created June 8, 2015 13:43
test for myblog
{
"name": "cakephp/app",
"description": "CakePHP skeleton app",
"homepage": "http://cakephp.org",
"type": "project",
"license": "MIT",
"require": {
"php": ">=5.4.16",
"cakephp/cakephp": "~3.0",
"mobiledetect/mobiledetectlib": "2.*",
require 'bundler'
require 'bundler/setup'
require 'trello'
include Trello
include Trello::Authorization
application_key = ""
application_secret = ""
application_token = ""

Release for test_application 1.0.0

  • プライベートブラウジングのトラッキングプロテクションで利用するブロックリストに 2 つ目のリストが追加され、利用するリストを選択できるようになりました [ 新機能 ]
  • m4v 形式の動画再生に関する API のサポートを向上しました。 [ 新機能 ]
  • 64 bit Windows 版がリリースされました。こちらからダウンロードできます [ 新機能 ]
  • URL バーに表示する検索候補を選択できるようになりました [ 新機能 ]
  • シングルプロセスモードでは、NPAPI を利用するプラグインを利用できなくなりました [ 開発者 ]
  • WebIDE がサイドバーつき UI に変更されました [ 開発者 ]
  • スポイトツールが、ページ拡大時に期待通りに動作しない問題を修正しました [ 修正 ]
@webuilder240
webuilder240 / README.md
Last active August 5, 2017 12:38
simple file base cache for php

How to Use

Set

require 'fvs.php';
$cache = new Fvs();

$cache->set('hoge', 'hello'); // hello
@webuilder240
webuilder240 / 2ch_firebase.js
Last active December 24, 2017 12:40
2ch(5ちゃんねる)クローンをFirebaseで実装する際のスキーマ例(多分こんな感じなんだと思う。)
{
sites: {
boards: {
0: {
name: 'ニュース速報',
threads: {
0: {
name: 'XXXXした結果wwww',
res: {
0: {
@webuilder240
webuilder240 / index.html
Created March 11, 2018 06:45
load dynamic execute script tag
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
require 'rubygems'
require 'benchmark'
require 'faraday'
require 'typhoeus'
require 'typhoeus/adapters/faraday'
API_URL = 'https://safe-inlet-51629.herokuapp.com/'
Benchmark.bm 10 do |r|
r.report "not parallel (net_http)" do
responses = []
@webuilder240
webuilder240 / state.rb
Created December 10, 2018 06:15
state
class Hoge
module States
ALL = 'all'.freeze
EVENT = 'event'.freeze
GROUP = 'group'.freeze
end
def fuga
case state
when States::ALL
@webuilder240
webuilder240 / index.md
Last active December 16, 2018 07:44
iOS初心者がStoryboardに慣れないので、自分なりのStoryboardを使わない場合のメリット・デメリットをまとめてみた。

メリット

  • 設定値がコードになっていないので、見た目の設定などの変更がコードベースだと楽
    • 多分Storyboardでも解決策はあるはず
  • Storyboardが自分自身、しっくり来てないのでその点はいいかな。
  • Storyboardはうまく運用しないとConflictを起こしやすい。

デメリット

  • 画面遷移図がない
    • Prottなどで別サービスで運用する。(どっちにしろ必要では…)
  • Storyboardがないとギョッとする…?