Skip to content

Instantly share code, notes, and snippets.

View soosub's full-sized avatar
🚲

Joost soosub

🚲
  • Zurich, Switzerland
View GitHub Profile
@pszemraj
pszemraj / sncl.md
Created August 5, 2024 03:26
Schrödinger's Non-Commercial License (SNCL) v1.0 draft

Schrödinger's Non-Commercial License (SNCL) v1.0

Preamble:

This license is designed to allow users to freely use, modify, and distribute the software for non-commercial purposes. It recognizes the challenges in defining what constitutes commercial activity and offers guidance and flexibility for users who are unsure about the nature of their activities.

1. Grant of License

Subject to the terms and conditions of this License, the Licensor hereby grants to the Licensee a worldwide, royalty-free, non-exclusive license to use, modify, and distribute the Software, provided that such activities are conducted for Non-Commercial Purposes, as defined below.

@pszemraj
pszemraj / SMITE.md
Last active January 18, 2023 17:09
this is a DRAFT of a theoretical SMITE license meant to discourage widespread usage of cc-by-nc on everything, see below for details. Not an official document. Feedback/ideas welcome! comment/email me (see profile page)

SMITE

The SMITE license is a modified version of the MIT license that includes an additional clause that prohibits individuals or organizations that have ever released original software under a non-commercial license, or are currently part of an organization that has ever released original software[^1] under a non-commercial license, from using the software[^2]. This license is intended to prevent large corporations from releasing models or software under non-commercial licenses and then using them for commercial gain. If the user(s) have never released anything with a non-commercial license, then it is just the standard MIT license.

  • This license can benefit the open source community by encouraging companies who "openly" release software under a noncommercial license to do so on "intrinsic" grounds, as opposed to using noncommercial licenses as a universal pseudo-noncompete clause. From some points of view, this can be seen as a form of exploitation of the open
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@johnmcfarlane
johnmcfarlane / begin(C++).md
Last active August 16, 2024 06:40
Resources for C++ beginners
@popcornell
popcornell / gf2elim.py
Last active August 5, 2024 17:49
Gaussian elimination for binary matrices ( all elements in GF(2) ) implemented in numba python and numpy for efficiency.
import numpy as np
import numba
@numba.jit(nopython=True, parallel=True) #parallel speeds up computation only over very large matrices
# M is a mxn matrix binary matrix
# all elements in M should be uint8
def gf2elim(M):
m,n = M.shape