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
| /* | |
| html2image 0.0.1 <http://html2canvas.hertzen.com> | |
| Copyright (c) 2013 Ryota Mochizuki (@polidog) | |
| Fork by | |
| html2canvas 0.4.0 <http://html2canvas.hertzen.com> | |
| Copyright (c) 2013 Niklas von Hertzen (@niklasvh) | |
| Released under MIT License | |
| */ |
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
| var gulp = require('gulp'); | |
| var exec = require('child_process').exec; | |
| gulp.task('watch',function(){ | |
| gulp.watch("./src/**/*.php").on('change',function(event){ | |
| var command = "php-cs-fixer fix " + event.path + " --config-file=" + __dirname + "/.php_cs" | |
| exec(command); | |
| console.log("execute command: "+command); | |
| }) | |
| }); |
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', 'git@github.com: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() |
NewerOlder