Skip to content

Instantly share code, notes, and snippets.

@v21
v21 / one.rs
Created December 2, 2020 00:36
advent of code 2020, day 1
use std::fs::File;
use std::io::{self, BufRead};
use std::path::Path;
use itertools::iproduct;
fn main() {
if let Ok(lines) = read_lines("./input.txt") {
let nums : Vec<i32> = lines.map(|l| l.unwrap().parse::<i32>().unwrap()).collect();
@v21
v21 / gist:c84d008191afb0d91373318d7a738a32
Created June 7, 2020 13:06
the male nurses bit from "Tonight Dies The Moon" by Tom McHenry
By the late 1990s, male nursing sitcoms were the primary genre of American scripted television. Beginning with NBC's smash hit "Drips" (itself capitalizing on Michael Schultz's hit 1987 film <em>[[Disorderlies|http://www.imdb.com/title/tt0092897/]]</em> and its two sequels in 1989 and 1991), both ABC and CBS had developed imitators by the next season: "Hippocratic Oafs" and "Men of Mercy," respectively. Defying all expectations, both of these shows drew huge and consistent viewership numbers, and the American appetite for male nurse-based sitcoms proved insatiable. By the year 2000, every primetime television block is filled with a well-performing male nursing sitcom or male nurse-based dramedy. There are rumors that the 9 o'clock news may be pushed back an hour or cancelled altogether by the 2001-2002 season in order to free up another two slots for comedies about the high jinks of male nurses.
Each nursing sitcom develops from the same stock premise: three or four wise-cracking, prank-loving male nurses go
//a series of additional GLSL shaders for use in Hydra
//swizzles
setFunction({name: "rrrr", type: "color", inputs: [], glsl: `return _c0.rrrr;`});
setFunction({name: "rrrg", type: "color", inputs: [], glsl: `return _c0.rrrg;`});
setFunction({name: "rrrb", type: "color", inputs: [], glsl: `return _c0.rrrb;`});
setFunction({name: "rrra", type: "color", inputs: [], glsl: `return _c0.rrra;`});
setFunction({name: "rrr0", type: "color", inputs: [], glsl: `return _c0.rrr0;`});
setFunction({name: "rrr1", type: "color", inputs: [], glsl: `return _c0.rrr1;`});
setFunction({name: "rrgr", type: "color", inputs: [], glsl: `return _c0.rrgr;`});
Let's make a game!
name:The Recycling Center
by:Team Rubiks
Desc: One man’s trash is another man’s… trash to be sold for money.<//>Create your own trash empire!
created:25/7/2017
updated:24/10/2017
version:1
Settings
background:http://v21.io/files/temp/igm/background.png
@v21
v21 / dump.txt
Created March 19, 2020 14:32
idle game maker - let's go to the dump
Let's make a game!
name:Bunny Clicker
by:Orteil
desc:This is a simple idle game to showcase some of the basic functionalities of Idle Game Maker.<//>Make bunnies and shoot for the stars!
created:25/7/2017
updated:24/10/2017
version:1
Settings
background:stuff/meadow.jpg
@v21
v21 / dril_gpt2
Last active November 21, 2023 23:12
Video: Video: We Are The Champions http://bit.ly/1dVMYJ WHO WOULDNT FAVOR A CHAMPIONS WEBPAGE http://on.fb.me/1dVMYI WE ARE THE CHAMPIONS WEBPAGE http://bit.ly/1dkVN4 WE DO IT AGAIN AND AGAIN http://bit.ly/29zFTGs CHAMPIONS WEBPAGE http://bit.ly/29zFTGs http://bit.ly/29zFTGs We will prevail CHAMPIONS WEBPAGE http://bit.ly/29zFTGs http://bit.ly/29zFTGs We will prevail http://transfer.yahoo.com/j/id/10001 William Shatner as Captain James T. Kirk
we just had to put up with this fucking idiot customer service rep for an electronics store . ive had it with his bullshit. ive had enough. ive had enough of this shit. ive written him a letter , and he will return my things if i do not get my account suspended. http://i.imgur.com/V1XSx.jpg
http://i.imgur.com/YXpg.jpg my.heads.up.this.is.a.fair.and.temperament.with.a.giant.ass.on.it.gaining.power.on.my.iphone.uta.phone.uta.ti.me.to.the.unity.game.android.com/uploads/levels/speedrun/4th.march.2013.1080p.BLURED.md5sum.bin
http://bit.ly/1dVMYJ FEATURE - THE HYPNOTIZER "
@v21
v21 / poisson_disc_sampling.ts
Created October 27, 2019 15:46
an implementation of poisson disc sampling in Typescript
import { Vec2, RadialVec2 } from "./utils";
import Random = require("random-js");
import _ = require("underscore");
const ATTEMPTS_PER_POINT = 8;
const DEFAULT_RADIUS = 100;
export enum SamplingStrategy {
Random = "random",
First = "first",
@v21
v21 / index.php
Created August 31, 2018 10:33
oulipo word tool
<html>
<head>
<style type="text/css">
.match {
font-weight: bold;
font-size: 125%;
}
.nomatch {
color:#aaa;
@v21
v21 / gist:9187c3ed719511c8e6f084d46ca41dac
Created August 2, 2017 09:37
Toys now vs girl's games in the 90s

(this is a reply to https://twitter.com/hownottodraw/status/892655179509764096)

Okay, so: I think the situation with girls games in the 90s came pretty directly out of them being sold as a weird form of toys (as opposed to games for boys, which were their own thriving market with a specialist press etc). This doesn't apply everywhere, but I think it does apply to the Barbie games especially - if only because they were published / licensed by Mattel.

(I also do think there were other factors at play - many people at publishers and developers were probably sexist, and working on girls games was no doubt seen as low status for both publishers and devs. None of that helped)

I'm also kinda shading between toys as they are now and toys as they were 20 years ago. I actually don't really know what the toy market was like in the 90s, but I heavily suspect it has not changed all that fundamentally. (I should also point out I'm not an expert in the current toy market, but I have been exposed to it as we talk about h

using UnityEngine;
using UnityEditor;
public class Screenshots : EditorWindow {
bool groupEnabled;
int lastCapturedFrame = -1;
bool recording;
public string folder = "Screenshots/Sequence";