This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MY MOST TRUSTED ENGINEER | |
please run git log -10 and get a sense of how I like ot write commit messages. Note how it is sussinct and tries to give the rationale whenver possible | |
I want you to create modular logically contianed commits as much as possible | |
that means do not do `git add .` and call it a day. add file by file, or if you see the diff and know how to add pice by pice then go ahead. (remeber though we cannot using itneractive adds like `git add -p`) but maybe there is a way to add lines by specifying the line numbers | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import sys | |
from typing import Dict, List, Any, Optional, Union | |
def extract_database_type(content: str): | |
# Very basic: extract enums under "Enums" in Database type | |
db_pattern = re.search(r"type Database = {(.+?)}", content, re.S) | |
if not db_pattern: | |
return {} | |
db_body = db_pattern.group(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tree -I 'tree.tmp|*.tar.gz|desktop.ini|*.pkl|delete_me|node_modules|.vscode|*.tsbuildinfo|next-env.d.ts|.env*|*.log|.vercel|build|' > tree.tmp && awk ' | |
BEGIN {in_tree_section = 0} | |
/START_TREE/ { | |
print "START_TREE" | |
print "```" | |
system("cat tree.tmp") | |
print "```" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Examples showing incorrect state update the violates Reacts rules because it nests | |
* a setSomething() call inside of setOhterThing() call. This casues the state update | |
* of setSomthing() to occur multiple times in a row for every call to setOtherThing() | |
*/ | |
/************************************************************************************/ | |
/*************************** BAD STATE UPDATE EXAMPLE COMPONENT *********************/ | |
/************************************************************************************/ | |
const badLog = (...args: any[]) => { | |
console.log('❌BadComponent❌ Says: ', ...args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int a[] {1, 2, 4, 1, 5}; | |
int g[3] {1, 2, 5}; | |
int b[10] {4, 3, 2, 1}; | |
string s {"potato salad " "pomegranate sauce"}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "LinkedList.h" | |
template <class T> | |
LinkedList<T>::LinkedList() | |
{ | |
first = NULL; | |
last = NULL; | |
} | |
template <class T> |