Skip to content

Instantly share code, notes, and snippets.

View greed2411's full-sized avatar
:octocat:
chilling at some local minima ...

Jaivarsan greed2411

:octocat:
chilling at some local minima ...
View GitHub Profile
@veekaybee
veekaybee / normcore-llm.md
Last active May 6, 2024 01:30
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

@lithdew
lithdew / main.zig
Last active January 23, 2024 03:51
zig: basic tcp echo server w/ stdlib event loop
const std = @import("std");
const os = std.os;
const net = std.net;
const mem = std.mem;
const log = std.log.scoped(.server);
const assert = std.debug.assert;
pub const io_mode = .evented;
@greed2411
greed2411 / random_wo_replacement_generator.py
Last active July 4, 2021 20:21
Python Bloom Filter based random-int-without-replacement-generator-given-a-range.
"""
This gist comes out of frustration that I couldn't have a
random-int-without-replacement-generator-given-a-range.
random.sample, and np.random.choice(replace=False) both fail on really large numbers.
Python crashes saying OOM & segfaults.
Problem was for smaller `n` (<5 million) they optimized for linear/sub-linear
times and linear storage (set, pool-tracking list).
@prologic
prologic / LearnGoIn5mins.md
Last active May 5, 2024 17:05
Learn Go in ~5mins
@ityonemo
ityonemo / test.md
Last active May 5, 2024 15:42
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

@tykurtz
tykurtz / grokking_to_leetcode.md
Last active May 6, 2024 01:20
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

In this section, we want you to tackle a new programming language, Clojure. This introduction covers defining functions in clojure, calling them, composing simpler functions into a higher order function etc.

We want you to understand the syntax of the language, experiment with writing some new functions.

You can write clojure on a simple online editor http://app.klipse.tech to try out the examples

A clojure function has this form:

(defn  []
@yogthos
yogthos / clojure-beginner.md
Last active May 6, 2024 08:11
Clojure beginner resources

Introductory resources

// Processing code by Etienne JACOB
// motion blur template by beesandbombs
// opensimplexnoise code in another tab might be necessary
// --> code here : https://gist.github.com/Bleuje/fce86ef35b66c4a2b6a469b27163591e
int[][] result;
float t, c;
float ease(float p) {
@AnmolTomer
AnmolTomer / ubuntu_setup.md
Last active September 16, 2020 16:39
Ubuntu 18.04 LTS getting started, things to install guide - Updated April 2020
  1. Installing NVIDIA Drivers ❗❗
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
  1. From last command see nvidia-driver-number and use it in the command below and then reboot 📺 ✔️