Skip to content

Instantly share code, notes, and snippets.

@giisyu
giisyu / awsStatic.md
Last active November 15, 2018 07:14
S3+CloudFrontで静的サイトを試しに作ってみて躓いたポイント

S3+CloudFrontで静的サイト作ったときに躓いたポイント

AWSのs3やcoudFrontなどのサービスを使うと、安く全世界にCMSを使って静的ファイルを公開できると聞いて触ってみました。 結果としてはめんどくさかったです。awsのいちサービスを知れて良かったというのはあるかもしれない。

以下はS3+CloudFrontで静的サイト作ってみて躓いたポイントのメモです。

静的Webサイトホスティングで検索すると

参考文献は公式のS3のチュートリアルがまず一番だと思います。検索すると、やってみた系の記事はヒットするのですが、簡略化されていたりで、あまり良くなかったです。(この記事もそうなんで気をつけてね)

@giisyu
giisyu / webpackEjsTemplate.md
Last active December 31, 2021 02:35
HtmlWebpackPlugin ejs
@giisyu
giisyu / webpack2boostrap4.md
Last active July 2, 2017 05:33
webpack2とbootstrap4

webpack2にBootstrap4を入れる

Bootstrap4を試しに使ってみていた。CDNからWebpackに移行しようと思ったら、やはりひとしきり迷った。

日付

2017/06/22

環境 

npm install --save jimp
node
var Jimp = require("jimp");
Jimp.read("画像パス" , (err,lenna)=>{if(err)throw err;lenna.crop(0,0,32,48).quality(100).write("出力パス");})
git remote add fork_master レポジトリ
git checkout -b update
git fetch fork_master
git merge fork_master/master
git add .
git commit -m
git checkout master
git merge update
@giisyu
giisyu / file0.js
Last active December 26, 2016 23:27
The Elm Architecture(0.18)effect moduleメモ ref: http://qiita.com/jooex/items/9cca8e4ec900b52ef30c
function spawnLoop(init, onMessage)
{
var andThen = _elm_lang$core$Native_Scheduler.andThen;
function loop(state)
{
var handleMsg = _elm_lang$core$Native_Scheduler.receive(function(msg) {
return onMessage(msg, state);
});
return A2(andThen, loop, handleMsg);
port hello : String -> Cmd msg
port jsHello : (String -> msg) -> Sub msg
git clone git@github.com:giisyu/elm-webpack-starter.git %1 && ^
cd %1 && ^
del /q /s /f .git && ^
git init && ^
git add . && ^
git commit -m "first" && ^
npm install && ^
elm-package install -y && ^
npm start
@giisyu
giisyu / file0.txt
Last active November 15, 2016 02:37
Elm内にtwitterボタン等scriptタグがあるものを貼る ref: http://qiita.com/jooex/items/6757a1cf9a57fddb3829
import Html exposing (..)
import Html.Attributes exposing (..)
script_ : List (Attribute msg) -> List (Html msg) -> Html msg
script_ =
Html.node "script"