tips
surf surf-1.x ç³»ã§ã¯âã®ããã« Cargo.toml ã«ãã¼ã¸ã§ã³çªå·ã¾ãã¯æå¨ã ãæ¸ãã° wasm åãã«ããã®ã¾ã¾ä½¿ãã¾ãããã¹ããã # surf-1.x [dependencies] surf = "1.0.3" surf-2.x ç³»ããâã®ããã« Cargo.toml ã« default-features 㨠features ãæ示çã«â¦
package.json -> licenses.json ãã¾ã: Cargo.toml -> licenses.json package.json -> licenses.json package.json 㨠npm|yarn ã使ã£ã¦ããããã¸ã§ã¯ãã§ãä¸è©±ã«ãªã£ã¦ããä¾åã©ã¤ãã©ãªã¼ã®ã©ã¤ã»ã³ã¹è¡¨ç¤ºãèªåçæãããæãã¨ãããã yarn 㧠yarâ¦
ä¸»é¡ Rust ã® impl 㪠fn ã®ç¬¬1å¼æ°ãã¤ã¾ã: struct S { } impl S { fn f(â¤ããâ¤) { } } â¤ãã⤠ã®é¨åã®æ¸ãæ¹ã¨ãæ¸ãæ¹ã«å¿ãã¦ã©ã®ãããªå¹æãæå³ã¨ãã¦æ±ããããããæ´çãã¾ãã fn f() fn f(self) fn f(mut self) fn f(&self) fn f(&mut self) ãâ¦
default ç¶æ ã§ãã¤ã¼ã«ã®ã¹ã¯ãã¼ã«éãä½æ0.1è¡ãããã§ã¤ããããå ´åã«ã¹ã¯ãã¼ã«éãæ°è¡åä½ç¨åº¦ã¸æ¹åããè¨å®æé : Menu bar: Edit -> Preferences (CTRL+K) -> Page Display -> Default Layout and Zoom -> Page Layout Single Page Continuous ã¸â¦
https://crates.io/crates/roxmltree/ https://github.com/RazrFalcon/roxmltree/ https://docs.rs/roxmltree/0.13.0/roxmltree/ note: ãã®ã¡ã¢ã¯ roxmltree-0.13.0 ã®æ代ã«æ¸ãã¾ããã ã¯ããã«ç¥ã£ã¦ããã¨ããã㨠ä¸ãããã XML â Document ã Node â¦
çµæ test benches::amxml_root ... bench: 40,783 ns/iter (+/- 6,365) test benches::amxml_sec ... bench: 28,487 ns/iter (+/- 1,295) test benches::minidom_root ... bench: 1,942 ns/iter (+/- 73) test benches::minidom_sec ... bench: 2,127 ns/itâ¦
XPath 使ãããéè¦ã«å¯¾å¿ã§ãã XML ãã¼ãµã¼ã crates.io ã§æ¢ãã¨æç¨ãã㪠crate ã2ã¤è¦ã¤ããã¾ãããç°¡å㪠XPath ã§ä½¿ãåæã確èªããã¡ã¢ã§ãã amxml sxd-xpath ( + sxd-document ) 1. amxml cargo add amxml #[cfg(test)] mod tests { /// å ±éâ¦
âãããªæã㧠alias ãä»è¾¼ã㨠WSL ç°å¢ã§ã®ã¿ alias ãå¼µãã¾ã: if [[ $(grep -i Microsoft /proc/version) ]]; then alias code="/mnt/c/Users/usagi/AppData/Local/Programs/Microsoft\ VS\ Code/bin/code" alias display.blank="/mnt/c/Windows/Systeâ¦
ç¶æ³ crates.io ã«ã¯å·çæç¹ã§ã¯è¤æ°ã® XML ãåãæ±ãããã crate ãåå¨ãã¦ãã¾ã: xml-rs 4,013kDL quick-xml 681 kDL xml5ever 183kDL xmlparser 232kDL sxd-document 63kDL strong-xml 0.7kDL trashy-xml 0.7kDL ãªã©ãªã©ãä»ã«ãããã¤ãç»é²ããã¦â¦
çç¶ WSL2 çµç±ã§åä½ãã VSCode ã® rust-analyzer ãä¸è¦åä½ãã¦ããããã«è¦ã㦠OUTPUT ã«å¤§éã®ã¨ã©ã¼ã¡ãã»ã¼ã¸: Assertion failed: We don't expect to receive commands in CodeActions ãåããçºçããã¨ã¨ã©ã¼ãåããã度ãä½æ¥ä¸ããã°ç£è¦ãªâ¦
ã ãããªäº: crate ãåå²ãããããå¼ã°ããããå´ã® Cargo.toml 㧠[lib] ã® crate-type ãæ示çã« rlib ãåããªãå®ç¾©ã«ãªã£ã¦ããªãã確èªãããï¼ æå¾ åä½ããä¾ # crate aaa ã«ä¾åãããå´ã® crate bbb ã® Cargo.toml # â â src/lib.rs ããã® craâ¦
諸äºæ ã®ä¾ ã³ã³ãã¼ãã³ãã® render æã« CDN ãã©ãããããã <script src="https://example.com/hogehoge.js" crossorigin></script> ã¨ãããã ã³ã³ãã¼ãã³ãã® render æã« .jsx/.tsx ã®ç¿»è¨³æã«ã¯æå¹ã§ã¯ãªã ECMAScript ã³ã¼ããã¡ããã¾ãããã 4ã¤ã®æ¹æ³ ãã£ã¨ããã¨ããã®ã¯ãã¦ããã 1. react-script-tag httpsâ¦
"Hello, WebAssembly" https://developer.mozilla.org/ja/docs/WebAssembly/Rust_to_wasm; MDN / WebAssembly / Rust ãã WebAssembly ã«ã³ã³ãã¤ã«ãã è£è¶³çãªã¡ã¢ 1. npm ã®ã¢ã«ã¦ã³ãã¨ããã±ã¼ã¸ã®å ¬éã¯å¿ è¦ï¼ MDNã®è¨äºãã®ãã®ã§ã¯ãããå«ãããâ¦
electron-pack ã§æ±ããã¦ã .asar ã®ãã«ãããã¡ã¤ã«åä½ã§ã±ã±ã£ã¨ç¢ºèªã§ããããã«ããããªã£ãã¨ãç¨ã®ã¡ã¢ã§ããnpx asar l something.asar ã«ãã¤ããã¦ã«ããã«ããCLIã§å©ãã°æã£åãæ©ãã¿ã¤ãã®ç¨éã¨ã¯å¥ã«ãGUIã®ãã¡ã¤ã«ã¨ã¯ã¹ããã¼ã©ã¼ã§ã«â¦
ç¶æ³ Electron ã¢ããªãä½ã£ã¦ãã¾ãã yarn/npm 㧠client-side åãã® library X (ä»®) ã追å ãã¦ãã¾ãã X ã¯éçºç°å¢ã§ã¯ yarn/npm ã«ãã node_modules/X ãã£ã¬ã¯ããªã¼ã«åãè¾¼ã¾ãã¦ãã¾ãã Electron ã¢ããªã® client-side ã® static ãªãã¡ã¤ã«è³â¦
GitHub - sindresorhus/electron-store: Simple data persistence for your Electron app or module - Save and load user preferences, app state, cache, etc ã使ãã¡ã¢ã§ãã yarn add electron-store electron-store = æ§ electron-conf public/conf.jsâ¦
åºæ¬çãªä½¿ç¨ã®æµã yarn add i18next i18next-node-fs-backend public/i18n.js ãªã©é©å½ã«ä½ã l10n æååãåãåºãããã½ã¼ã¹ã§ const i18n = require('./i18n.js') ãã¦ å¿ è¦ãªã await i18n.changeLanguage('ja-JP') ã®ããã« l10n å ãå®è¡æã«è¨å®ãâ¦
ããã«ã¡ã¯ãPythonåå¿è â§Blenderåå¿è ã§ãããã£ã¼ãªã³ã°ããã¦ã¹ã½ã¡ã½ã¡ãããããã¨ã³ã¼ãã§å¦çããæ¹ãå¾æãªã®ã§ã un-h002; Atropos ã® cluster 対å¿ã§ç§èªèº«ã«è¿½å å®è£ ããã Blener Scripting ãå ¥éè¬åº§ãå ¼ãã¦æ´çãã¾ã Note: èªè ã®æ³å®=Pyâ¦
çµç·¯ãªã©ã¯ãã¦ããã件ã«ã¤ãã¦å°ãè¤éã§ãã®ã§æ´çããã¡ã¢ã§ããæéããªããã©çµè«ã ãæ°ã«ãªã人ã¯æå¾ã®ã¾ã¨ãã ãã©ããã ç®æ¬¡ (1) VRoid Studio ã ã»ã·ã«å¤èº«ã¢ã㪠ã§VRM ãä½ã£ã¦ (2) cluster ã¸ã¢ãããã¼ã -> ãã¢ãããã¼ãã«å¤±æãã¾ããâ¦
ã家åºå ããè¤æ°ã®PC端æ«çãã¯ã©ã¤ã¢ã³ãã¨ã㦠Folding@home ã«åå ããå ´åã«ã1ç®æã® FAHControl (管çç»é¢ãã¼ã«) ã§ããèªä½ã¯ãã¡ãããä»ã®ã¯ã©ã¤ã¢ã³ããå ¨ã¦ç®¡çãããå ´åãããã¾ãã ä¾ãã°âãªå ·åã§ç®¡çã§ããããã«ããããã¨ããããã¦ãâ¦
ä¾ 1. crates.io ã«å ¬éããã¦ãã crate ã使ã£ã¦ããç¶æ : [dependencies] neon = "0.4.0" ä¾ 2. ãã¼ã«ã«ãã¡ã¤ã«ã·ã¹ãã ã§æ¹å¤ä¸ã®ç¬èªçã¸ä¾åå ãç¹æ®åãããå ´å: [dependencies] neon = [ path = "../path-to-my-customized-neon" ] ä¾ 3. featureâ¦
WSLã®å å´ã®ä¸çã§ã¯ãå¤å´ã®ä¸çã® Windows ã§å®è¡å¯è½ãªãã¤ããªã¼ãããå®è¡ã§ãã¾ãã å®éãã®æ©è½ã¯ãã°ãã°ä¾¿å©ãªäºãããã¾ããä¾ãã°ã 諸äºæ ã«ããWSLã®å å´ã®ä¸çã§ä½æ¥ä¸ã« PE32+ (â 1) ãªãã¤ããªã¼ãã¡ã¤ã«ã nm (â 2) ããããã© ELF (â 3) ãâ¦
"category" ã« _ (ã¢ã³ãã¼ã¹ã³ã¢æå) ãå ¥ãã¦ãã¾ãã¨ãå®éã«ä½¿ãæã«ã³ãã³ãã®çµãè¾¼ã¿ãæå¾ åä½ããªããªã£ã¦æ²ããã ä¾: category ã hoge_fuga ã¨ã㦠description ã puyopuyo ã«ããã¨â¦: CTRL+SHIFT+P ã㦠>hgp ã¨ã >gapu ã¨ãå ¥ãã¦ãã³ãã³â¦
æ¦è¦ ãããã Qiita ã« ãç½ãç»é¢ææçæ£è ã®ããã®Chromeç³»ã¦ã§ããã©ã¦ã¶ã¼ã®å¦æ¹ç®ããªãæååãæ稿ãã¦ãã¾ãããä»åã¯ãã®ç¶ç·¨ã¨ããããã¾ãã ç¾å¨ã® DARK READER ã¯åä½ã¢ã¼ãã4ã¤ã®åãæ¿ãããé¸æã§ããããã«ãªãã¾ããã Filter Filter+â¦
èªä½ãã¼ãã¼ãã Windows 10 㪠PC ã§æ¥½ãã¿ãããã© WSL-Ubuntu ã§ã«ããã«ãããããã¡ã¢ã WSL-Ubuntu ã§ã® AVR éçºç°å¢ã®æºå sudo apt install -y gcc-avr avr-libc binutils-avr avrdude WSL-Ubuntu ã§ã® qmk_firmware ã® make ã«ãããã«ã git cloâ¦
èªä½ãã¼ãã¼ãè¨è¨ã« Metasequoia ã§ã¯å°ã ã¤ããã®ã§ Autodesk Fusion 360 ãå°å ¥ãã¾ããã趣å³ã®å·¥ä½ã§å£²ãä¸ããã¸ã£ããããç¡ãã®ã§ç¡å使ç¨ã§ãã¾ã â Metasequoia ã®ã¦ã¼ã¶ã¼ã¯æåã® QUICK SETUP ã® CAD Experience 㯠Thinkercad ãé¸æããã¨ãâ¦
åæ: Visual Studio 2017 ã§ããã¸ã§ã¯ããä½æãã¦WPFã¢ããªããã¶ã¤ãã¼ã使ã£ã¦ä½ãéã®ã¯ãªãã 1. ã¯ããã«ã C# ã³ã¼ãã§æç¸ããå ´å // ä¾ãã° MainWindow ã® DataContext 㸠// MainWindow ã® ctor 㧠Properties/MySettings.settings ã« // ç¨æâ¦
ã¢ã³ã¹ã¿ã¼ãã³ã¿ã¼ã¯ã¼ã«ãã®STEAMçã7æã®ãã¡ã«ãå¸æ½ã®ã¤ããã§è³¼å ¥ãã¦ããã¾ãã ãå¸æ½ã®ã¤ãããã¨ããã®ã¯ PS4 çã§æ¢ã«ãããã£ã¼ãã³ã³ããªã¼ããã¦ã¨ã³ãã³ã³ãã³ããå ¨ã¦æ¥½ããéã°ãã¦é ãã¦ãã¾ã£ã¦ããç¶æ ã§ãäºåããã©ããã»ã¼ããã¼ã¿â¦
UE4 ã® FHttpModule ã® OnProcessRequestComplete / FHttpRequestCompleteDelegate ã«ã¯è¥å¹²ãç½ ã©ããããã // UE4/C++ ã§ãã¬ã¼ã ã¯ã¼ã¯ã«ç¨æãããæ¹æ³ã§ HTTP ãªã¯ã¨ã¹ããçºè¡ãã // HTTP ã¬ã¹ãã³ã¹ãå¾ã¦ä½ããããå ´åã®ã³ã¼ãä¾ auto http = &FHâ¦
// ã¦ãã¨ã¼ãª TMap TMap< FString, int32 > m; m.Add( "hoge", 123 ); m.Add( "fuga", 234 ); m.Add( "piyo", 345 ); // ãããã®å¯¾ãé次åç §ã§åæãã¤ã¤ Key ãæ¸ãæãã for ( auto& p : m ) p.Key = p.Key .Replace( TEXT( "g" ), TEXT( "G" ) ) .Repâ¦