Skip to content

Instantly share code, notes, and snippets.

View TheRakeshPurohit's full-sized avatar
:octocat:
Learning

Rakesh Harishbhai Purohit TheRakeshPurohit

:octocat:
Learning
View GitHub Profile
@veekaybee
veekaybee / normcore-llm.md
Last active May 24, 2024 16:56
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@adamscybot
adamscybot / usePercentageColumns.js
Created August 18, 2020 11:36
Reac table v6 percentage column width plugin hook
/**
* This plugin hook for React table provides the ability for percentage
* widths to be provided in the column definitions, whilst maintaining the
* ability to resize those columns.
*/
export const usePercentageColumns = hooks => {
hooks.useInstance.push(useInstance)
hooks.getRowProps.push(getRowStyles)
hooks.getHeaderProps.push(getHeaderProps)
hooks.getCellProps.push(getCellProps)
Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
@l0b0
l0b0 / safe-count-files.sh
Created November 26, 2010 14:49
Count the number of files in a directory
# This works even with really weird filenames like $'--$`\! *@ \a\b\e\E\f\n\r\t\v\\\"\' '
file_count()
{
if [ ! -e "$1" ]
then
exit 1
fi
local -i files=$(find "$(readlink -f -- "$1")" -type f -print0 | grep -cz -- -)
echo $files