Skip to content

Instantly share code, notes, and snippets.

View rubenribeiro's full-sized avatar

__ruben_ribeiro rubenribeiro

View GitHub Profile
// Bonfire: DNA Pairing
// Author: @dannycoder
// Challenge: http://www.freecodecamp.com/challenges/bonfire-dna-pairing#
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function pair(str) {
var returnArr = [];
for(var i = 0; i < str.length; i++){
switch(str.charAt(i)){
// Bonfire: Missing letters
// Author: @dannycoder
// Challenge: http://www.freecodecamp.com/challenges/bonfire-missing-letters#
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function fearNotLetter(str) {
//detect if the letter is missing
if(str.length === (str.charCodeAt(str.length - 1) - str.charCodeAt(0) + 1 )){
// Bonfire: Sorted Union
// Author: @dannycoder
// Challenge: http://www.freecodecamp.com/challenges/bonfire-sorted-union#
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function unite(arr1, arr2, arr3) {
var newArray = [];
for(var i = 0; i < arguments.length; i++) {
for (var j = 0; j < arguments[i].length; j++)
// Bonfire: Drop it
// Author: @dannycoder
// Challenge: http://www.freecodecamp.com/challenges/bonfire-drop-it
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function drop(arr, func) {
// Drop them elements.
while(!func(arr[0])){
arr.shift();
}
@rubenribeiro
rubenribeiro / webdev_online_resources.md
Created January 14, 2019 04:21 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@rubenribeiro
rubenribeiro / README-Template.md
Created January 3, 2020 20:59 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@rubenribeiro
rubenribeiro / ansible-summary.md
Created January 10, 2020 22:51 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of