Skip to content

Instantly share code, notes, and snippets.

View RichardVasquez's full-sized avatar
🐿️
Squirrel!

Richard Vasquez RichardVasquez

🐿️
Squirrel!
View GitHub Profile
@RichardVasquez
RichardVasquez / OverOil001.cs
Last active December 24, 2015 09:49
WAY overdoing Euler Project Problem 1. It was fun, though.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace OverOiled01
{
/// <summary>
/// WAY overdoing Euler Project Problem 1.
///
// ==UserScript==
// @name Remove medium on Hacker News
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://news.ycombinator.com/*
// @grant none
// ==/UserScript==
@RichardVasquez
RichardVasquez / nukeMediumLobsters.js
Last active July 31, 2019 21:23
Nuke medium links on lobste.rs
// ==UserScript==
// @name Nuke Medium on Lobste.rs
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Richard Vasquez
// @match https://lobste.rs/*
// @grant none
// ==/UserScript==
@RichardVasquez
RichardVasquez / Permutation.cs
Last active October 10, 2019 23:13
A simple piece of code based off of some C code at http://www.bearcave.com/random_hacks/permute.html , translated into C#, and then sped up a bit (400% or so on my system) with some base code at https://codeblog.jonskeet.uk/2013/06/22/array-covariance-not-just-ugly-but-slow-too/ provided by Jon Skeet.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace Permute
{
class Program
{
private const int Iterations = 1000;
// ==UserScript==
// @name Nuke medium everywhere!
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Yes, for the love of God!
// @author Richard Vasquez
// @match *://*/*
// @grant none
// ==/UserScript==
@RichardVasquez
RichardVasquez / aoc2020-22.cs
Created December 22, 2020 06:34
Day 22 Advent of Code 2020
using System;
using System.Collections.Generic;
using System.Linq;
using AdventOfCode.Library;
namespace AdventOfCode
{
// Day 22
internal static class Program
{
@RichardVasquez
RichardVasquez / aoc2020-09.cs
Created December 9, 2020 05:18
Day 9 Advent of Code 2020
using System;
using System.Collections.Generic;
using System.Linq;
using AdventOfCode.Library;
namespace AdventOfCode
{
// Day 9
internal static class Program
{
@RichardVasquez
RichardVasquez / aoc2020-08.cs
Created December 8, 2020 17:16
Day 8 Advent of Code 2020
using System.Collections.Generic;
using System.Linq;
using AdventOfCode.Library;
using AdventOfCode.Library.Interpreter;
namespace AdventOfCode
{
// Day 8
internal static class Program
{
@RichardVasquez
RichardVasquez / Bag.cs
Last active December 1, 2021 20:54
Day 7 Advent of Code 2020
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace AdventOfCode
{
[DebuggerDisplay("Name: {Name} Parents: {Parents}")]
public class Bag
{
public readonly string Name;
@RichardVasquez
RichardVasquez / CustomsForm.cs
Created December 6, 2020 06:07
Day 6 Advent of Code - 2020
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace AdventOfCode
{
[DebuggerDisplay("People: {People} - Distinct: {DistinctQuestions} - AllMatch: {AllMatchedQuestions}")]
public class CustomsForm
{