Skip to content

Instantly share code, notes, and snippets.

View RichardVasquez's full-sized avatar
🐿️

Richard Vasquez RichardVasquez

🐿️
View GitHub Profile
@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;
@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.
@RichardVasquez
RichardVasquez / nukeMediumDevurls.js
Created July 30, 2019 17:26
Basically, I've gotten tired of medium.com, and I want to avoid temptation, so this TamperMonkey script removes the Medium.com block from DevURLs.com
// ==UserScript==
// @name Nuke Medium
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Just avoid temptation and don't feed medium.com links
// @author Richard Vasquez
// @match https://devurls.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==
// ==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==
// ==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-01.cs
Created December 1, 2020 17:12
Day 1 Advent of Code 2020
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using AdventOfCode.Library;
namespace AdventOfCode
{
// Day 01
internal static class Program
@RichardVasquez
RichardVasquez / aoc2020-02.cs
Created December 2, 2020 05:29
Day 2 Advent of Code 2020
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using AdventOfCode.Library;
namespace AdventOfCode
{
internal static class Program
{
@RichardVasquez
RichardVasquez / aoc2020-03.cs
Created December 3, 2020 05:20
Day 3 Advent of Code 2020
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using AdventOfCode.Library;
namespace AdventOfCode
{
internal static class Program
{