Skip to content

Instantly share code, notes, and snippets.

"""
Any live cell with fewer than two live neighbours dies, as if by underpopulation.
Any live cell with two or three live neighbours lives on to the next generation.
Any live cell with more than three live neighbours dies, as if by overpopulation.
Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
"""
import sys
import time
import re
#!/usr/bin/env node
const needle = require("needle");
const fs = require("fs");
/* set up yargs */
const argv = require("yargs")
.version(false)
@z-------------
z------------- / 📊 Weekly development breakdown
Last active November 17, 2020 05:41
This is the Wakabako version. Currently inactive.
Nimrod 5h 5m █████████████████████ 81%
JavaScript 0h 27m █░░░░░░░░░░░░░░░░░░░░ 7%
Text 0h 15m █░░░░░░░░░░░░░░░░░░░░ 4%
TypeScript 0h 13m ░░░░░░░░░░░░░░░░░░░░░ 4%
Makefile 0h 7m ░░░░░░░░░░░░░░░░░░░░░ 2%
@z-------------
z------------- / _mal_dark_mode.md
Last active October 26, 2022 05:29
A dark mode for MyAnimeList

Screenshot

@z-------------
z------------- / _better_twitter_night_mode.md
Last active August 21, 2018 17:15
A better night mode for Twitter. Shades of gray instead of dark blue.

Screenshot

@z-------------
z------------- / _wikipedia_new_look.md
Last active December 3, 2018 13:43
A new look and night mode for Wikipedia et al.

Screenshot -- night mode Screenshot -- normal mode

A stylesheet and a script that give Wikipedia a new look with a night mode.

The best way to activate it is to go to Wikipedia's Preferences > Appearance and paste the CSS and JS into the corresponding section under "Shared CSS/JavaScript for all wikis".

The CSS is fine on its own, but you will need to activate the script as well for night mode to work.

For best results, have the typefaces Fira Sans and Literata installed (as well as Noto Sans CJK and Noto Serif CJK if you care about Chinese/Japanese/Korean).

def gourdify(text): # start defining a function
words = text.split(" ") # split the text at each space
for i in range(0, len(words)): # for each i between 0 and the number of words
if words[i][0] is "G": # if the first letter of current word is "G"
words[i] = "Gourd" # set the whole word to "Gourd"
elif words[i][0] is "g": # if the first letter of current word is "g"
words[i] = "gourd" # set the whole word to "gourd"
return " ".join(words) # join the list of words with a space between each word
print(gourdify("Hello! I am feeling good"))
@z-------------
z------------- / material-colors.scss
Last active August 10, 2019 15:53
A big ol' list of Sass/SCSS variables containing every color in the Material Design color spec (https://www.google.com/design/spec/style/color.html). No, I did not hand copy these.
$black: #000000;
$white: #FFFFFF;
$red50: #FFEBEE;
$red100: #FFCDD2;
$red200: #EF9A9A;
$red300: #E57373;
$red400: #EF5350;
$red500: #F44336;
$red600: #E53935;
$red700: #D32F2F;
@z-------------
z------------- / red_peak.svg
Last active September 4, 2015 11:34
An SVG version of Aaron Dustin's Red Peak, a proposed design for New Zealand's flag change referendum.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.