Skip to content

Instantly share code, notes, and snippets.

View fayimora's full-sized avatar
🕺

Fayi FB fayimora

🕺
  • London, England
View GitHub Profile
@IgorWarzocha
IgorWarzocha / README.md
Last active May 30, 2026 15:10
Hyprland H/Y layout keybind scripts

Hyprland H/Y layout binds

Tiny Hyprland layout helpers for Dwindle.

  • SUPER + H: turn exactly 3 tiled windows/groups into 3 equal columns.
  • SUPER + Y: smart layout key:
    • 2 tiled windows/groups → 1/3 - 2/3
    • 3 tiled windows/groups → streaming layout: main window on the left, agent/chat window top-right, small stream chat bottom-right

The streaming layout is for setups where OBS has a camera overlay in the lower-right corner. Instead of wasting that covered space, the script puts the small stream chat there:

@kubukoz
kubukoz / .scalafmt.conf
Last active June 11, 2026 14:07
How to disable significant indentation in Scala
runner.dialect = scala3
runner.dialectOverride.allowSignificantIndentation = false
# allows `if x then y`
runner.dialectOverride.allowQuietSyntax = true
@Overemployed
Overemployed / transcribe.js
Last active June 1, 2024 15:36
Listen for a live recording and transcribe the file. Send a notification when YOUR_NAME is called
const pathParser = require("path");
const { MODEL_PATH, HOME, YOUR_NAME, FILE_GLOB } = process.env;
console.log(MODEL_PATH, HOME, YOUR_NAME, FILE_GLOB);
const chokidar = require('chokidar');
const vosk = require('vosk');
const wav = require("wav");
const { Readable } = require("stream");
const { notify } = require('node-notifier');
const TailingReadableStream = require('tailing-stream');
const recordingsDir = `${HOME}/recordings/`
/*
* Copyright 2020 Roberto Leibman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@rstacruz
rstacruz / README.md
Last active November 1, 2025 19:07
How to install Docker in Mac, Windows, and Linux

Getting Docker

Docker is available for Linux, MacOS, and Windows.

MacOS

Docker for Mac is best installed with Homebrew and Homebrew Cask. For other ways to install on MacOS, see Install Docker for Mac in Docker's docs.

brew cask install docker # Install Docker
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active June 17, 2026 16:23
What I Wish I'd Known About Equity Before Joining A Unicorn

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

Applied Functional Programming with Scala - Notes

Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x
@jdmaturen
jdmaturen / company-ownership.md
Last active July 29, 2023 22:39
Who pays when startup employees keep their equity?

Who pays when startup employees keep their equity?

JD Maturen, 2016/07/05, San Francisco, CA

As has been much discussed, stock options as used today are not a practical or reliable way of compensating employees of fast growing startups. With an often high strike price, a large tax burden on execution due to AMT, and a 90 day execution window after leaving the company many share options are left unexecuted.

There have been a variety of proposed modifications to how equity is distributed to address these issues for individual employees. However, there hasn't been much discussion of how these modifications will change overall ownership dynamics of startups. In this post we'll dive into the situation as it stands today where there is very near 100% equity loss when employees leave companies pre-exit and then we'll look at what would happen if there were instead a 0% loss rate.

What we'll see is that employees gain nearly 3-fold, while both founders and investors – particularly early investors – get dilute

@danawoodman
danawoodman / 0-react-hello-world.md
Last active May 23, 2026 16:07
React Hello World Examples

React "Hello World" Examples

Below are a small collection of React examples to get anyone started using React. They progress from simpler to more complex/full featured.

They will hopefully get you over the initial learning curve of the hard parts of React (JSX, props vs. state, lifecycle events, etc).

Usage

You will want to create an index.html file and copy/paste the contents of 1-base.html and then create a scripts.js file and copy/paste the contents of one of the examples into it.

@nojvek
nojvek / Tinder Auto-liker
Last active November 12, 2021 18:28
Tinder Auto-liker script
<?php
// Licence: WTFPL ! http://www.wtfpl.net/about/
$fbAuth = array("facebook_id" => "123456789", "facebook_token" => "<Use charles proxy to do man-in-middle SSL sniffing and extract fb token>");
// Do the magic.
$tinderToken = tinderCall("auth", "token", $fbAuth); // Authenticate
$authToken = "X-Auth-Token: $tinderToken\r\nAuthorization: Token token=\"$tinderToken\"\r\n";