Skip to content

Instantly share code, notes, and snippets.

View ArthurOliverB's full-sized avatar
🏠
Working from home

Arthur de Oliveira Bandeira ArthurOliverB

🏠
Working from home
  • Cod3r
  • COD3R CURSOS
View GitHub Profile
function Animal(nome, filo) {
this.nome = nome
this.filo = filo
this.apresentar = function() {
console.log(`Nome: ${this.nome}\nFilo: ${this.filo}`);
}
}
let cachorro = new Animal("Cachorro", "Cordados");
console.log(typeof Animal); // Resultado: function
console.log(typeof cachorro); // Resultado: object
class Animal {
constructor(nome, filo) {
this.nome = nome
this.filo = filo
}
apresentar() {
console.log(`Nome: ${this.nome}\nFilo: ${this.filo}`);
}
}
const array = ['H', 'e', 'l', 'l','o']
console.log(typeof Array); // Resultado: function
console.log(typeof array); // Resultado: object
def PI():
return "3.1415"

Regex Cheatsheet

Hello, everyone! In this markdown file, we'll be covering the usage of regular expressions in a few other languages by showing you each language specific syntax, and some Useful Regex Supporting API methods. Feel free to go through the whole file or use the navigation index below.

  1. JavaScript
  2. Go
  3. Java
  4. Python
  5. Ruby
  6. Additional Resources
const fs = require('fs')
const path = require('path')
function parseCsvLinesToArray(file) {
const matchLineBreak = /\r?\n/
return file.toString().trim().split(matchLineBreak)
}
function composeMatchingCsvColumnRegex(csvColumns) {
const csvColumnToNamedCapturingGroup = (currentColumn, currentIndex, array) => {