Note
執筆: Claude Sonnet 5.5
標準的な Comb Sort(縮小率 1.3)に対して、比較回数が n² に近づく入力(キラーケース)を作った。n = 10⁶ の実測では 8.66 × 10¹¹ 回で、n² の 86.6% にあたる。ランダム入力なら約 5 × 10⁷ 回で済む。この結果から、最悪計算量は Θ(n²) と考えている。ただし導出はこの記事での独自のもので、査読を受けていない。
| # Based on https://github.com/gitattributes/gitattributes/blob/master/Unity.gitattributes | |
| * text=auto eol=lf | |
| # 3D models | |
| *.3dm filter=lfs diff=lfs merge=lfs -text | |
| *.3ds filter=lfs diff=lfs merge=lfs -text | |
| *.blend filter=lfs diff=lfs merge=lfs -text | |
| *.blend1 filter=lfs diff=lfs merge=lfs -text | |
| *.c4d filter=lfs diff=lfs merge=lfs -text |
| Language: Cpp | |
| Standard: Latest | |
| ColumnLimit: 0 | |
| ContinuationIndentWidth: 4 | |
| AlignAfterOpenBracket: DontAlign | |
| UseTab: Always | |
| IndentWidth: 4 | |
| TabWidth: 4 | |
| AccessModifierOffset: -4 | |
| NamespaceIndentation: All |
| javascript:(() => { | |
| const TARGET_OPS = new Set([ | |
| "getTeacherSharedCommentsByStudentId", | |
| "getParentReportTagsByJukuId", | |
| "getOptionsForGuidanceKoma", | |
| "getOptionsForTextbook", | |
| "getStudentTextbooksByStudentId", | |
| "getOptionsForTextbook", | |
| "getGuidanceJukuTestTemplateFolderChildren", | |
| "getGuidanceJukuTestTemplate", |
前提: curl, yq, gh, pnpm
また、repo scope が設定された GitHub access token で gh にログインしている必要があります。
curl -sL 'https://github.com/go-gitea/gitea/raw/refs/heads/main/options/label/Advanced.yaml' | yq '.labels | map({name: .name, color: .color | tostring, description: .description})' > /tmp/labels.json && pnpm dlx github-label-sync -a "$(gh auth token)" -l /tmp/labels.json myname/myrepoImportant
In Tailwind CSS 4.3.0 and earlier, files ignored directly in .gitignore (e.g. via .nuxt/** rather than .nuxt) were skipped even when referenced by @source, which is why this workaround was needed. This was fixed in 4.3.1, so this workaround no longer appears to be necessary.
When using Nuxt UI v4 with Tailwind CSS v4, the JIT compiler often fails to detect dynamic classes generated by Nuxt UI components (e.g., bg-primary-500) during development (nuxt dev). This results in missing styles and broken UI.
This solution forces the JIT engine to recognize these classes by explicitly defining them in a separate CSS file that is only loaded in the development environment.
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Cloudflare Calls API Reference</title> | |
| <link rel="stylesheet" type="text/css" href="https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui.css" /> | |
| <style> | |
| html { box-sizing: border-box; overflow: -moz-scrollbars-vertical; overflow-y: scroll; } | |
| *, *:before, *:after { box-sizing: inherit; } | |
| body { margin: 0; background: #fafafa; } |
| description | セバスチャン | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| tools |
|
| def mt19937ar_init(seed = 5489): | |
| """Given a seed, return a state of the MT19937 random number generator.""" | |
| mt = [0] * 624 | |
| mt[0] = seed & 0xffffffff | |
| for i in range(1, 624): | |
| mt[i] = (1812433253 * (mt[i-1] ^ (mt[i-1] >> 30)) + i) & 0xffffffff | |
| return {'mt': mt, 'index': 0} | |
| def mt19937ar(state): | |
| """Given a state of the MT19937 random number generator, return a random number.""" |