Skip to content

Instantly share code, notes, and snippets.

View rbj325's full-sized avatar

Rob Jones rbj325

View GitHub Profile
@rbj325
rbj325 / README.md
Last active April 24, 2019 16:04
Flatten an array of arbitrarily nested arrays of integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4]

flatten

Flatten an array of arbitrarily nested arrays of integers into a flat array of integers.

Usage

// Both CommonJS and ES6 import syntaxes are supported
// import flatten from './flatten'
const flatten = require('./flatten')
/// <summary>
/// This method takes in a file path and returns the string with the most repeated characters in the txt file.
/// </summary>
/// <param name="filePath">This is the path to the txt file</param>
/// <returns>Word with the most repeated characters</returns>
private string findWordWithMostRepeatedCharacters(string filePath)
{
var inputStr = getTextFromFile(filePath);
@rbj325
rbj325 / gist:01abc3bcab06bf4d1ee3
Last active August 29, 2015 14:02
Owin via Edge.js server setup
Ubuntu 12.04 x64
https://www.digitalocean.com/community/articles/how-to-add-and-delete-users-on-ubuntu-12-04-and-centos-6
https://www.digitalocean.com/community/articles/how-to-set-up-vsftpd-on-ubuntu-12-04
sudo apt-get unzip
@rbj325
rbj325 / gist:e6b28a04bc43eccb5b62
Last active August 29, 2015 14:02
vNext Ubuntu Server Setup
Installation
http://graemechristie.github.io/graemechristie/blog/2014/05/26/asp-dot-net-vnext-on-osx-and-linux/
http://www.mono-project.com/Compiling_Mono_From_Git
Ubuntu:
apt-get update
apt-get dist-upgrade
apt-get install build-essential git autoconf libtool g++ gettext automake unzip
git clone git://github.com/mono/mono.git