読者はwebpackerのREADMEを読んでないと仮定。
- redux
- flowtype
- eslint
- reducerのテスト
| // gcc hello_opengl.c -o hello_opengl -lglfw -framework OpenGL | |
| #include <GLFW/glfw3.h> | |
| int main(void) | |
| { | |
| GLFWwindow* window; | |
| /* Initialize the library */ | |
| if (!glfwInit()) | |
| return -1; |
クエリビルダ、内部DSLっぽく書けるやつ http://package.elm-lang.org/packages/jamesmacaulay/elm-graphql/latest
スキーマからソースコード生成するやつ
| #!/usr/bin/env python3 | |
| # No.2260 所得税の税率 https://www.nta.go.jp/taxanswer/shotoku/2260.htm | |
| # [平成28年4月1日現在法令等]に基づく | |
| # | |
| # 小規模企業法令 http://law.e-gov.go.jp/htmldata/S40/S40SE185.html | |
| # | |
| # 前提: | |
| # - 簡単のため、納付月数は1年単位とする(納付月数=勤続年数 * 12) | |
| # - 掛金固定 | |
| # - 所得固定 |
| import os | |
| import sys | |
| import tensorflow as tf | |
| import skimage.io as io | |
| import skimage.morphology | |
| import numpy as np | |
| #sys.path.append('tf-image-segmentation') | |
| sys.path.append('tf-image-segmentation-tf1.0') | |
| sys.path.append('models/slim') |
| ws = x[:y].map do |y| | |
| y[:z].map do |z| | |
| z[:w] | |
| end | |
| end | |
| ws.flatten.uniq {|w| w[:key]} |
| ws = {} | |
| x[:y].each do |_, y| | |
| y[:z].each do |_, z| | |
| z[:w].each do |_, w| | |
| ws[w[:key]] = w | |
| end | |
| end | |
| end | |
| ws.values |
| ws = x[:y].map do |y| | |
| y[:z].map do |z| | |
| z[:w] | |
| end | |
| end | |
| ws = ws.flatten | |
| .group_by {|w| w[:key]} | |
| .map {|k, v| v.first} |
| #include <iostream> | |
| #include <vector> | |
| #include <algorithm> | |
| #include <cmath> | |
| #include <ctime> | |
| template<typename BidirectionalIterator> | |
| void bubble_sort( BidirectionalIterator first, BidirectionalIterator last ) | |
| { | |
| if( first == last ) return; |