Skip to content

Instantly share code, notes, and snippets.

Caution

この文章は生成AIの実験において生成されました。間違いを含んでいるなどの可能性が高いです

書店の活用術

  1. 書店の探索方法を理解する
    • 書店の配置やセクションの構成を把握する
      graph LR
        A[入口] --> B[新刊コーナー]

B --> C[ジャンルごとのセクション]

===以下は生成AI活用の実験であり、記載内容には誤りが含まれている可能性が高いです===

$ tsx src/main.ts
---
? 何についてご説明しましょうか
 >  予約システムの基本設計書を作ってください
---
? 聞きたいことに一番近いものを選んでください
 ↑↓カーソルで選択できます
@akazah
akazah / test.rs
Last active September 15, 2023 15:54
processing times for sum_using_formula and sum_using_loop
use std::time::Instant;
fn sum_using_formula(n: i64) -> i64 {
n * (n + 1) / 2
}
fn sum_using_loop(n: i64) -> i64 {
let mut sum = 0;
for i in 1..=n {
sum += i;
@akazah
akazah / 0_reuse_code.js
Created June 15, 2017 04:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
ruby -e 'C=`stty size`.scan(/\d+/)[1].to_i;S=["2743".to_i(16)].pack("U*");a={};puts "\033[2J";loop{a[rand(C)]=0;a.each{|x,o|;a[x]+=1;print "\033[#{o};#{x}H \033[#{a[x]};#{x}H#{S} \033[0;0H"};$stdout.flush;sleep 0.1}'
$(window).bind('resize load', function(){
$("html").css("zoom" , $(window).width()/640 );
});
@akazah
akazah / gist:2796828
Created May 27, 2012 02:38
How to use rbenv with Sublime Text 2
1. Exit all Sublime Text 2 instances.
2. Run this in terminal.
$ sudo -u $USER open -a Sublime\ Text\ 2
@akazah
akazah / gist:2609908
Created May 6, 2012 03:48
vimでのウィンドウ基本操作
"vimでのウィンドウ基本操作
"自分以外を閉じる
:only
"新しいウィンドウで開く
:new
@akazah
akazah / gist:2609517
Created May 6, 2012 03:44
vimでファイルをワイルドカード指定して一括再インデント
"vimでファイルをワイルドカード指定して一括再インデント
"vim
:args ~/**/*.ru | argdo execute "normal gg=G" | update