Skip to content

Instantly share code, notes, and snippets.

View canbax's full-sized avatar
👋
hi

Yusuf Canbaz canbax

👋
hi
View GitHub Profile
@canbax
canbax / northwind.cyp
Created July 6, 2026 10:28
Northwind database in Neo4j 5 with node and relationship key constraints
This file has been truncated, but you can view the full file.
CREATE RANGE INDEX FOR (n:Category) ON (n.categoryID);
CREATE RANGE INDEX FOR (n:Customer) ON (n.customerID);
CREATE RANGE INDEX FOR (n:Order) ON (n.orderID);
CREATE RANGE INDEX FOR (n:Product) ON (n.productID);
CREATE RANGE INDEX FOR (n:Product) ON (n.productName);
CREATE RANGE INDEX FOR (n:Supplier) ON (n.supplierID);
CREATE CONSTRAINT category_hume_id_key FOR (node:Category) REQUIRE (node.humeId) IS NODE KEY;
CREATE CONSTRAINT customer_hume_id_key FOR (node:Customer) REQUIRE (node.humeId) IS NODE KEY;
CREATE CONSTRAINT order_hume_id_key FOR (node:Order) REQUIRE (node.humeId) IS NODE KEY;
{
"version": 8,
"name": "Super Mario Retro World",
"glyphs": "https://api.maptiler.com/fonts/{fontstack}/{range}.pbf?key=R2qs1fLudTdtJvdt4MRp",
"sources": {
"openmaptiles": {
"type": "vector",
"url": "https://api.maptiler.com/tiles/v3/tiles.json?key=R2qs1fLudTdtJvdt4MRp"
}
},
@canbax
canbax / wasm0.md
Created April 16, 2023 17:41
Can WebAssembly make your web apps faster?

What is WebAssembly?

Assembly?

As we all know, machines read binary codes (strings of zeros and ones) because it is very convenient for them but not for humans. So engineers basically created a mapping from binary code and called the mapped version 'Assembly'.

Assembly and binary code

WebAssembly?

WebAssembly is an 'Assembly'-like language. It's nickname is wasm. Basically WebAssembly is the Assembly language for modern browsers.

People usually don't write Assembly code directly because it can be tedious. That's why there are many Assembly compilers that simply create Assembly code from C/C++, C#, Rust, Java ... So basically you can run an existing C/C++ or Rust application inside a browser.