Skip to content

Instantly share code, notes, and snippets.

View ManudeQuevedo's full-sized avatar
💻
Never stop learning!

Manuel Matus ManudeQuevedo

💻
Never stop learning!
View GitHub Profile
@ManudeQuevedo
ManudeQuevedo / bankist.js
Created December 3, 2021 19:45
Intended for getting help
'use strict';
/////////////////////////////////////////////////
/////////////////////////////////////////////////
// BANKIST APP
// Data
const account1 = {
owner: 'Jonas Schmedtmann',
movements: [200, 455.23, -306.5, 25000, -642.21, -133.9, 79.97, 1300],
import React from 'react';
// This is where text needs to be translated
export default props => {
return (
<React.Fragment>
<div className="base-grid">
<div className="content-basic">
<div className="grid-2">
<div>
$(document).ready(() => {
addResizeListeners();
setSidenavListeners();
setUserDropdownListener();
renderChart();
setMenuClickListener();
setSidenavCloseListener();
});
// Set constants and grab needed elements
@ManudeQuevedo
ManudeQuevedo / modern_js.md
Created August 19, 2018 05:40 — forked from gaearon/modern_js.md
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@ManudeQuevedo
ManudeQuevedo / FizzBuzz.js
Created June 26, 2018 16:29 — forked from jaysonrowe/FizzBuzz.js
FizzBuzz JavaScript solution
for (var i=1; i <= 20; i++)
{
if (i % 15 == 0)
console.log("FizzBuzz");
else if (i % 3 == 0)
console.log("Fizz");
else if (i % 5 == 0)
console.log("Buzz");
else
console.log(i);
@ManudeQuevedo
ManudeQuevedo / _webserver.md
Created June 1, 2018 02:30 — forked from jgravois/_webserver.md
a simple guide for getting a local web server set up

Do I have a web server running?


having a web server turned on doesn't necessarily mean you are serving pages on the world wide web. its what allows you to load your own static files (.html, .js etc.) in a browser via http://.

if you're not sure whether or not you have a web server running, no problem! its easy to confirm.

what happens when you visit http://localhost/?

@ManudeQuevedo
ManudeQuevedo / odd_&_even_numbers.js
Created April 30, 2018 04:53
Let’s write a loop that will iterate from 0 to 20. For each iteration, it will check if the current number is even or odd
for(i = 0; i <= 20; i++){
if (i === 0) {
console.log(i + " it´s even");
} else if (i % 2 === 0) {
console.log(i + " it´s even");
} else {
console.log(i + " it´s odd");
}
}