Skip to content

Instantly share code, notes, and snippets.

@senko
senko / toplang.py
Last active November 3, 2022 21:40
Get the most popular languages on Hacker News
#!/usr/bin/env python
#
# Calculate top list of programming languages based on HN stories/comments/points
# More info: https://blog.senko.net/relative-popularity-of-programming-languages-on-hacker-news
from datetime import datetime, timedelta
from json import dump, load
from os.path import join, exists
from tempfile import gettempdir
from typing import Optional
name HQ City website Year Founded Total Investment Amount Company Description
Tegus Chicago tegus.co 2016 $91,500,000.00 The Buy Side's Leading Primary Research Platform
Hologram Chicago hologram.io 2014 $82,353,000.00 Hologram is a cellular platform designed for the Internet of Things. Thousands of connectivity teams rely on Hologram to keep their fleets connected around the world — from Burbank to Brisbane. Hologram was founded in 2014 by Benjamin Forgan and Patrick Wilbur. Inspired by the connectivity challenges affecting food delivery startups in Singapore, Hologram's co-founders focused their efforts on removing the red tape preventing fast-growing IoT teams from launching cellular equipped fleets around the world. What started as a Kickstarter, under Hologram's old name, Konekt, has blossomed into the de facto networks IoT teams use to launch their products. In the years since Hologram was founded, the company has been a partner to leading technology pioneers around the world. Hologram made it possibl
@tg0h
tg0h / fzf-function-finder.zsh
Last active January 29, 2025 13:00
fzf function finder
#!bin/zsh
export _fzf_homeFn_dir="$HOME/.local/lib/zsh"
# TODO: pressing enter should leave the function name, not the entire line
_fzf_home_getFunctions(){
# get all functions and description in abs folder
#
# ASSUMPTIONS:
# each function is defined as function <functionName> () { ...
#!/bin/bash
# Props to https://gist.github.com/kaleksandrov/3cfee92845a403da995e7e44ba771183 from whom I took the code inside
# the conditional.
THIS_SCRIPT_INVOCATION=$0
# The return status of this function will be 0 if globalprotect is running, 1 if not running because grep returns 0
# if it finds a match and 1 if not.
# We basically grep for globalprotect but exclude all the matches we don't want
@akihikodaki
akihikodaki / README.en.md
Last active October 25, 2025 14:46
Linux Desktop on Apple Silicon in Practice

Linux Desktop on Apple Silicon in Practice

I bought M1 MacBook Air. It is the fastest computer I have, and I have been a GNOME/GNU/Linux user for long time. It is obvious conclusion that I need practical Linux desktop environment on Apple Silicon.

Fortunately, Linux already works on Apple Silicon/M1. But how practical is it?

  • Two native ports exist.
@rob-blackbourn
rob-blackbourn / jetblack-tweeter-graphene-ex1.py
Created October 8, 2020 07:05
The twitter calls using jetblack-tweeter
import asyncio
import os
from jetblack_tweeter import Tweeter
from jetblack_tweeter.clients.bareclient import BareTweeterSession
async def main():
# Create the twitter client.
tweeter = Tweeter(
BareTweeterSession(),

Ubuntu 22.04 for Deep Learning

In the name of God

This gist contains steps to setup Ubuntu 22.04 for deep learning.


Install Ubuntu 22.04

@BalmungSan
BalmungSan / why-fp.md
Last active December 31, 2022 04:54
Why Functional Programming?

Why Functional Programming?

Probably not the most poetic nor academic or well written phrase, but let me express in plain English why I end up choosing Functional Programming.

Over my time coding (which I have to clarify that has been short) I have learned two important things about code.
(mostly from the experience of many more veteran colleagues)

  1. The best line of code is the one that is not written. Why? Because, every single line of code that you write is instant technical debt. No matter, how well done it is, how well designed it was, how much of 1000x programmer you are, all the code is debt. All the code will become obsolete at some point in time, all the code has to be refactored.
@iamdylanngo
iamdylanngo / GlobalProtect-Portal-Linux.readme
Last active March 7, 2024 18:22
Guide setup GlobalProtect Portal on Linux
# Guide setup GlobalProtect Portal on Linux
## Setup GlobalProtect
sudo apt update
Download GlobalProtect: https://github.com/jundat95/GlobalProtectVPN/raw/master/PanGPLinux-5.0.8-c6.tgz
Go to folder Downloads and Unzip: tar -xvzf PanGPLinux-5.0.8-c6.tgz
@ctrlcctrlv
ctrlcctrlv / rust-maintainer-perfectionism.md
Last active May 15, 2025 04:03
Rust maintainer perfectionism

Rust maintainer perfectionism, or, the tragedy of Alacritty

I did not submit this to Hacker News and did not intend that this post would have high circulation but have no real problem with it being there or with it having such. I have more recent comments below. This post is from January 2020 and predates the Modular Font Editor K (MFEK) project.

I have not worked on Rust projects in quite a while, and don't know if I ever will again. I feel many crate maintainers are way too perfectionist, for example, despite all the developer hours that went into this PR, it took the effort within years to be (halfway) merged.

There's always a reason not to merge, isn't there? It would be better done with a new nightly language feature, or the function signature should have a where clause, or the documentation is not perfect. There's always a new nit to pick in the world of Ru