Skip to content

Instantly share code, notes, and snippets.

"""Compare the dist file created by a migrated package to one created by the original."""
import argparse
import glob
import os
import shutil
import subprocess
import sys
import tarfile
import zipfile
@blink1073
blink1073 / LICENSE
Last active October 31, 2025 07:26
Wrap an Asynchronous Class
Copyright (c) 2022 Steven Silvester
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
@blink1073
blink1073 / meta.yml
Last active December 20, 2021 18:39
prototype conda recipe for pymongoarrow
{% set name = "pymongoarrow" %}
{% set version = "0.2.0.dev0" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: file:///home/runner/work/mongo-arrow/mongo-arrow/bindings/python/dist/pymongoarrow-{{ version }}.tar.gz
from subprocess import getoutput
import os
from datetime import datetime
from github_activity import generate_activity_md
import re
import sys
from ghapi.core import GhApi
name = sys.argv[-1]
os.chdir(name)
@blink1073
blink1073 / Backup Notes.md
Last active October 4, 2019 21:05
Jupyter Enterprise JEP (Draft)

When submitting an enhancement proposal, individuals will include the following information in their submission.

The problem that this enhancement addresses. If possible include code or anecdotes to describe this problem to readers.

A brief (1-2 sentences) overview of the enhancement you are proposing. If possible include hypothetical code sample to describe how the solution would work to readers.

A detailed explanation covering relevant algorithms, data structures, an API spec, and any other relevant technical information
A list of pros that this implementation has over other potential implementations.

A list of cons that this implementation has.

@blink1073
blink1073 / keybase.json
Created August 14, 2019 15:02
keybase.md
### Keybase proof
I hereby claim:
* I am blink1073 on github.
* I am blink1073 (https://keybase.io/blink1073) on keybase.
* I have a public key ASCDyw9ILX4MYwb0QEz0FoJCY3PcM49VZGetMmdcf3RsOAo
To claim this, I am signing this object:
@blink1073
blink1073 / plotting.ipynb
Created May 3, 2019 11:41
Octave Kernel Plotting
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@blink1073
blink1073 / winpexpect.py
Created November 23, 2017 11:32
winpexpect
import os
import sys
import time
import errno
import signal
from winpty import PtyProcess
from .exceptions import ExceptionPexpect, EOF, TIMEOUT
from .spawnbase import SpawnBase
@blink1073
blink1073 / setup_hooks.py
Created November 16, 2017 11:58
setup.py hooks
from setuptools.command.develop import develop
from setuptools.command.install import install
class PostDevelopCommand(develop):
"""Post-installation for development mode."""
def run(self):
fetch_yarn()
develop.run(self)