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 | |
$uploaddir = __DIR__."/"; | |
$uploadfile = $uploaddir . basename($_FILES['file']['name']); | |
if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile)) { | |
// バージョン依存問題の解消 | |
if(function_exists("http_response_code")){ | |
http_response_code(200); | |
}else{ | |
header('HTTP', true, 200); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>CalendarMaker</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.21/p5.min.js"></script> | |
<script src="sketch.js"></script> | |
</head> | |
<body> | |
</body> |
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
.image{ | |
overflow:hidden; | |
// 残りのコード | |
} | |
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 s3 = require("gulp-s3-upload")(require("./iam.json")); | |
var | |
gulp.task("deploy2s3", function(){ | |
return gulp.src([]) // デプロイ時にアップロードしたいファイル群 | |
.pipe(s3({ | |
Bucket: "バケット名", | |
ACL: "public-read" | |
})) |
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
{ | |
"title": "Issueの題名", | |
"body" : "IssueのDesciption" | |
} |
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
$ firebase init | |
You're about to initialize a Firebase project in this directory: | |
/path/to/project-dir | |
? What Firebase CLI features do you want to setup for this folder? (Press <space> to select) | |
◯ Database: Deploy Firebase Realtime Database Rules | |
❯◉ Hosting: Configure and deploy Firebase Hosting sites |
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
$ apm install terminal-plus |
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
const path = require("path"); | |
const userHome = process.env[process.platform == "win32" ? "USERPROFILE" : "HOME"]; | |
console.log(path.join(userHome, "Desktop")); | |
// /Users/foo/Desktop | |
console.log(path.join(userHome, "Documents")); | |
// /Users/foo/Documents |
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
<template lang="html"> | |
<p>Hello.</p> | |
</template> | |
<style lang="css"></style> | |
<script> | |
module.exports = {}; | |
</script> |
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
/path/to/pre-commit-sample/index.js | |
1:1 error Unexpected var, use let or const instead no-var | |
✖ 1 problem (1 error, 0 warnings) | |
pre-commit: | |
pre-commit: We've failed to pass the specified git pre-commit hooks as the `test` | |
pre-commit: hook returned an exit code (1). If you're feeling adventurous you can | |
pre-commit: skip the git pre-commit hooks by adding the following flags to your commit: | |
pre-commit: |