Skip to content

Instantly share code, notes, and snippets.

View marktellez's full-sized avatar

Mark Tellez marktellez

View GitHub Profile
@marktellez
marktellez / script.js
Created September 14, 2022 18:09
parity pricing closure using javascript
function getNextPrice(start=100, step=25) {
let currentPrice = start
return function() {
const newPrice = currentPrice
currentPrice = newPrice + step
return newPrice
}
}
@marktellez
marktellez / timestamps.md
Last active October 10, 2020 03:32
Why I think the way I do (video timestamps to learn from)
@marktellez
marktellez / javascript.json
Last active July 8, 2022 08:11
Devmentor Live ReactJS VS Code User Snippets
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
import fetch from "isomorphic-fetch";
require("es6-promises");
import AbortController from "abort-controller";
function apiFetch(signal, path, method, data) {
const options = {};
const headers = {
"Content-Type": "application/json",
Accepts: "application/json",
};
@marktellez
marktellez / questions-for-applicants.md
Last active November 26, 2019 20:03
Loan Qualification Questions
  • Full name, address, email, phone number
  • Names and and phone numbers of 3 family references
  • Names and and phone numbers of and loan references (previous lenders)
  • How much does the applicant want to borrow
  • How much money did the applicant earn in the last 3, 6, 12 months?
  • How much does the applicant currently pay in debts each month (car, house, loans, etc)?
function toSnakeCase(s) {
return s.split("_").map((s, i) => i > 0 ? s.slice(0,1).toUpperCase() + s.slice(1, s.length) : s).join("")
}
Itzel
Isabela Yañez
Ross
Lili
Tania Gonzalez
Isabela Gonzalez
const tests = [
["ABAZDC", "BACBAD", "ABAD"],
["AGGTAB", "GXTXAYB", "GTAB"],
["aaa", "aa", "aa"],
["", "", ""],
["ABBA", "ABCABA", "ABBA"]
]
function longestSequence(s1, s2) {
const seq = []
https://www.instagram.com/p/Bx5MDOLl8Hy/
@marktellez
marktellez / 2018-07-17.md
Last active July 18, 2018 04:18
Dia 1 - July 17 2018

Instrucciones de configuración

Escriba estos comandos en su terminal

  1. cd ~/projects/dayan/
  2. git clone https://github.com/marktellez/dayan-homework.git homework
  3. cd homework/2018-07-17

JavaScript Arrays