Skip to content

Instantly share code, notes, and snippets.

@passcod
passcod / CARETAKERS.md
Last active December 29, 2021 17:28
Caretaker maintainership in a nutshell

Caretaker Maintainership

(If this file is included in a project, you can find the list of current caretakers at the bottom.)

In a small classical open-source project, maintainers do a lot, and if maintainers don't have time to do a lot, usually the project stalls. Finding new maintainers is hard because few people actively want to take over all the responsibilities of a project. There must be a different way.

With Caretaker Maintainership, "Maintainers" become "Caretakers". Caretakers' only mandatory responsibility is to grant Releasers commit and publish access to the project.

@fasterthanlime
fasterthanlime / state-of-emergency-in-france.md
Last active March 26, 2021 21:29
What the state of emergency means in France, where it's been declared following the Paris attacks
@JeffreyWay
JeffreyWay / gist:1525217
Created December 27, 2011 21:29
Instant Server for Current Directory
alias server='open http://localhost:8000 && python -m SimpleHTTPServer'
@hamishcampbell
hamishcampbell / polyomino.py
Created September 6, 2013 23:26
Polyomino Reference Source - PyCon 2013
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import sys
class Polyomino(object):
def __init__(self, iterable):
self.squares = tuple(sorted(iterable))
def __repr__(self):
@davidhund
davidhund / pragmatic-touch-icons.md
Last active September 4, 2020 15:42
Pragmatic Touch Icons

NOTE I'm trying to find the most optimal fav/touch icon setup for my use-cases. Nothing new here. Read Mathias Bynens' articles on re-shortcut-icon and touch icons, a FAQ or a Cheat Sheet for all the details.

I'd like to hear how you approach this: @valuedstandards or comment on this gist.

The issue

You have to include a boatload of link elements pointing to many different images to provide (mobile) devices with a 'favicon' or 'touch icon':

![Touch Icon Links](https://o.twimg.com/2/proxy.jpg?t=HBj6AWh0dHBzOi8vcGhvdG9zLTYuZHJvcGJveC5jb20vdC8yL0FBRGFGY1VRN1dfSExnT3cwR1VhUmtaUWRFcWhxSDVGRjNMdXFfbHRJWG1GNFEvMTIvMjI3OTE2L3BuZy8xMDI0eDc2OC8yL18vMC80L1NjcmVlbnNob3QlMjAyMDE1LTA0LTE0JTIwMTYuNTYuMjYucG5nL0NNejBEU0FCSUFJZ0F5Z0JLQUkvNGR1eDZnMzZmYnlzYWI3

@hillexed
hillexed / portalexplanation.md
Last active June 16, 2019 23:30
BABA has PORTAL GUN

Here's how my level implementing Portal in Baba is You works! If you haven't seen it, here's a video: https://streamable.com/9pflr

Baba is You is a game played with the arrow keys. How can Baba fire a portal gun and still have the ability to walk around? The answer: there's one more button the game allows, and that's the wait button - which makes baba stand still and allows a turn to pass in the game world. In this level, the wait button does more than wait - it fires the portal gun.

The skull crosses are a gadget to activate an arbitrary rule when the wait button is pressed. The following rules are used to set it up:

FUNGUS MAKE BABA
BABA ON FUNGUS IS MOVE AND MOVE
BABA ON SKULL IS EMPTY
@achanda
achanda / dotexec.md
Last active March 8, 2018 03:52
Dot execing Rust
  • Wrapper script
root@dev:~# cat `which rustwrap`
#!/usr/bin/env bash

rustc "$1" -o foobar && shift && ./foobar "$@"
  • Mount binfmt_misc
mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
@relsqui
relsqui / examples.txt
Last active September 28, 2017 03:55
Older versions of the PSU out list don't have great spacing, so the identity labels and the academic fields sort of run together. The result is funny. Rather than standing in the QRC reading the out list and giggling, here's a script to generate them.
C:\home\relsqui\queermajors> ./pickmajor.py
polyamorous music
C:\home\relsqui\queermajors> ./pickmajor.py
androgynous spanish
C:\home\relsqui\queermajors> ./pickmajor.py
genderfluid pre-health
C:\home\relsqui\queermajors> ./pickmajor.py
intersex music composition
C:\home\relsqui\queermajors> ./pickmajor.py
gay chemistry
anonymous
anonymous / stdin.txt
Created October 27, 2013 05:32
stdin
0 0 0 1 1 1 2 0 0
3 6 9 2 5 8 1 0 3
-------------------------------------------------
. ┝━━━━━━━━━━━━━┥. . . . . .
. ┝━━━━━━━━━━━━━━━━┥ . . . . .
. ┝━━━━━━━━━━━━━━━━━┥. ┝━━┥ . . .
. .┝━━━━━━━━━━┥ . . . . .
. ┝━━━━━━━━━━━━━━┥ . . . . .
. ┝━━━━━━━━━━━━┥ . . . ┝━━━━┥ . .
. . ┝━━━━━━━━━━━━━┥ . . . .