Skip to content

Instantly share code, notes, and snippets.

@otokichi3
otokichi3 / 2024-05-05.md
Last active May 7, 2024 10:24
Rarejob conversation auto-feedback by Claude3

Here is the revised conversation with the improved sentences and the reasons for each change:

Original Sentence Improved Sentence Reason
Good morning! Good noon here. Good morning! It's noon here already. The original sentence is grammatically incorrect. The improved sentence uses the correct phrase "It's noon here already" to indicate the current time.
Today, I was so busy as well like yesterday or two days ago. I've been quite busy today, just like yesterday or the day before. The original sentence has a few grammatical issues. The improved sentence uses more natural phrasing and correct verb tense.
So you have to support your members. So I need to support my members. The original sentence is phrased in the second person, which sounds a bit awkward. The improved sentence uses the first person to make it more natural.
Are you dedicated tutor to rare job or do you have any job other job? Are you a dedicated tutor for a rare job, or do you have any other
@xqm32
xqm32 / alacritty.md
Last active May 7, 2024 10:23
Automatically switch color theme for Alacritty on macOS

Original issue comment: alacritty/alacritty#5999 (comment)

Run the following command to clone themes:

mkdir -p ~/.config/alacritty/themes
git clone https://github.com/alacritty/alacritty-theme ~/.config/alacritty/themes

Add the following content to ~/.config/alacritty/alacritty.toml:

@MarcAlx
MarcAlx / README.md
Last active May 7, 2024 10:23
MAUI RangeSlider
@dabeaz
dabeaz / aproducer.py
Created October 17, 2019 17:46
"Build Your Own Async" Workshop - PyCon India - October 14, 2019 - https://www.youtube.com/watch?v=Y4Gt3Xjd7G8
# aproducer.py
#
# Async Producer-consumer problem.
# Challenge: How to implement the same functionality, but no threads.
import time
from collections import deque
import heapq
class Scheduler:
@nessthehero
nessthehero / cheat.md
Created May 27, 2015 13:27
Handlebars Cheat Sheet

Syntax

In this cheatsheet, to simplify, models are represented as JSON.

Code comments

\{{! code comments }}
@Jeandcc
Jeandcc / getInstagramUsersThatDontFollowBack.js
Last active May 7, 2024 10:17
Open Instagram on your browser; Login to instagram; Open your browser's console (CTRL + SHIFT + J); Paste the code below; Update the username in the first line; RUN IT (Hit enter)
const username = "USER_NAME_HERE";
/**
* Initialized like this so typescript can infer the type
*/
let followers = [{ username: "", full_name: "" }];
let followings = [{ username: "", full_name: "" }];
let dontFollowMeBack = [{ username: "", full_name: "" }];
let iDontFollowBack = [{ username: "", full_name: "" }];
@chadell
chadell / send_ics.py
Last active May 7, 2024 10:16
Send email with ICS attachement
"""Helper script to send emails for demo purposes."""
import smtplib
import os
from email.utils import formatdate
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.base import MIMEBase
from email.encoders import encode_base64
from dotenv import load_dotenv
@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active May 7, 2024 10:15
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
@chranderson
chranderson / nvmCommands.js
Last active May 7, 2024 10:15
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
@wojteklu
wojteklu / clean_code.md
Last active May 7, 2024 10:12
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules