Skip to content

Instantly share code, notes, and snippets.

@Restoration
Restoration / docker-compose.yml
Created June 23, 2019 21:29
Docker for WordPress
# https://docs.docker.com/compose/wordpress/
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
@Restoration
Restoration / App.jsx
Created June 15, 2019 03:15
強制的にre-renderさせる
const [, updateState] = React.useState();
const forceUpdate = useCallback(() => updateState({}), []);
module Main where
import Lib
main :: IO ()
promptLine :: String -> IO String
promptLine prompt = do
putStr prompt
getLine
@Restoration
Restoration / haskell.hs
Last active October 30, 2018 05:07
haskell test
module Main where
import Lib
main :: IO ()
fType :: Int -> Int -> Int
fType x y = x*x + y*y
fact :: Int -> Int
snippet [スニペット名]
abbr [補完に表示される説明]
alias [スニペット名の別名]
options [オプション指定]
@Restoration
Restoration / index.js
Created October 14, 2018 01:38
check string
let viewResult = String(this.state.result);
console.log(viewResult.substring(0, viewResult.length - 1).match(/\-/));
@Restoration
Restoration / cal.java
Last active October 11, 2018 06:55
cal
import java.util.Scanner;
public class hourlyRate {
public static void main(String[] args) {
String level;
double rate;
int hour;
double income;
double cpp;
@Restoration
Restoration / index.html
Created September 26, 2018 01:08
誕生日から今日までの日数を算出
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script>
var y = 1994;
var m = 2;
@Restoration
Restoration / install_sass_on_vscode.md
Last active October 2, 2018 04:25
Install Sass on VSCode

Step.1

Install node.js , node-sass

Step.2

Install extension Open extension tab, search this list packages.

then,create tasks.json in your project

<button class="btn draw-border">Login</button>