2023-01-01から1年間の記事一覧

【Excel】行削除のショートカット

やあ子供たち。今日は便利な表題のショートカットを紹介するよ。 行削除はExcelの一番左の、A列のさらに左にある行番号の列の、行削除したいところで右クリックして「削除」を選択するなんてことをおじさんはいちいちやってきたのだがこれからはすべてキーボ…

WebGPUシェーダをhtmlの<script>タグから外部ファイルに外出しする方法

やあ子供たち。今日はタイトルの内容だよ。外出ししたWGSLのファイル名を shader.wgsl としたときにそれをhtmlに読み込んでくる方法は以下の通りだよ。 <script id="vs" type="x-shader/x-webgpu"></script> <script type="text/javascript"> fetch('shader.wgsl') .then(response => response.text()) .then(data => { const shader = document…

ラジオボタンに関してだけはjqueryを使わせてもらう

やあ子供たち。今日はラジオボタンに関してだけは、jqueryを使わせてもらって、ラジオボタンまわりの作成工数をぐっと縮めさせてもらおうという記事だよ。ラジオボタン(ポチ)は同じグループにしたいやつは同じnameをつけるよ。 はい、以下の3拍子セットを…

【教えてChatGPT】cssgridのspanについて

i want to declare a css class that would occupy a row where the target element lies in and also a row next to it, and would like to apply that class on whereever row that i want to . how can i declare such class by utilizing grid-row or so?

ejsのうまい使い方についてChatGPTに聞いてみた

本日のプロンプトエンジニヤリング。 == I have a nodejs json document composed of many fields, each of which has its own types such as text or number or boolean. I have to render this document in two modes. one for viewing it and another for…

mongodb 階層サーチ・内容の更新

thanks, finally icould reach my recognition as such, that in mongodb findOneandUpdate api, by using dot notation and arrayFilters option, one can search or modify whatever deeply nested elements that would satisfy the specified search cond…

mongodb でカウンターを設置する方法

in mongodb , documents are put in collection like an array. but when i want to introduce a counter property which is to remember the last id it has dispatched to those new documents, where and how should i prepare such a counter ? should i…

nodejs: ローカルサーバでのlisten実装には気をつけろ

やあ子供たち。 今日はこれも書いとかないとおじさんは忘れてしまうので書いておくだけのメモだよ。 「server.listen()で、ローカルサーバーだからといって、うっかり"127.0.0.1"を指定してしまうとそこには罠があるぞ」っていう話だ。 そう、これをやってし…

JavaScript の concat() について

やあ子供たち。今日はconcat()関数についてだよ。 concat()関数は配列と配列とを繋げてくれるよ。 以下の例では、配列arrの末尾に配列brrを結合するよ。 let arr = [1,2,3,4]; let brr = [5,6,7]; let crr = arr.concat(brr); console.log( crr); でねーおじ…

CSS GRID始めました

CSS GRIDをExcelふうに言えばこんな感じか。 ①どんな表なのかを定義する (行数と各行の高さ、列数と各列の幅、という感じで指定。) ②結合セルを、あるだけ定義する。 (結合セルなければ不要) ③要素リストを用意する。 (結合セルに入れたい要素には、②で…