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
# /img/w/10/h/10/img.png >> 10 x 10 にリサイズされた /path/to/image/dir/img.png が帰ってくる | |
location ~ /img/w/([0-9]+)/h/([0-9]+)/(.+) { | |
alias /path/to/image/dir/$3; | |
image_filter resize $1 $2; | |
break; | |
} |
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
{ | |
"name": "webapp", | |
"version": "0.0.1", | |
"description": "webapp", | |
"main": "index.jsx", | |
"author": "Yoshiyuki Kato", | |
"license": "MIT", | |
"scripts": { | |
"watch": "$(npm bin)/webpack --config webpack.config.js --watch --debug", | |
"build": "$(npm bin)/webpack --config webpack.config.js", |
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 {jsdom} from "jsdom"; | |
import * as jquery from "jquery"; | |
declare global{ | |
interface Window{ | |
XMLHttpRequest:XMLHttpRequest; | |
} | |
namespace NodeJS{ | |
interface Global { |
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>upload file</title> | |
</head> | |
<body> | |
<input id="filename" type="text" placeholder="filename"/> | |
<input id="filedata" type="file"/> | |
<button id="upload">アップロード</button> |
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 System.IO hiding (char8) | |
import Control.Applicative | |
import Control.Monad | |
import Data.List | |
import Data.Tuple | |
import Data.Tree | |
import Data.Int | |
import Data.Char | |
import Data.Function (on) | |
import Data.Array |