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.
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; |
""" | |
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). |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
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)
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.
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 []
- High level overview https://yogthos.github.io/ClojureDistilled.html
- An Animated Introduction to Clojure https://markm208.github.io/cljbook/
- Interactive tutorial in a browser https://tryclojure.org/
- Interactive exercises http://clojurescriptkoans.com/
- Clerk notebooks with introductory examples https://github.clerk.garden/anthonygalea/notes-on-clojure
- More interactive exercises https://4clojure.oxal.org/
- Lambda Island tutorials https://lambdaisland.com/
- Functional Programming with Clojure resources https://practicalli.github.io/
// 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) { |
- Installing NVIDIA Drivers ❗❗
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
- From last command see nvidia-driver-number and use it in the command below and then reboot 📺 ✔️