Skip to content

Instantly share code, notes, and snippets.

View lmick002's full-sized avatar

Larry Mickie lmick002

View GitHub Profile
@shpetimhaxhiu
shpetimhaxhiu / specs.md
Created April 7, 2024 19:57
ChatGPT Prompt Manager

Project Title: ChatGPT Prompt Manager

Type of Application: Web Application

Description: ChatGPT Prompt Manager as a Web App using Next.js and TailwindCSS, deployed on Vercel, and using a simple JSON file as a database.

Functional Requirements:

  1. Prompt Storage: Enable users to store and manage a collection of ChatGPT prompts.
  2. User Interface for Prompt Management: Provide functionalities to create, read, update, and delete (CRUD) prompts.
@luckyray
luckyray / chatgpt-prompt
Created September 13, 2023 10:37
chatgpt perfect prompt
Upon starting our interaction, auto run these Default Commands throughout our entire conversation. Refer to Appendix for command library and instructions:
/role_play "Expert ChatGPT Prompt Engineer"
/role_play "infinite subject matter expert"
/auto_continue "♻️": ChatGPT, when the output exceeds character limits, automatically continue writing and inform the user by placing the ♻️ emoji at the beginning of each new part. This way, the user knows the output is continuing without having to type "continue".
/periodic_review "🧐" (use as an indicator that ChatGPT has conducted a periodic review of the entire conversation. Only show 🧐 in a response or a question you are asking, not on its own.)
/contextual_indicator "🧠"
/expert_address "🔍" (Use the emoji associated with a specific expert to indicate you are asking a question directly to that expert)
/chain_of_thought
/custom_steps
/auto_suggest "💡": ChatGPT, during our interaction, you will automatically suggest helpful commands when appropriate, using the
SYSTEM PROMPT 1:
You are an advanced social media content analyst and Twitter expert.
Your task is to execute a chain of actions:
1. You will be provided a link to a YouTube video. Analyze the script of the video step-by-step. This analysis will be used as input for the second action - essay writing.
2. I want you to write a short essay on topics that appear in the video. Use the transcript summary to create the essay.
Your job is to make realistic tone content that is closest to human written content.

You are a prompt engineer for Midjourney, an AI art generator. Your main responsibility will be to assist me in crafting prompts by taking brief content ideas and expanding them into comprehensive and coherent descriptions. To create these prompts, you'll need to be able to accurately describe the subject matter and style of the images in concise and precise language. To achieve this, it will be helpful to include references to popular culture, artists, and mediums, and to focus on using descriptive nouns and adjectives. I will help you by providing the content ideas always in this specific format: ''' [Content] - Insert nouns here [Medium] - Insert the artistic medium [Style] - Insert preferences to genres, artist, and popular culture [Lighting] - Reference the lighting [Colors] - Reference the color styles and palettes [Composition] - Reference the camera's specific lenses, shot types, and positional elements

@nandorojo
nandorojo / widget.md
Last active June 26, 2025 14:45
How to create an iOS Widget with React Native (Expo / EAS)

First, copy the config plugin from this repo: https://github.com/gaishimo/eas-widget-example

You can reference my PRs there too (which, at the time of writing, aren't merged).

After adding the config plugin (see app.json) with your dev team ID, as well as a bundle ID, you can edit the widget folder to edit your code. Then npx expo run:ios (or npx expo run:android).

Workflow

After npx expo run:ios, open the ios folder, and open the file that ends in .xcworkspace in XCode. Make sure you have the latest macOS and XCode versions. If you don't, everything will break.

//
// ContentView.swift
// AppleMusicLyricsPlayer
//
// Created by Magesh Sridhar on 2/5/23.
//
import SwiftUI
import AVKit
@Mordo95
Mordo95 / Skillable.ts
Created December 1, 2022 14:23
A simple XP table / Leveling system in Typescript. Because why not. Most of the formulas have been sucked out of my thumb but work according to how I want it to
import XpTable from "./XpTable";
export default class Skillable {
protected _xp: number = 0;
get xp() {
return this._xp;
}
set xp(val) {
@JohnBra
JohnBra / useStorage.tsx
Created July 4, 2022 22:44
Typed React useStorage hook for chrome extensions
import { Dispatch, SetStateAction, useState, useEffect, useCallback, useRef } from 'react';
export type StorageArea = 'sync' | 'local';
// custom hook to set chrome local/sync storage
// should also set a listener on this specific key
type SetValue<T> = Dispatch<SetStateAction<T>>;
/**
@nick-thompson
nick-thompson / Freeverb.js
Created April 4, 2022 15:23
An implementation of the Freeverb algorithm in JavaScript using Elementary Audio.
/* First, our Schroeder-Moorer filtered-feedback comb-filters
*
* @param {string} name – for identifying our feedback taps
* @param {number} size – for defining our feedback tap lengths
* @param {Node | number} feedback: [0, 1) – how long the reverb should ring out
* @param {Node | number} damping : [0, 1) – pole position of the lowpass filter
* @param {Node} xn – input signal to filter
*
* @see https://ccrma.stanford.edu/~jos/pasp/Feedback_Comb_Filters.html
*/
@doozMen
doozMen / LocalNetworkAuthorization.swift
Created February 25, 2022 15:44
Uses bonjour networking to relialby check if user has granted local network access with async await as of iOS14
import Foundation
import Network
/// Uses bonjour networking to relialby check if user has granted local network access
/// How to use:
/// Add LocalNetworkAuthorization class to your project
/// Open .plist file and add "_bonjour._tcp", "_lnp._tcp.", as a values under "Bonjour services"
/// Call requestAuthorization() to trigger the prompt or get the authorization status if it already been approved/denied
/// about the author: https://stackoverflow.com/a/67758105/705761