Skip to content

Instantly share code, notes, and snippets.

View tonilastre's full-sized avatar

Toni tonilastre

  • Memgraph
  • Croatia
View GitHub Profile
@tonilastre
tonilastre / message-01.md
Created April 17, 2024 13:41
Content that explains GSS (Graph Style script) for the LLM

I want you to learn what Graph Style Script looks like so you can help generate GSS code on user request. Let's start with the introduction:

GSS (Graph Style Script) is a language for customizing the visual display of graphs.

Main building blocks

The main building blocks of Graph Style Script (GSS) are expressions and directives. GSS files are a sequence of expressions and directives.

Expressions

@tonilastre
tonilastre / terminal-prompt-git-branch-zsh.md
Created April 13, 2023 22:34 — forked from reinvanoyen/terminal-prompt-git-branch-zsh.md
Add Git Branch Name to Terminal Prompt (MacOS Catalina zsh)

Add Git Branch Name to Terminal Prompt (MacOS Catalina zsh)

Updated for MacOS Big Sur | Monterey | Ventura

screenshot

Install

Open ~/.zshrc in your favorite editor and add the following content to the bottom.

function parse_git_branch() {
@tonilastre
tonilastre / memgraph-graph-browser-connection.html
Last active April 4, 2023 15:43
Run Cypher queries from browser and visualize graph results with Memgraph Orb
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Javascript Browser Example | Memgraph</title>
<script src="https://cdn.jsdelivr.net/npm/neo4j-driver"></script>
<script src="https://unpkg.com/@memgraph/orb/dist/browser/orb.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Mono&display=swap" rel="stylesheet">
@tonilastre
tonilastre / cypher-create-dataset.cypher
Last active September 1, 2022 20:06
Orb <> GSS examples
// Delete all the nodes and edges
MATCH (n) DETACH DELETE n;
// Create the example graph
CREATE
(n1:Show { id: 1, name: 'House of the Dragon', type: 'Show' }),
(n2:Person { id: 2, name: 'Rhaenyra Targaryen', type: 'Person', family: 'Targaryen' }),
(n3:Person { id: 3, name: 'Daemon Targaryen', type: 'Person', family: 'Targaryen' }),
(n4:Person { id: 4, name: 'Viserys Targaryen', type: 'Person', family: 'Targaryen' }),
(n5:Person { id: 5, name: 'Otto Hightower', type: 'Person', family: 'Hightower' }),
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Orb | Render a custom-styled graph</title>
<script src="https://unpkg.com/@memgraph/[email protected]/dist/browser/orb.js"></script>
<style>
html, body {
height: 100%;
margin: 0;

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would