Skip to content

Instantly share code, notes, and snippets.

View mnemnion's full-sized avatar

Sam Atman mnemnion

  • Eastern Standard Tribe
View GitHub Profile
@IanColdwater
IanColdwater / twittermute.txt
Last active April 22, 2024 17:26
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@alnsn
alnsn / phash2.lua
Last active January 11, 2019 05:30
Lua module for BDZ perfect hash
-- Building block for generating a perfect not order preserving
-- non-minimal hash.
--
-- For a keyset of size N, it builds a random bipartite graph of
-- size N and order 2 * math.floor(1.0625 * N).
-- With a good probability the graph is acyclic and it's possible
-- to select one vertex from each edge/key that is guaranteed to
-- be unique. Vertices are selected by comparing two bits in
-- a bitset that has the same size as the order of the graph.
--
@jalcine
jalcine / .gitignore
Last active March 18, 2024 07:20
Getting libuv and zeromq working together (polling setup)
build
@jaredatron
jaredatron / events.js
Created February 21, 2013 19:55
Easiest events!
bind: function(){
$.fn.bind.apply($(this), arguments);
},
trigger: function(){
$.fn.trigger.apply($(this), arguments);
}