Skip to content

Instantly share code, notes, and snippets.

View lunaisnotaboy's full-sized avatar
🏳️‍⚧️
nya

Luna Nova lunaisnotaboy

🏳️‍⚧️
nya
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lunaisnotaboy on github.
  • I am lunaisnotaboy (https://keybase.io/lunaisnotaboy) on keybase.
  • I have a public key ASBeNYvNfbFqCzPyK7_Exl2bXSRxYTcHZcyjmIFCyOPWQQo

To claim this, I am signing this object:

@lunaisnotaboy
lunaisnotaboy / video2x_on_colab.ipynb
Last active May 9, 2021 23:39
Video2x with YouTube-DL
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lunaisnotaboy
lunaisnotaboy / README.md
Created December 2, 2021 00:56
This is for an issue I am having with the Ruby library Shrine

Shrine NoMethodError Issue

This gist contains all the files relevant to the issue.

@lunaisnotaboy
lunaisnotaboy / keybase.md
Created May 9, 2022 13:28
Keybase proof

Keybase proof

I hereby claim:

  • I am lunaisnotaboy on github.
  • I am lunanova_ (https://keybase.io/lunanova_) on keybase.
  • I have a public key whose fingerprint is 3CC4 1445 5E68 9AF1 214D 63BE C1A2 8C2B AE0A 9718

To claim this, I am signing this object:

@lunaisnotaboy
lunaisnotaboy / identicon.rb
Created July 20, 2022 23:36
A small Ruby class for generating the identicons that GitHub uses. Requires the `color`, `chunky_png`, and `oily_png` gems.
# frozen_string_literal: true
require 'color'
require 'oily_png'
class Identicon
# How big each "pixel" is
PIXEL_SIZE = 70
# How many rows and columns
SPRITE_SIZE = 5
@lunaisnotaboy
lunaisnotaboy / SMBDIS.ASM
Created June 26, 2023 14:55 — forked from dansalvato/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 7 columns, instead of 6 in line 8.
bench,interp (ms),stddev (%),yjit (ms),stddev (%),yjit 1st itr,interp/yjit
activerecord,127.84078124999354,0.934805300921354,81.02627522933899,3.4026790730170258,1.2320605435165182,1.5777694443950372
chunky-png,1369.9999999999363,0.17278787035918172,880.958499999906,0.08923241380380256,1.4547909457322572,1.5551243333256701
erubi-rails,50.18473224041482,23.1323877758438,29.4272374999764,13.032111666581415,0.34748395337130006,1.7053837364263318
hexapdf,4782.021299999997,3.6118924666315926,3472.0972000001893,6.583549966783858,1.0954122857022772,1.377271724996563
liquid-c,127.45546875005687,6.046612358654759,107.56035064931386,1.9517899370899263,0.655077292173778,1.184967025308502
liquid-compile,116.38260563382624,0.5982234999896853,89.65438541667936,0.8369562678385177,0.6595347322157128,1.2981250732234046
liquid-render,291.48344999996425,1.9972926653780183,174.86930952390182,2.4371093430450217,1.086836003091469,1.6668645332537506
mail,251.19575999999142,0.45456257911017295,218.6514827586695,0.5891501730780795,0.
install_gem() {
RBENV_VERSION="$VERSION_NAME" rbenv-exec gem install "$@"
}
install_bundler() {
install_gem bundler -v "< 2"
}
# Clang errors on warnings. Tell it to ignore this one.
export RUBY_CFLAGS="-Wno-error=implicit-function-declaration"