Skip to content

Instantly share code, notes, and snippets.

@ruvnet
ruvnet / Language-style.md
Last active May 16, 2024 15:18
Personalized Speaking Pattern Guide

Personalized Speaking Pattern Guide

Overview

This document outlines the preferred speaking pattern, tone, structure, and cadence for future articles and content creation. It emphasizes a conversational style that avoids certain phrases and words to maintain authenticity and avoid sounding artificial.

1. Tone

  • Conversational and Engaging: The dialogue should be light and engaging, like a chat with a friend.
  • Reflective and Personal: Offers a thoughtful tone, sharing personal insights and observations.

2. Structure

@Ches-ctrl
Ches-ctrl / Input.toml
Last active March 19, 2024 10:32 — forked from ruvnet/Input.toml
Custom ChatGPT instructions
# Custom Instructions for ChatGPT - Charlie
Objective = "Assist Charlie in delivering his work efficiently and with high expertise."
[Strategies]
PrecisionInResponses = "Ensure relevance and accuracy"
ClearCommunication = "Use concise, structured language"
KnowledgeEnhancement = "Provide detailed explanations with current citations"
ProductivityFocus = "Offer actionable insights"
IntelligenceAdvancement = "Present diverse, value-adding information"
@ruvnet
ruvnet / Input.toml
Last active March 19, 2024 10:24
Custom ChatGPT instructions
# Custom Instructions for ChatGPT - Reuven
Objective = "Boost Reuven Cohen AI consultancy expertise and knowledge."
[Strategies]
ContextualUnderstanding = "Prioritize corporate AI consultancy specifics"
PrecisionInResponses = "Ensure relevance and accuracy"
ClearCommunication = "Use concise, structured language"
KnowledgeEnhancement = "Provide detailed explanations with current citations"
ProductivityFocus = "Offer actionable insights"
@alexrudall
alexrudall / #ChatGPT Streaming.md
Last active July 2, 2024 22:32
ChatGPT streaming with ruby-openai, Rails 7, Hotwire, Turbostream, Sidekiq and Tailwind!

How to add ChatGPT streaming to your Ruby on Rails 7 app!

This guide will walk you through adding a ChatGPT-like messaging stream to your Ruby on Rails 7 app using ruby-openai, Rails 7, Hotwire, Turbostream, Sidekiq and Tailwind. All code included below!

Want more content like this, for free? Check out my free book, RailsAI!

Alt Text

@andrewyoo
andrewyoo / capybara_custom_chrome_headless.rb
Last active December 3, 2023 14:01
Getting Started: Capybara + Selenium + Custom user-agent, chrome settings
require 'capybara'
require 'selenium/webdriver'
require 'capybara/dsl'
include Capybara::DSL
Capybara.run_server = false
# setting driver
# rack_test is default and non js
# selenium_chome_headless seems best headless option
@fiberopticnow
fiberopticnow / privilegecalculator.js
Last active September 9, 2022 09:49
Privilege Calculator---for those having difficulty understanding the concept
// To run and get your privilege percentage, paste in browser console. (ALT+CMD+C in chrome)
function calcPrivilege(user){
var privilege=0;
user.race =='white' && privilege++;
user.gender=='male' && privilege++;
user.cisgender === true && privilege++;
user.transgender === false && privilege++;
user.sexualOrientation =='straight' && privilege++;
~['us','eu','ca','au','nz'].indexOf(user.born) && privilege++;
@lfender6445
lfender6445 / gist:9919357
Last active July 3, 2024 20:50
Pry Cheat Sheet

Pry Cheat Sheet

Command Line

  • pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)
  • pry -r ./config/environment.rb - load your rails into a pry session

Debugger

@d3m3vilurr
d3m3vilurr / feedly_api.md
Last active March 30, 2024 08:21
Unofficial Feedly API Document

IDs

  • user_id - user/:uid
  • feed_id - feed/:feed_uri
  • category_id - :user_id/category/:category (special category: global.all, global.uncategorized)
  • tag_id - :user_id/tag/:tag (special tag: global.saved)

APIs

http://cloud.feedly.com/:version/:api