Skip to content

Instantly share code, notes, and snippets.

@tykurtz
tykurtz / grokking_to_leetcode.md
Last active November 3, 2025 19:16
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

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.

Pattern: Sliding Window

@cihadturhan
cihadturhan / attachWebsocketServer.diff
Created April 20, 2018 11:28
dirty hack to react-native/local-cli/server/util/attachWebsocketServer.js
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @format
* @flow
@shimizu
shimizu / ChartComponents.js
Last active January 23, 2021 20:36
React & D3 v4 example - Line Chart
//todo:後で分割する。
import * as d3 from "d3";
import React, { Component } from "react";
export default function D3blackbox(d3render) {
return class Blackbox extends Component {
componentDidMount() {
d3render.call(this);
@Kartones
Kartones / postgres-cheatsheet.md
Last active November 4, 2025 12:10
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)