PostgreSQL Type | PostgreSQL Size | Description | Range | Diesel Type | Rust Type |
---|---|---|---|---|---|
Nullable Types | nullable | Nullable `` |
This file contains 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
# 左にコミットIDを表示する | |
set main-view = id date author commit-title:graph=yes,refs=yes | |
# 左に行数を表示する | |
set blame-view = date:default author:email-user id:yes,color line-number:yes,interval=1 text | |
# Pager系の行数表示をON、intervalを1に (default: line-number:no,interval=5) | |
set pager-view = line-number:yes,interval=1 text | |
set stage-view = line-number:no,interval=1 text | |
set log-view = line-number:yes,interval=1 text |
This file contains 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 json | |
import random | |
style = ["Structured", "Plain"] | |
max_size = 320 | |
dic = {i: style[random.randint(0, 1)] for i in range(max_size)} | |
json_dic = json.dumps(dic,ensure_ascii=False) | |
print(json_dic) |
This file contains 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
version: '3.7' | |
services: | |
cockroach1: | |
image: cockroachdb/cockroach:v2.1.6 | |
container_name: sample-cockroach-1 | |
command: start --insecure | |
networks: | |
sample: | |
aliases: | |
- sample-cockroach-1 |
This file contains 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
{- Implementation of the Exercises for the Forms section of the Elm Architecture Tut | |
- http://guide.elm-lang.org/architecture/user_input/forms.html | |
- | |
- Elm Platform 0.17.1 | |
-} | |
import Html exposing (..) | |
import Html.App as Html | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (onInput, onClick) |
This file contains 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 List exposing (..) | |
flatten2D : List (List a) -> List a | |
flatten2D list = | |
foldr (++) [] list | |
-- SAMPLE | |
flatten2D [[1,2],[3,4],[1,1]] == [1,2,3,4,1,1] |
Should be work with 0.18
Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !
myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))
This file contains 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
#!/bin/bash | |
# 要 gnu-grep, pget | |
set -eu | |
case "$(uname -s)" in | |
"Darwin") | |
cpu_cores=$(system_profiler SPHardwareDataType | grep "Total Number of Cores:" | awk '{print $NF}') | |
;; | |
"Linux") |
This file contains 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
["esc","!\n1","@\n2","#\n3","$\n4","%\n5","^\n6","&\n7","*\n8","(\n9",")\n0","_\n-","+\n=","|\n\\","~\n`"], | |
[{w:1.5},"Tab","Q","W","E","R","T","Y","U","I","O","P","{\n[","}\n]",{w:1.5},"Delete"], | |
[{w:1.75},"Ctrl","A","S","D","F","G","H","J","K","L",":\n;","\"\n'",{w:2.25},"Return"], | |
[{w:2.25},"Shift","Z","X","C","V","B","N","M","<\n,",">\n.","?\n/",{w:1.75},"Shift","Fn"], | |
[{x:1.25,w:1.25},"Option",{w:1.25},"⌘",{a:7,w:6.25},"",{a:4,w:1.25},"⌘",{w:1.25},"Option"] |
This file contains 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
eval $(cat "$(pwd)/docker/env/envfile.env" | grep -v "#" | awk -F= {'print "export "$1"=\""$2"\""'}) |
NewerOlder