Skip to content

Instantly share code, notes, and snippets.

@xlplugins
xlplugins / Funnelkit Checkout: Dequeue Theme Assets on the checkout page
Created April 24, 2024 07:17
Funnelkit Checkout: Dequeue Theme Assets on the checkout page
add_action( 'wfacp_after_checkout_page_found', function () {
if ( function_exists( 'consulting_load_theme_scripts_and_styles' ) ) {
remove_action( 'wp_enqueue_scripts', 'consulting_load_theme_scripts_and_styles' );
}
} );
@FreddieOliveira
FreddieOliveira / docker.md
Last active April 24, 2024 07:51
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android πŸ‹πŸ“±

Edit πŸŽ‰

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

Me:
I am looking to build a simple GUI site that allows me to paste in some text, click "rewrite", and get rewritten, cleaned-up text back. This input text is ran through the Claude API to rewrite it. The GUI should be very simple. I just want a text box for input and a text box for output. I also two sliders on the side with labels on the ends:
Tone: casual on the left, formal on the right. The middle instructs the model to keep the tone/voice the same.
Length: shorter on the left, longer on the right.
Above these sliders, I want a model selector dropdown that let's me pick which Claude model to use. I also want a copy text button under the output textbox. The three Claude models are:
claude-3-opus-20240229. Display name "Claude 3 Opus".
claude-3-sonnet-20240229. Display name "Claude 3 Sonnet".
claude-3-haiku-20240307. Display name "Claude 3 Haiku".
@plavjanik
plavjanik / macos.reg
Created July 29, 2019 21:26
Wine macOS Settings
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Wine\Mac Driver]
"LeftCommandIsCtrl"="Y"
"RightCommandIsCtrl"="Y"
"LeftOptionIsAlt"="Y"
"RightOptionIsAlt"="Y"
[HKEY_CURRENT_USER\Control Panel\Desktop]
"FontSmoothing"="2"
nodes:
- id: webcam
custom:
source: https://huggingface.co/datasets/dora-rs/dora-idefics2/raw/main/operators/opencv_stream.py
outputs:
- image
- id: idefics2
operator:
python: https://huggingface.co/datasets/dora-rs/dora-idefics2/raw/main/operators/idefics2_op.py
inputs:
@jetfir3
jetfir3 / tmpdevmodify.sh
Last active April 24, 2024 07:48
Temporarily enable developer mode for the Spotify desktop client on Linux and macOS.
#!/usr/bin/env bash
# Temporarily enable developer mode for the Spotify desktop client on Linux and macOS.
showHelp () {
echo -e \
"Usage: ./tmpdevmodify.sh [option]\n
Options:
-c, --clearcache Clear Spotify app cache
-d, --debug Add Debug Tools to user dropdown menu
@taoyuan
taoyuan / generate_self_signed_certification.md
Last active April 24, 2024 07:46
Generation of a Self Signed Certificate

Generation of a Self Signed Certificate

Generation of a self-signed SSL certificate involves a simple 3-step procedure:

STEP 1: Create the server private key

openssl genrsa -out cert.key 2048

STEP 2: Create the certificate signing request (CSR)

openssl req -new -key cert.key -out cert.csr
@Ynng
Ynng / custom.css
Last active April 24, 2024 07:50
vscode vtuber logo
.editor-group-watermark > .letterpress{
background-image: url("https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode-Thick.png") !important;
opacity: .75;
aspect-ratio: 3/2 !important;
}

Interview Questions

Node.js

Q1: What do you mean by Asynchronous API? β˜†β˜†

Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.

Source: tutorialspoint.com

@jamieweavis
jamieweavis / macos-app-icon.md
Last active April 24, 2024 07:41
How to create an .icns macOS app icon