Skip to content

Instantly share code, notes, and snippets.

View purpleposeidon's full-sized avatar
:shipit:

neptunepink purpleposeidon

:shipit:
  • California, United States
View GitHub Profile
<!doctype HTML>
<title>No CSS!</title>
<p>Hello, <style font-weight=bold>world</style>.
<p>This is just just an idea I had from listening to <style font-style=italic>that podcast with <style color=green font-size=200%>@rsnous</style></style>.
<p>As you can see... <style color=red font-weight=bold text-transform=uppercase>everything is HTML!</style>
<script>
@purpleposeidon
purpleposeidon / differential_materialize.rs
Created November 9, 2021 13:33
Fixing data denormalization with differential events
// Sketch in response to https://lironshapira.medium.com/data-denormalization-is-broken-7b697352f405
// Schema
#[table]
struct room {
name: String,
}
#[table]
struct msg {
" Boy, it'd sure be nice if this was by default...
augroup vimrc
au!
set nomodeline
if exists('&modelineexpr')
" This is the "vim: tw=77" thing.
" Has a history of being a security hole.
" https://github.com/numirias/security/blob/master/doc/2019-06-04_ace-vim-neovim.md
@purpleposeidon
purpleposeidon / gist:4235f356033678f55fdef6057d3ee2e4
Created August 11, 2021 07:07
The Novel Remainder: A Create ship
1. Go out a ways into the ocean, in creative mode.
2. Run this command:
/give @p minecraft:command_block
3. Open the command block's GUI, and copy & paste this looooong command into the text box:
/summon minecraft:boat ~ 70 ~ {CustomName: '{"text":"The Novel Remainder"}', Type: "spruce", Invulnerable: 1b, Rotation: [0.0f, 0.0f], Passengers: [{Initialized: 1b, Contraption: {Blocks: {Palette: [{Properties: {waterlogged: "false", type: "bottom"}, Name: "minecraft:spruce_slab"}, {Properties: {axis: "x"}, Name: "create:minecart_anchor"}, {Properties: {axis: "y"}, Name: "minecraft:stripped_spruce_log"}, {Properties: {half: "top", waterlogged: "false", shape: "straight", facing: "west"}, Name: "minecraft:spruce_stairs"}, {Properties: {waterlogged: "false", type: "top"}, Name: "minecraft:spruce_slab"}, {Name: "minecraft:white_wool"}, {Properties: {east: "false", waterlogged: "false", south: "true", north: "false", west: "false"}, Name: "minecraft:spruce_fence"}, {Properties: {half: "top", waterlogged: "fa
@purpleposeidon
purpleposeidon / bnoise.fsh
Created October 7, 2019 09:10
hacked up uint-less https://www.shadertoy.com/view/3sd3Rs by Inigo Quilez
// The MIT License
// Copyright © 2019 Inigo Quilez
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOF
@purpleposeidon
purpleposeidon / stylus (Import)
Last active July 24, 2019 16:52
The brand new Twitter.com: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
@-moz-document domain("twitter.com") {
/* Let's see if we can fit more than 2 tweets on the screen. */
div {
margin: 0px !important;
}
article {
padding-top: 0.2rem !important;
padding-bottom: 0.2rem !important;
}
twitter.com##.Banner--red.Banner--aboveNav.Banner
twitter.com##.clear.TweetImpressionsModule
twitter.com##.enabled.GalleryNav--prev.GalleryNav
twitter.com##.Footer-adsModule.flex-module
twitter.com##.GalleryNav--prev
twitter.com##.GalleryNav--prev.GalleryNav
twitter.com###global-nav-moments > .js-dynamic-tooltip.js-tooltip.js-nav
twitter.com##.has-content.roaming-module.js-wtf-module.wtf-module.module
twitter.com##.js-moments-tab.moments > .js-dynamic-tooltip.js-tooltip.js-nav
[17:46:48] [Server thread/FATAL] [minecraft/MinecraftServer]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_191]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_191]
at net.minecraft.util.Util.func_181617_a(SourceFile:47) [h.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:723) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185) [chd.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
wikia.com###globalNavigation
wikia.com##.module.ChatModule
wikia.com##.module.community-page-entry-point-module
wikia.com###msg_4734 > p
wikia.com##.wds-dropdown.wds-global-navigation__account-menu
wikia.com##.wds-dropdown.wds-global-navigation__wikis-menu > .wds-global-navigation__dropdown-toggle.wds-dropdown__toggle
wikia.com##.wds-global-navigation__link
wikia.com##.wds-global-navigation__logo
wikia.com##.wds-global-navigation__start-a-wiki
wikia.com##.wds-is-games.wds-global-navigation__link
extern crate proc_macro;
use proc_macro::*;
use std::iter::FromIterator;
macro_rules! ts {
($($x:expr,)*) => {{
TokenStream::from_iter(vec![$({
let r: TokenTree = $x.into();
r