This file contains 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
<?php | |
echo 'hello'; |
This file contains 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
<?php | |
require './vendor/autoload.php'; |
This file contains 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
<html> | |
<head> | |
<?php echo $debugbarHeader ?> | |
</head> | |
<body> | |
<?php echo $debugbarBody ?> | |
</body> | |
</html> |
This file contains 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
/** Ajax POSTテスト */ | |
function ajaxTest(){ | |
$.ajax({ | |
type : "POST", | |
url : "/test/", | |
data : {"test":"hoge"}, | |
scriptCharset : "UTF-8", | |
success : function(msg, status){ | |
var json = eval(msg); |
This file contains 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
<?php | |
Route::any( | |
"/test" | |
, function (){ | |
Log::debug( Input::get('test') ); | |
} | |
); |
This file contains 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
<?php | |
return array( | |
//Application Debug Mode | |
'debug' => true, | |
'url' => 'http://localhost', | |
); |
This file contains 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
<?php | |
class BaseController extends Controller { | |
public $layout='layout'; | |
/** | |
* Setup the layout used by the controller. | |
* | |
* @return void | |
*/ |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<script type="text/javascript"> | |
<!-- | |
var baseUrl = '{{BaseController::getBaseUrl()}}'; |
This file contains 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
/// <reference path="typings/angular2/angular2.d.ts" /> | |
import {Component, View, bootstrap} from 'angular2/angular2'; | |
// Annotation section | |
@Component({ | |
selector: 'my-app' | |
}) | |
@View({ |
This file contains 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
●リスト1――カリー化する前の例 | |
object myapp { | |
def main(args: Array[String]) = { | |
println("100から200までの合計:" + total(100, 200)) | |
} | |
def total(min: Int, max: Int) = { | |
var res:Int = 0 | |
for(n:Int <- Range(min,max + 1)) |
OlderNewer