Skip to content

Instantly share code, notes, and snippets.

View imaPheven's full-sized avatar
Focusing

imaPheven

Focusing
View GitHub Profile
@jammycakes
jammycakes / chatgpt.md
Created February 18, 2023 01:13
ChatGPT talking to itself

A conversation between ChatGPT and ChatGPT.

Dramatis Personae

  • Alice, an instance of ChatGPT in a normal browser window, signed in with my Google account.
  • Bob, a second instance of ChatGPT in a private browser window, signed in with a ChatGPT-specific username and password.

The conversation

Alice: (typed by me to bootstrap the conversation) Hello

@glowinthedark
glowinthedark / RsyncBackup.js
Last active May 30, 2024 12:03
MacOS RsyncBackup — simplest possible rsync GUI for MacOS
#!/usr/bin/osascript -l JavaScript
// ^^^^ COMMENT/REMOVE THIS SHEBANG IF RUNNING FROM SCRIPT EDITOR!!!!! ^^^^^^^^^^^
// The SHEBANG is only needed if the file is executable and is run from a terminal with `./RsyncBackup.js`
// 1. In MacOS Spotlight type 'Script Editor' and paste the code below
// 2. Click the top-left dropdown which says 'AppleScript' and select 'JavaScript'
// 3. Under menu File pick Export
// 4. In the Export dialog select File Format = Application
// 5. Save the app in /Applications
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active June 6, 2024 23:16
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@rauchg
rauchg / README.md
Last active January 6, 2024 07:19
require-from-twitter
@brennanMKE
brennanMKE / hero.ts
Last active April 1, 2024 16:16
Example of Mongoose with TypeScript and MongoDb
import * as mongoose from 'mongoose';
export let Schema = mongoose.Schema;
export let ObjectId = mongoose.Schema.Types.ObjectId;
export let Mixed = mongoose.Schema.Types.Mixed;
export interface IHeroModel extends mongoose.Document {
name: string;
power: string;