http://guides.rubyonrails.org/layouts_and_rendering.html#the-status-option
- 200 - ok
- request 성공
- ex) resource 목록/resource 상세/resource 수정/그외 대부분의 API 성공
- 201 - create
- request 성공
- ex) resource 생성 성공
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "ctrl+j", | |
"command": "workbench.action.terminal.sendSequence", | |
"args": { | |
"text": "cd ${workspaceFolder}\u000D" | |
}, | |
"when": "terminalFocus && !findInputFocussed && !renameInputFocussed" | |
} |
// Example of using multiple / nested `createEntityAdapter` calls within a single Redux Toolkit slice | |
interface Message { | |
id: string; | |
roomId: string; | |
text: string; | |
timestamp: string; | |
username: string; | |
} |
class CalcHomework { | |
private val trimRegex: Regex = """[^.\d-+*\(\)/]""".toRegex() | |
private val splitRegex: Regex = """[\-]*[.\d]+|[\+\-\*\/\(\)]""".toRegex() | |
private val getSingleMinusBeforeNumberRegex = """(?<=\d)\-(?=\d)""".toRegex() | |
private val getMinusOperatorBeforeBracketRegex = """(?<=\/|/*)[\/\*]\-(?=\()""".toRegex() | |
private fun trim(v: String): String = v.replace(trimRegex, "") | |
private fun replaceMinusToPlusMinus(v: String) = v.replace(getSingleMinusBeforeNumberRegex, "+-") | |
private fun replaceMinusOperationToMinusOneOperation(v: String): String = v.replace(getMinusOperatorBeforeBracketRegex) { | |
val (_, operator, sign) = it.value.split("") |
http://guides.rubyonrails.org/layouts_and_rendering.html#the-status-option
const fs = require('fs'); | |
const filenum = 30; // or 100 | |
const lines = 2000000; // or 1000000 | |
const errors = 100000; | |
const ratio = lines / errors | 0; | |
const count = lines / ratio | 0; | |
for (let i = 1; i <= filenum; i += 1) { |
#!/bin/bash | |
# By: Hua Liang [Stupid ET] | |
# Website: http://EverET.org | |
# sh mov2gif.sh adf.mov something.fig | |
# brew install ffmpeg image2pipe gifsicle | |
mov_file=$1 | |
gif_file=$2 | |
ffmpeg -i $mov_file -r 10 -f image2pipe -vcodec ppm - | convert -verbose +dither -layers Optimize -resize 640x640\> - gif:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile -> $gif_file |
img { | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
-webkit-user-drag: none; | |
} |
export default { | |
get: function (url, data) { | |
return fetch(url, { | |
method: 'GET', | |
headers: { | |
'Content-Type': 'application/json' | |
}, | |
body: JSON.stringify(data) | |
}) |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
<style> | |
.line-graph-conponent { | |
width: 100%; | |
display: flex; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
.parent { | |
display: flex; | |
} |