Skip to content

Instantly share code, notes, and snippets.

View felipediogo's full-sized avatar

Felipe F. Diogo felipediogo

  • Porto Alegre - Brazil
View GitHub Profile
@felipediogo
felipediogo / project-ideas01.md
Created January 3, 2021 22:13 — forked from MWins/project-ideas01.md
Back end Projects - list

Project Ideas

Ok. I'm going to list off some ideas for projects. You will have to determine if any particular idea is good enough to include in a portfolio. These aren't creative ideas. They likely already exist. Some are way too advanced while others are simplistic.

I will recommend to post any project you make to github and make a github project page for it. Explain in as much detail as possible how you made it, how it can be improved etc. Document it.

If you pick an advanced idea, setup a development roadmap and follow it. This will show some project management skills.

Another piece of advice for those who are design challenged. Use different front end frameworks and use different themes for those frameworks to provide appealing designs without looking like yet another bootstrap site.

/*
It does a reduce, where it will test if each item is an array,
if it is it will call the function recursively,
it's possible only because of array.concat which will merge arrays together.
or you could use the spread sintax to merge them together IE: [...acc, ...flatten(item)],
but I think this way it's a little more readble.
*/
const flatten = arrays => arrays.reduce((acc, item) => Array.isArray(item) ? acc.concat(flatten(item)) : acc.concat(item), []);
describe('Flatten arrays', () => {
# For a full list of active aliases, run `alias`.
DEFAULT_USER=$USER
# Example aliases
# alias zshconfig="mate ~/.zshrc"
alias docker-build-up='docker-compose build && docker-compose up'
alias docker-fuse-log='while read line; do echo $line | sed -r "s/^.*\|.*(\{.*)$/\1/" | bunyan; done;'
alias docker-rm-containers='docker rm $(docker ps -a -q)'
alias docker-compose-local='docker-compose -f docker-compose-local.yml up -d'
alias docker-delete='docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)'
@felipediogo
felipediogo / trie.js
Created June 28, 2018 17:44
Implementation of trie (data structure) in JS
const input = 'feli';
const input2 = 'fela';
const head = {};
const add = (s, node, index) => {
if (index === s.length) return;
const char = s[index];
if (!!node[char]) {
node[char].size++;
/* Hidden stub code will pass a root argument to the function below. Complete the function to solve the challenge. Hint: you may want to write one or more helper functions.
The Node class is defined as follows:
class Node {
int data;
Node left;
Node right;
}
*/
boolean checkBST(Node root) {
@felipediogo
felipediogo / api-lolesports-com_docs.md
Created July 18, 2017 18:39 — forked from Scub3d/api-lolesports-com_docs.md
lolesports.com unofficial api docs
@felipediogo
felipediogo / js-frontend-resources.md
Created July 17, 2017 17:30 — forked from diegopacheco/js-frontend-resources.md
Frontend / JavaScript Resources