Laravelには2つのgetがある。
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.phpと
vendor/laravel/framework/src/Illuminate/Support/Collection.php
$p = Post::where('id', '<', 3)->get();
これはCollectionの配列になる
#!/usr/bin/python | |
"""Print a swatch using all 256 colors of 256-color-capable terminals.""" | |
__author__ = "Marius Gedminas <marius@gedmin.as>" | |
__url__ = "https://gist.github.com/mgedmin/2762225" | |
__version__ = '2.0' | |
def hrun(start, width, padding=0): |
$.ajax({ | |
url: '/api/uploads/upload', | |
type: 'POST' | |
}).done({ | |
}).fail({ | |
}).always({ | |
}); |
export AWS_CONFIG_FILE=/config/.aws/config
export AWS_SHARED_CREDENTIALS_FILE=/config/.aws/credentials
regionとかは
--profile banana
--region=dummy
--endpoint-url=https://xxx
で書き換えられる
<?php | |
$path = 'node_modules'; | |
function getFileList($dir) { | |
$iterator = new RecursiveDirectoryIterator($dir); | |
$iterator = new RecursiveIteratorIterator($iterator); | |
$list = array(); | |
foreach ($iterator as $fileinfo) { // $fileinfoはSplFiIeInfoオブジェクト | |
if ($fileinfo->isFile() && preg_match('/\.js$/', $fileinfo->getPathname())) { | |
$list[] = $fileinfo->getPathname(); |
#!/usr/bin/python | |
"""Print a swatch using all 256 colors of 256-color-capable terminals.""" | |
__author__ = "Marius Gedminas <marius@gedmin.as>" | |
__url__ = "https://gist.github.com/mgedmin/2762225" | |
__version__ = '2.0' | |
def hrun(start, width, padding=0): |