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
{ | |
"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
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
.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
<!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
<?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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>underscore.js sample</title> | |
</head> | |
<body> | |
<ul id="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
<?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
<?php | |
header('Content-Type: text/plain'); | |
echo <<<EOT | |
この記事は某某某某某某某某某 Advent Calendar 2015の15日目の記事です。遅刻すみません。 | |
こんなんなにを書けっていうんだ…… | |
Twitterのりくサー(?)好きっつーかTwitterの絡みの7割ぐらいになってるから身内ネタ最高って感じです。 | |
そういえば初めはsoft_hat界隈と認識してたんだよね。実は。(初めて見たのがTes.Soなので) |
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 express = require('express'); | |
var app = express(); | |
var exec = require('child_process').exec; | |
var addr = ""; | |
app.get('/', function (req, res) { | |
res.send("hello, world"); | |
}); | |
app.get('/ring', function (req, res) { |