- Created: 2024-07-28
- Updated: https://gist.github.com/azu/ac5dafbf211ef8b5ecf386930ac75250/revisions
Node.jsのTypeScriptサポートに関する議論を時系列でまとめたものです。
| #!/usr/bin/env node --experimental-strip-types | |
| // # npm/yarn を pnpm に移行するスクリプト | |
| // ## 制限 | |
| // Node.jsのコアパッケージのみを利用する | |
| // - fsのglob | |
| // https://nodejs.org/api/fs.html#fspromisesglobpattern-options | |
| // - util.parseArgv | |
| // https://nodejs.org/api/util.html#utilparseargsconfig | |
| // ## 変更箇所 |
| --- | |
| description: Guidelines and best practices for creating .mdc (Markdown Configuration) files in Cursor, including structure, metadata annotations, and formatting rules | |
| globs: ["**/*.mdc"] | |
| --- | |
| # Cursor MDC File Guidelines | |
| @context { | |
| "type": "documentation", | |
| "purpose": "cursor_rules", |
Node.jsのTypeScriptサポートに関する議論を時系列でまとめたものです。
| package main | |
| import ( | |
| "fmt" | |
| "machine" | |
| "time" | |
| "tinygo.org/x/drivers/lsm303agr" | |
| ) |
| <!DOCTYPE html><html lang="en"><head><meta name="viewport" content="width=device-width"><meta charset="utf-8"> | |
| <meta name="pluto-insertion-spot-meta"> | |
| <meta name="theme-color" media="(prefers-color-scheme: light)" content="white"><meta name="theme-color" media="(prefers-color-scheme: dark)" content="#2a2928"><meta name="color-scheme" content="light dark"><link rel="icon" type="image/png" sizes="16x16" href="https://cdn.jsdelivr.net/gh/fonsp/Pluto.jl@0.19.36/frontend-dist/favicon-16x16.347d2855.png" integrity="sha384-3qsGeVLdddzV9oIkj3PhXXQX2CZCjOD/CiyrPQOX6InOWw3HAHClrsQhPfX9uRAj" crossorigin="anonymous"><link rel="icon" type="image/png" sizes="32x32" href="https://cdn.jsdelivr.net/gh/fonsp/Pluto.jl@0.19.36/frontend-dist/favicon-32x32.8789add4.png" integrity="sha384-cOe5vSoBIgKNgkUL27p9RpsGVY0uBg9PejLccDy+fR8ZD1Iv5dF1MGHjIZAIZwm6" crossorigin="anonymous"><link rel="icon" type="image/png" sizes="96x96" href="https://cdn.jsdelivr.net/gh/fonsp/Pluto.jl@0.19.36/frontend-dist/favicon-96x96.48689391.png" integrity= |
| use std::fs::File; | |
| use std::io::Write; | |
| fn main() { | |
| let mass = 1.0; | |
| let k = 1.0; | |
| let dt = 1e-2; | |
| let nt = 100000000; | |
| let mut xt = vec![0.0; nt + 1]; |
| #include <fstream> // for std::ofstream | |
| #include <iomanip> // for std::setprecision | |
| #include <ios> // for std::scientific | |
| #include <utility> // for std::make_pair, std::pair | |
| #include <vector> // for std::vector | |
| namespace { | |
| std::pair<double, double> Runge_Kutta_4th(double x, double v, double dt, double mass, double k); | |
| double force(double x, double mass, double k); | |
| } |
| library(ggplot2) | |
| library(gganimate) | |
| logsumexp=function (logx1,logx2){ | |
| logx1 + log1p(exp(logx2-logx1)) | |
| } | |
| llmixnorm <- function(par, y){ | |
| a0 <- par[1] | |
| b0 <- par[2] |