Skip to content

Instantly share code, notes, and snippets.

View kkeeth's full-sized avatar
🎨
riotjs book in japanese publish!!

Keeth Kuwahara kkeeth

🎨
riotjs book in japanese publish!!
View GitHub Profile
@kkeeth
kkeeth / tools.md
Last active June 12, 2017 01:23
フレームワーク、ライブラリ、その他ツールなどのメモ
@kkeeth
kkeeth / papers.html
Last active June 14, 2017 10:42
css3で遊んだものリスト
<!DOCTYPE html>
<html lang="ja">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style>
body {
background-color: bisque;
}
#container {
position: relative;
@kkeeth
kkeeth / bbs.ejs
Last active September 2, 2017 15:53
nodejs勉強会用ファイルリスト
<!doctype html>
<html lang="ja">
<head>
<title>BBS</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<link rel="stylesheet" media="all" href="/css/style.css">
</head>
<body>
<h2>Chat App by Node.js!</h2>
@kkeeth
kkeeth / directory_structure.txt
Last active April 9, 2018 15:24
gulpハンズオン用
- app
├- node_modules
├- package.json
├- src
│ ├- js
│ ├- scss
│ └- images
└- dist
├- js
@kkeeth
kkeeth / todo-2018.md
Last active January 5, 2019 13:52
2018年やることリスト

2018年に学びたい技術、読んでみたい本、完成させるGitHubリポジトリなどをピックアップ。
随時追加・更新する予定。 ※最終更新日:2019/01/05

Technology

技術名 進捗 備考
ディープラーニング 中止
(ざっくり)デザインの理論 中止
(ざっくり)経営論 一部進行
Angular5 中止 6,7 が出たので学び直す
@kkeeth
kkeeth / todo-2019.md
Last active January 7, 2019 16:45
2019年やることリスト

2019年に学びたい技術、読んでみたい本、完成させるGitHubリポジトリなどをピックアップ。
随時追加・更新する予定。 ※最終更新日:2019/01/05

Technology

技術名 進捗 備考
(ざっくり)デザインの理論 未着手
(ざっくり)経営論 未着手
(ざっくり)組織論 着手
Laravel 着手 主にAPI開発、テスト
@kkeeth
kkeeth / crypt-ctr.js
Created October 10, 2019 22:36
encrypt decrypt sample js with moment
const crypto = require('crypto')
const moment = require('moment')
const algorithm = 'aes-256-cbc'
const password = "xrandom-password-length-32-chars"
const iv = 'random-length-16'
const hash = encrypt('hoge')
function encrypt(text){
const cipher = crypto.createCipheriv(algorithm,password,iv)
text += `\$${moment().unix()}`
const readline = require('readline')
const reader = readline.createInterface({
input: process.stdin,
output: process.stdout
})
reader.on('line', line => {
if (line !== "fin") {
console.log(line)
@kkeeth
kkeeth / queries_mutations.gql
Last active February 22, 2020 23:52
GraphQL queries and mutations on GitHub API v4 explorer
# get repository information
query GetRep {
repository(name: "riot", owner: "riot") {
id
name
url
}
}
# get user information
// then-catch-final(then)
const taskA = () => {
console.log("Task A")
throw new Error("throw Error at taskA")
}
const taskB = () => {
console.log("Task B") // does not be call
}
const onRejected = (error) => {
console.error(error) // => "throw Error at taskA"