放送で紹介する用。書きかけです。
ちょっと伸びたのでさらに追記。これは元々自分の勉強がてら書いていたもので、これを書く過程でどうしても自分の理解では説明できないところがあり koba789 に依頼してペアプロをしてもらった、という流れがあります。その結果が次の動画です。
生放送の流れを円滑にするために資料を公開しましたが、この記事は未完成で、あとでさらに整理して別途記事にまとめるつもりです
"[~/.vim/bundle/errormaker/ftplugin/python] | |
" pip install pyflakes | |
setlocal makeprg=/usr/local/bin/pyflakes\ % | |
setlocal errorformat=%f:%l:%m | |
if !exists("g:python_flyquickfixmake") | |
let g:python_flyquickfixmake = 1 | |
au BufWritePost *.py make | |
endif |
放送で紹介する用。書きかけです。
ちょっと伸びたのでさらに追記。これは元々自分の勉強がてら書いていたもので、これを書く過程でどうしても自分の理解では説明できないところがあり koba789 に依頼してペアプロをしてもらった、という流れがあります。その結果が次の動画です。
生放送の流れを円滑にするために資料を公開しましたが、この記事は未完成で、あとでさらに整理して別途記事にまとめるつもりです
// deno test --no-check --allow-env counter.tsx | |
import { useCallback, useState } from "react"; | |
// increment counter by click | |
export default function Counter() { | |
const [count, setCount] = useState(0); | |
const onClick = useCallback(() => setCount(count + 1), [count]); | |
return <div> | |
<span data-testid="count">{count}</span> | |
<button type="button" onClick={onClick} data-testid="increment-button">+</button> |
年末年始遊びまくってLv15 から Lv49 になった。その記録。
自分が the k4sen を意識してたわけでは無いが、やってた間に the k4sen が盛り上がって新規流入がめちゃくちゃに増えたらしい。 めちゃくちゃわかりやすいチュートリアルが提供されてるので、はじめどきではある。
https://www.twitch.tv/videos/2015988986?filter=archives&sort=time
レーンでファイトしながら CS 狙うのが神経削れてきついと感じたので、 CS とる必要がないジャングルとサポートから始めることにした。ミクロをやりながらマクロを掴んでいきたい、という方向性。
#!/usr/bin/env -S deno run --allow-net --allow-read --allow-env --unstable --ext=ts | |
// USAGE: $ deno run cfai-text.ts "Hello Cloudflare AI!" | |
type RequestType = { | |
messages: { | |
role: string; | |
content: string; | |
}[]; | |
}; |
/** | |
* This is patched esm.sh/run | |
* - Add text/typescript-jsx | |
* - Add auto reload with ?poll={millisecond} | |
* | |
* Usage: | |
* <script type="module" src="https://gistcdn.githack.com/mizchi/897e4a83e33fdcec35fd7d17f84f79d3/raw/df31217503cad48cc9dece94269fe9779b60eba7/patched-esmsh-run.js"></script> | |
*/ | |
/*! esm.sh/run |
// subhosting | |
const API = "https://api.deno.com/v1"; | |
type CreateDeploymentResponse = { | |
id: string; | |
projectId: string; | |
description: string; | |
status: string; | |
domains: string[]; | |
databases: Record<string, any>; |