Skip to content

Instantly share code, notes, and snippets.

View RichardVasquez's full-sized avatar
🐿️

Richard Vasquez RichardVasquez

🐿️
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.
///
@RichardVasquez
RichardVasquez / permute.cpp
Created December 1, 2013 15:59
This was my submission for the Dice.com coding contest initially posted at http://news.dice.com/2013/10/02/coding-challenge-046/ I came in 7th. Boo.
// Code submission for coding challenge "Prove Your Factorial Fluency"
// http://news.dice.com/2013/10/02/coding-challenge-046/
//
// Author: Richard R. Vasquez, II
// Website: http://tinymu.gs
//
// Notes: This was run in Release - Win32 - Visual Studio 2012
//
// Personal averages: ~0.5 seconds : 0.000000043 seconds to find correct solution.
// ~1.0 second : 0.000000034 seconds to find correct solution.
// ==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;