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
| <?php | |
| class FurusatoTax | |
| { | |
| private int $donationPrice; | |
| private float $incomeTaxRate; | |
| /** | |
| * FurusatoTax constructor. | |
| * @param int $donationPrice |
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
| import admin from 'firebase-admin' | |
| const db = admin.firestore() | |
| export type Document<T> = { | |
| readonly id: string | |
| readonly ref: admin.firestore.DocumentReference<admin.firestore.DocumentData> | |
| readonly exists: boolean | |
| data: () => T | |
| } |
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
| interface UserData { | |
| firstName: string | |
| lastName: string | |
| role: 'user' | 'admin' | |
| age: number | |
| } | |
| interface UserMethods { | |
| name: () => string | |
| } |
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
| <?php | |
| // webpack encore | |
| task('encore', function () { | |
| run('cd {{release_path}} && yarn install && yarn run build'); | |
| }); | |
| before('deploy:symlink', 'encore'); |
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
| <?php | |
| namespace Deployer; | |
| require 'recipe/symfony3.php'; | |
| // Project name | |
| set('application', 'sf4-todo'); | |
| // Project repository | |
| set('repository', '[email protected]:polidog/sf4-todo.git'); |
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
| <?php | |
| class Category | |
| { | |
| private $id; | |
| public function __construct($id) | |
| { | |
| $this->id = $id; | |
| } |
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 ( | |
| "fmt" | |
| ) | |
| type Hoge interface { | |
| Flush() | |
| } |
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 ( | |
| "github.com/gin-gonic/gin" | |
| "net" | |
| "net/http/fcgi" | |
| ) | |
| func main() { | |
| r := gin.Default() |
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
| var empty = () => { | |
| return (pattern) => { | |
| return pattern.empty() | |
| } | |
| } | |
| var cons = (value, list) => { | |
| return (pattern) => { | |
| return pattern.cons(value,list) | |
| } |
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 _symfony_console | |
| php (find . -maxdepth 2 -mindepth 1 -name 'console' -type f | head -n 1) | |
| end | |
| function _symfony_get_command_list | |
| _symfony_console --no-ansi | sed "1,/Available commands/d" | awk '/^ ?[^ ]+ / { print $1 }' | |
| end | |
| complete -f -c "console" -a "(_symfony_get_command_list)" |
NewerOlder