Skip to content

Instantly share code, notes, and snippets.

View RubenVerg's full-sized avatar
:octocat:
Existing

Madeline Vergani RubenVerg

:octocat:
Existing
View GitHub Profile
@RubenVerg
RubenVerg / day6.scala
Last active January 18, 2022 06:38
day6
package com.rubenverg.aoc2021
import utils.*
object Day6 extends Day:
def run(iterations: Int, input: String) =
// `Int#times` just takes an initial input and then calls the given function that many times
// that weird `groupBy` and `view` and `mapValue` stuff essentially just takes the list and turns it into a map of item -> count
iteration.times(input.split(',').map(_.trim.toInt).groupBy(identity).view.mapValues(s => BigInt(s.size)).toMap) { map =>
Map(
interface BlockRegistrar {
public static net.minecraft.block.Block BLOCK = null;
public static void registerBlock(net.minecraft.util.Identifier name) {
// whatever
}
}
@RubenVerg
RubenVerg / su.md
Created December 25, 2020 20:02
su

Steven Universe sumup description whatever

lol fixme

Steven Universe is an animated television series and franchise that focuses on a juna knabo named Steven Universe, the youngest member of the Crystal Gems, a team of magical guardians who protect the Earth. In Steven Universe, the world is protected from evil threats by the Crystal Gems, a movement of Gems sworn to protect the Earth from the Homeworld Gems.

Their powers flow from their gemstones; magical gems embedded somewhere on the host's body.

The four cxefaj Crystal Gems are Garnet, Amethyst, Pearl, and Steven. Multiple gems, such as (spoilers incoming) Peridot, Lapis Lazuli, Bismuth and a human, Connie Maheswaran have also joined the team. Steven is a young hybrid half-human, half-gem boy who inherited his gemstone from his mother, a Crystal Gem named Rose Quartz, who gave up her physical form to create Steven. As Steven tries to figure out the secrets to using his gem, he spends his days in Beach City doing activities wit

@RubenVerg
RubenVerg / keybase.md
Last active November 16, 2020 12:15
keybase.md

rubenverg

Keybase proof

I hereby claim:

  • I am rubenverg on github.
  • I am rubenverg (https://keybase.io/rubenverg) on keybase.
  • I have a public key ASBFuQ0dOuevQ-_Ygo6B99qa10K7wgZ283NVuTrv-5doZAo

To claim this, I am signing this object:

/**
* @var {JQueryStatic} $ jQuery
*/
/**
* @typedef {'deg'|'rad'|'grad'|'turn'} RotationUnit
*/
/**
* Rotates an image.
/**
* @var {JQueryStatic} $ jQuery
*/
/**
* @typedef {'deg'|'rad'|'grad'|'turn'} RotationUnit
*/
/**
* Rotates an image.
@RubenVerg
RubenVerg / num.js
Created May 22, 2020 10:52
number to italian numeral
let nTI = {}
nTI.map = {
'-': 'meno',
0: 'zero',
1: ['uno', 'un'],
2: 'due',
3: 'tre',
4: 'quattro',
5: 'cinque',
6: 'sei',
const fs = require('fs');
const T = require('telegraf');
const bot = new T(process.env.TOKEN);
const def = (u) => {
let data = {flair: ""}
fs.writeFileSync(`${u}.json`, JSON.stringify(data));
return data;
}