Skip to content

Instantly share code, notes, and snippets.

View ash-r1's full-sized avatar

Ash ash-r1

View GitHub Profile
mapkey('<Ctrl-y>', 'Show me the money', function() {
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});
@ash-r1
ash-r1 / chat.md
Last active March 17, 2023 09:39 — forked from hyuki/chat.md
追試: ChatGPT と結城浩の対話(矛盾や反復を含んだ対話によってAIと人間の識別は行えるか)

結城浩さんの実験を一部改変し追試してみました。

(言い訳)

物書きの先生の文章を切り貼りすることは失礼な行為であることを承知ながら、条件を揃えて実験するため、やむなく先生の表現を使用いたしました。ごめんなさい。

追試の意図としては、ChatGPTはある程度、人間に合わせて応答する傾向があるので、繰り返しがあったか聞かれた場合に、実際には繰り返しがなかったとしても似たような応答をする可能性を感じた、というものでした。

スズキ

@ash-r1
ash-r1 / userscript.js
Last active June 28, 2023 05:26
Bing AIの入力フォームでIME変換中のEnterでは送られないようにする
// ==UserScript==
// @name ChatGPT Enter Fix (GPT4)
// @name:ja ChatGPT Enter Fix (GPT4)
// @namespace http://tampermonkey.net/
// @description This Chrome/Safari extension addresses the issue where ChatGPT sends text even when the Enter key is pressed during Japanese conversion.
// @description:ja ChatGPTにおいて日本語IMEで変換中にEnterを押した時に送信されてしまうの問題を阻止します。 Safariにも対応。
// @version 2.1
// @author satosh1suzuk1, d-engine
// @match https://chat.openai.com
// @match https://chat.openai.com/*
// bootstrap w-sm-50 ish
// bootstrap/scss/utilities/_sizing.scss を参考に作成
@each $name, $width in $grid-breakpoints {
@include media-breakpoint-up(md) {
@each $size, $length in $sizes {
.w-#{$name}-#{$size} { width: $length !important; }
}
}
}
@ash-r1
ash-r1 / foo.module.ts
Last active July 25, 2020 06:34
Exec queries in a transaction on nest.js with TypeORM
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { FooService } from './foo.service';
//TODO: import Foo and Bar entities.
@Module({
imports: [TypeOrmModule.forFeature([Foo, Bar])],
providers: [SurveysService],