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
| /vendors | |
| /plugins | |
| /app/tmp/* | |
| /app/Config/core.php | |
| /app/Config/database.php |
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
| public function getUserRanking() { | |
| if ($this->request->is('requested')) { | |
| // requestAction()時のみrankingを返す | |
| return $this->UserRanking->getUserRanking(); | |
| } | |
| throw new BadRequestException(); | |
| } |
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
| http://webhook.mydomain.com/release.php?key=secretkey |
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
| class AppController extends Controller { | |
| public $helpers = array( | |
| 'Html' => array('className' => 'CustomHtml') | |
| ); | |
| (略) | |
| } |
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
| $ say hello | |
| # "hello"って言う |
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
| package main | |
| import ( | |
| "os" | |
| "fmt" | |
| "net/http" | |
| "github.com/m0a/easyjson" | |
| ) | |
| var api = "https://teratail.com/api/v1" |
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
| create table if not exists users ( | |
| id serial not null primary key, | |
| email varchar(255) not null, | |
| name varchar(255) not null, | |
| password varchar(255) not null, | |
| created datetime not null default now() | |
| ) engine=innodb; |
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(){ | |
| var xhr = new XMLHttpRequest(); | |
| xhr.onreadystatechange = function(){ | |
| if (this.readyState==4 && this.status==200) { | |
| // responseをhogehogeする | |
| } | |
| }; | |
| xhr.responseType = 'json'; | |
| xhr.open('GET',endpoint,true); | |
| xhr.send(); |
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
| $ git pull origin master | |
| Unable to connect ... connection refused 503(うろ覚え) |
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
| <div class="cbox"> | |
| <div class="ctitle"> | |
| <img src="https://avatars.githubusercontent.com/ikuwow?s=40">ikuwow's Contributions | |
| </div> | |
| <div class="cbody"> | |
| <img src="http://ghchart.rshah.org/ikuwow" alt="ikuwow's Github chart"><a href="https://github.com/ikuwow" target="_blank">See on GitHub</a> | |
| </div> | |
| </div> |