Skip to content

Instantly share code, notes, and snippets.

View tinfoil-knight's full-sized avatar
🗿
*_*

Kunal Kundu tinfoil-knight

🗿
*_*
View GitHub Profile
#!/usr/bin/env node
const fs = require("fs");
const path = require("path");
function readLines(absolutePath) {
const contents = fs.readFileSync(absolutePath, "utf8");
return contents.split("\n");
}
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: zed [30785]
Path: /Applications/Zed.app/Contents/MacOS/zed
Identifier: dev.zed.Zed
Version: 0.147.2 (20240807.152727)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
MediaExpr {
// Syntax Grammar
Main = Expression
Expression = LogicOr
LogicOr = LogicAnd ("or" LogicAnd)*
LogicAnd = Equality ("and" Equality)*
Equality = Comparison (("!=" | "==") Comparison)*
Comparison = Term ((">" | ">=" | "<" | "<=") Term)*
-- code for https://youtu.be/tp_5c6jaNQE
create table users (
-- a table can only have 1 primary key
id serial primary key,
first_name varchar(255) not null,
last_name text,
age int,
email text unique not null
);

Keybase proof

I hereby claim:

  • I am tinfoil-knight on github.
  • I am kunalkundu (https://keybase.io/kunalkundu) on keybase.
  • I have a public key whose fingerprint is 3296 318C F8A1 D526 EF92 6979 C44A B343 9817 5A40

To claim this, I am signing this object:

OSS Log

  • I've actually started using a debugger now which helped a lot in finding this bug
  • vscode has a separate JS debug terminal that'll listen to any NodeJS process that you run
  • wrote tests, doc and code for this one
  • the cli repo is great at keeping documentation near code so it can be updated alongside code changes. it was pretty easy to add support for a different argument type
  • should've asked a few questions before the PR to avoid assuming that site ids are uuidv4 when there was a solution that could work without assuming anything about what the backend stores ids as
@tinfoil-knight
tinfoil-knight / ISSUE_TEMPLATE.md
Last active December 11, 2020 11:56
Issue Template for Frontend Repositories

Expected Behaviour

Actual Behaviour

Screenshot(s)

Device Type:

  • Desktop
@tinfoil-knight
tinfoil-knight / README-Template.md
Created September 13, 2020 14:10 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites