Skip to content

Instantly share code, notes, and snippets.

Rishaan Gupta nofishleft

Block or report user

Report or block nofishleft

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nofishleft / roll.js
Created Jul 4, 2019
DND dice roll summary
View roll.js
let input = "1d6 + 2d8 + 5";
//let rollEXP = /[^ ,.+]+/gi;
const rollEXP = /(?:[0-9]*d[0-9]+)|(?:[0-9]+)/gi;
let segments = input.match(rollEXP);
let max = new Array(segments.length);
let min = new Array(segments.length);
let avg = new Array(segments.length);
nofishleft / Find4thPoint.cs
Created May 13, 2019
Finds the 4th point in a rectangle, given three known points
View Find4thPoint.cs
using UnityEngine;
public class Find4thPoint {
public Vector3 Find4th(Vector3 a, Vector3 b, Vector3 c) {
Vector3 point, cornerA, cornerB;
Vector3[] points = new Vector3[] {a, b, c};
float angleDelta = 180;
nofishleft / mines.js
Last active Mar 1, 2019
Node module to add minesweeper to any discord bot
View mines.js
//Example Usage:
const mines = require('./mines.js');
let msg = mines(14,14,20,'X',true);
//X - Width
//Y - Height
You can’t perform that action at this time.