Skip to content

Instantly share code, notes, and snippets.

@staltz
staltz / introrx.md
Last active October 14, 2025 19:39
The introduction to Reactive Programming you've been missing
@rkrishnasanka
rkrishnasanka / CS348 - Functional Hardware Verification
Last active May 18, 2024 07:51
Solutions for Udacity Course CS348 - Functional Hardware Verification
Solutions for Udacity Course CS348 - Functional Hardware Verification
// Time complexity O(n). Space complexity O(n)
#include "iostream"
using namespace std;
#define N 7
// Adjacent array( which has a loop 0-1-4-2-0)
int AdjArr[N][N] = {0, 1, 1, 1, 0, 0, 0,
0, 0, 0, 0, 1, 0, 0,
1, 0, 0, 0, 1, 0, 0,
0, 0, 0, 0, 0, 1, 0,
// Alternative JavaScript Syntax
Person = :(name, address) { @name!, @address! }
Person::inspect = :{ <: "{@name} lives at {@address}" }
tj := Person('TJ', '314 Bessborough ave')
bob := Person('Bob', 'Some place')
[tj, bob].each(:(person){ print(person.inspect()) })