Skip to content

Instantly share code, notes, and snippets.

View Bhupesh-V's full-sized avatar

Bhupesh Varshney Bhupesh-V

View GitHub Profile
@caseywatts
caseywatts / 0-self-publishing.md
Last active September 22, 2025 12:54
Self-Publishing via Markdown
@kirk86
kirk86 / emojione-picker.py
Created July 3, 2020 18:41
emojione-picker
#!/usr/bin/python3
# -*- coding: UTF-8 -*-
#
import os
import subprocess
import time
import socket
import sys
import json
@MineRobber9000
MineRobber9000 / README.md
Created July 7, 2020 03:29
Import Python modules from GitHub

githubimport

Allows you to import Python modules from the top level of a GitHub repository. Basically, golang's import semantics but in Python fashion.

>>> import githubimport
>>> from MineRobber9000.test_modules import blah
>>> blah.foo()
"bar"
@graninas
graninas / What_killed_Haskell_could_kill_Rust.md
Last active November 5, 2025 03:56
What killed Haskell, could kill Rust, too

At the beginning of 2030, I found this essay in my archives. From what I know today, I think it was very insightful at the moment of writing. And I feel it should be published because it can teach us, Rust developers, how to prevent that sad story from happening again.


What killed Haskell, could kill Rust, too

What killed Haskell, could kill Rust, too. Why would I even mention Haskell in this context? Well, Haskell and Rust are deeply related. Not because Rust is Haskell without HKTs. (Some of you know what that means, and the rest of you will wonder for a very long time). Much of the style of Rust is similar in many ways to the style of Haskell. In some sense Rust is a reincarnation of Haskell, with a little bit of C-ish like syntax, a very small amount.

Is Haskell dead?

@StarfallProjects
StarfallProjects / guest-writer-programs.md
Last active September 10, 2023 11:18
A collection of freelance writing opportunities, focused on guest writer programs.

Paid content marketing programs

This is a collection of content marketing programs. I've tried to limit it to ones that pay (and have excluded some that paid insultingly low!) but exact pay ranges aren't always available.

Most of these programs are developer-oriented.

This list isn't very actively maintained, so some programs may no longer be running when you're viewing this.

List of programs

@tiran
tiran / python-on-debian.md
Last active July 19, 2025 10:03
Negative Python user experience on Debian/Ubuntu

Negative Python user experience on Debian/Ubuntu

The user experience of Python on a minimal Debian or Ubuntu installation is bad. Core features like virtual environments, pip bootstrapping, and the ssl module are either missing or do not work like designed and documented. Some Python core developers including me are worried and consider Debian/Ubuntu's packaging harmful for Python's reputation and branding. Users don't get what they expect.

Reproducer

The problems can be easily reproduced with official Debian and Ubuntu containers in Docker or Podman. Debian Stable (Debian 10 Buster) comes with Python 3.7.3. Ubuntu Focal (20.04 LTS) has Python 3.8.5.

Run Debian container

@vitalizzare
vitalizzare / __init__.py
Created December 27, 2020 01:24
Split module into multiple files
from .social_media_post import SocialMediaPost
from .social_media_post_publisher import SocialMediaPostPublisher
# This is used by 'from socsocial_media_post import *'
# As far as there is nothing else here and in app.py
# we import the classes explicitely, this part can be ommited
__all__ = [
'SocialMediaPost',
'SocialMediaPostPublisher'
]
@Animesh-Ghosh
Animesh-Ghosh / recursive_ctes.sql
Created July 25, 2021 12:08
Recursive Common Table Expressions
-- count till n
WITH RECURSIVE count_cte AS (
SELECT 1 AS n -- anchor member
UNION
SELECT n + 1 -- recursive member
FROM count_cte WHERE n < 10
) SELECT * FROM count_cte;
-- factorial
WITH RECURSIVE fact_cte AS (
@kad1r
kad1r / clean_code.md
Created November 9, 2021 05:24 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@diki-haryadi
diki-haryadi / Handling Null SQL in Golang
Created December 15, 2021 10:59
Handling Null SQL in Golang
```
package helper
import (
"database/sql"
"encoding/json"
"fmt"
"reflect"
"time"