Skip to content

Instantly share code, notes, and snippets.

View ackintosh's full-sized avatar
🎯
Focusing

Akihito Nakano ackintosh

🎯
Focusing
View GitHub Profile
@ackintosh
ackintosh / commit_message_example.md
Created June 24, 2022 12:08 — forked from mono0926/commit_message_example.md
[転載] gitにおけるコミットログ/メッセージ例文集100
@ackintosh
ackintosh / README-Template.md
Created January 30, 2020 10:06 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@ackintosh
ackintosh / search.php
Last active July 27, 2018 02:29
issue
<?php
// You only have to pass the necessary arguments
WrapperForExampleApi::search(['arg2' => 'x', 'arg4' => 'x']);
/**
* hand-written wrapper class for ExampleApi
*/
class WrapperForExampleApi
{
public static function search()
@ackintosh
ackintosh / composer.json
Created June 29, 2018 12:36
composer.json for installing latest Snidel
{
"minimum-stability": "dev",
"require": {
"ackintosh/snidel": "0.11.0"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ackintosh
ackintosh / 1.composer.mustache.diff
Last active April 9, 2017 10:31
Swagger Codegen + Ganesha
{
"name": "GIT_USER_ID/GIT_REPO_ID",
"description": "",
"keywords": [
"swagger",
"php",
"sdk",
"api"
],
"homepage": "http://swagger.io",
@ackintosh
ackintosh / docker_cheat.md
Last active January 27, 2016 04:07 — forked from tcnksm/docker_cheat.md
Docker 虎の巻

Docker 虎の巻

何故Dockerを使うべきか

Why Should I Care (For Developers)

"Dockerが面白いのはシンプルな環境に隔離性と再現性をもたらしてくれることだ.ランタイムの環境を一度作れば、パッケージにして別のマシンでも再利用することできる.さらに,すべてはホスト内の隔離された環境で行われる(VMのように).最も素晴らしい点は,シンプルかつ高速であることだ."

@ackintosh
ackintosh / GenPasswordShell.php
Last active August 29, 2015 14:08
Authコンポーネントのパスワードのハッシュ値をコマンドで生成する ref: http://qiita.com/NAKANO_Akihito/items/df54814dded552767cc5
<?php
App::uses('SimplePasswordHasher', 'Controller/Component/Auth');
class GenPasswordShell extends AppShell {
public function main() {
$passwordHasher = new SimplePasswordHasher();
$this->out($passwordHasher->hash($this->args[0]));
}
}
@ackintosh
ackintosh / trie.rb
Created December 15, 2013 04:30
Trie tree implementation in Ruby.
class Node
attr_reader :data, :children
attr_accessor :term
def initialize(data)
@data = data
@children = []
@term = false
end
def insert(char)