Skip to content

Instantly share code, notes, and snippets.

View rjbernaldo's full-sized avatar

Rj Bernaldo rjbernaldo

  • Melbourne, Australia
View GitHub Profile
We can't make this file beautiful and searchable because it's too large.
address,counts
0x6977e753e022f65ebeb170d8267b2ea54a431523,7
0x549c0421c69be943a2a60e76b19b4a801682cbd3,7
0xee2826453a4fd5afeb7ceffeef3ffa2320081268,6
0x93f5af632ce523286e033f0510e9b3c9710f4489,6
0xc7bfd896cc6a8bf1d09486dd08f590691b20c2ff,6
0x83aba53382af0754e2599312f02dfc6774489f82,6
0x047b3e73043bbf7421b78893110fc30b7db6b126,6
0x87616fa850c87a78f307878f32d808dad8f4d401,6
0x316f99537b4bade5eea51073f1b7c38dfbf69a70,6
/*
* Solution 1: Cache is only preserved for each computation
*/
class Solution1 extends React.Component {
constructor() {
super();
this.state = { fib: 'NA' };
}
let array = [[1,2,[3]],4]
const flatten = (arr) => {
var flatArray = []
arr.forEach((i) => {
if (Array.isArray(i)) {
flatArray = flatArray.concat(flatten(i))
} else {
flatArray.push(i)
@rjbernaldo
rjbernaldo / gh-pages-deploy.md
Created March 16, 2016 06:38 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

// User stories for Group Project.
// 1. I want a program that can take any number of integers and add them together
// 2. I want a program that can take any number of integers and calculate their mean (average).
// 3. I want a program that can take any number of integers and find their median number.
// HINT: The name of these "programs" should be: sum, mean, median.