Skip to content

Instantly share code, notes, and snippets.

View TakahashiIkki's full-sized avatar

ikkitang TakahashiIkki

View GitHub Profile

Amazon RDS の疑問点

インスタンスの名称の定義について

r3, m4, t3 がインスタンスクラス。
medium, large, xlarge とかの名称はありますか?

インスタンスクラスについて

MySQLのm4クラスサポートについて DB インスタンスクラス > MySQL バージョン 5.5、5.6、および 5.7 がサポートされています。

<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Test Entity.
*
* @property int $id
@TakahashiIkki
TakahashiIkki / file0.swift
Created September 20, 2017 15:12
今度のiPhone Xは我々開発者をどれほど苦しめるのか #okamoba ref: http://qiita.com/ikkitang/items/1a98ce55f770840a23f6
// 幅
UIScreen.main.bounds.size.width
// 高さ
UIScreen.main.bounds.size.height
// 列挙型のインスタンス化について
enum GenderEnum {
case man
case woman
case unisex
init?(type genderType: Int) {
switch genderType {
case 0:
self = .man
@TakahashiIkki
TakahashiIkki / file2.swift
Last active June 10, 2018 13:58
swift_begin_day10
// Thread の例
import Foundation
import PlaygroundSupport
// Playground上で非同期処理を有効にする
PlaygroundPage.current.needsIndefiniteExecution = true
class SubThread: Thread {
override func main() {
@TakahashiIkki
TakahashiIkki / .flowconfig
Last active June 10, 2018 15:34
初心者が学ぶflowtype入門 Ver.1.0 ref: https://qiita.com/ikkitang/items/8c22b93fc4d7ca166495
[ignore]
+ .*/node_modules/.*
[include]
[libs]
[lints]
[options]
// Optional<Wrapped>型のエラー処理イメージ
struct Customer {
let id: Int
let name: String
let email: String
}
func findCustomer(byId id: Int) -> Customer? {
let customers = [
@TakahashiIkki
TakahashiIkki / PostgreSQL's Join.md
Last active November 25, 2019 14:42
PostgreSQL's Join.md

JOINのアルゴリズム

MySQLとPostgreSQLで採用されている 結合処理のアルゴリズムに違いがある異なる。

MySQLでは Nested Loop JOINのみだけど、
PostgreSQLでは
Nested Loop JOIN、Hash JOIN、Merge JOINの
三種類がサポートされている。


<?php
/* ラジコンの抽象クラス */
interface RadioControlCarInterface
{
public function forward();
public function back();
}
<?php
/**
* Class SQLBuilder
*/
class SQLBuilder
{
private $from_table = null;
/** @var array */
private $select_columns = [];