/^[\w+.]+@\w.\w{2,}(?:.\w{2})?$/.test( email )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function translatePigLatin(str) { | |
var prefix = ''; | |
str.split('').some(function(char) { | |
if (char.isVowel()) | |
return true; | |
else | |
prefix += char; | |
}); | |
return str.substr(prefix.length, str.length) + (prefix || 'w') + 'ay'; | |
} |
http://gistapis.etufor.ce.gov.br:8081/api/itinerario/ + idLinha
http://gistapis.etufor.ce.gov.br:8081/api/linhas/
http://gistapis.etufor.ce.gov.br:8081/api/horarios/ + idLinha + ?data= + data // data: YYYYMMDD
http://gistapis.etufor.ce.gov.br:8081/api/logradouros/
http://gistapis.etufor.ce.gov.br:8081/api/LinhasDologradouro/ + idLogradouro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.freecodecamp.org/challenges/smallest-common-multiple | |
function smallestCommons(arr) { | |
var max = Math.max.apply(this, arr), | |
min = Math.min.apply(this, arr), | |
multiple = max, | |
numbers = []; | |
for(var count = min; count <= max; count++) { | |
numbers.push(count); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function binaryAgent(str) { | |
return String.fromCharCode.apply(this, str.split(' ').map(binaryToString)); | |
} | |
function binaryToString(binary) { | |
return binary.split('').reverse().reduce(function(acc, item, index) { | |
return acc + Math.pow(2, index) * item; | |
}, 0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp') | |
var sass = require('gulp-sass'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var purify = require('gulp-purifycss'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var browserSync = require('browser-sync').create(); | |
gulp.task('sass', function () { | |
return gulp.src('./assets/sass/style.scss') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="modal fade" tabindex="-1" role="dialog" id="maintenance-popup"> | |
<div class="card-popup"> | |
<header class="card-popup__header"> | |
<b class="card-popup__header__title">Aviso</b> | |
<button type="button" data-toggle="modal" data-target="#maintenance-popup"> | |
<i class="fas fa-times"></i> | |
</button> | |
</header> | |
<section class="card-popup__section"> | |
<h3 class="card-popup__section__heading"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --location --request POST 'https://sociofortaleza.com.br/checkin/save' \ | |
--header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \ | |
--header 'Accept-Language: pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7' \ | |
--header 'Cache-Control: max-age=0' \ | |
--header 'Connection: keep-alive' \ | |
--header 'Content-Type: application/x-www-form-urlencoded' \ | |
--header 'Cookie: _gcl_au=1.1.1727900363.1659558991; _canvas_session=xt4cc6EYV21pnuuLhSgqmokm51vmomdeFfSlO8DqHTSWI%2BClJpU3rt3ccwYv0YgqOW6wwUG9GQY7Wzhdh5CaNhDK2%2FZWa6zi93hEy5GeoTDuusYnVDTozf0B5OkHjp4ayMHIatE4r8f7sATzcNtUFhYkBZd4wt2%2FVyiTSNKxpIfn04vDv8O8GCcOBqeIdJIWtZfM2gIfsw0glKFpARSTCyeYu5HL3BiVBvZ9R5pJbQEZh50OsbB2WAEtGJXA1U%2Fxmnv%2FwuoOvQJ9X7PwT4e07Yl6BpkEkq3d1t0q402ms7M%3D--BkXPV8kWlxUW%2BA%2F8--pZWRhPfZlV0hU9mgiZq5Fw%3D%3D' \ | |
--header 'DNT: 1' \ | |
--header 'Origin: https://sociofortaleza.com.br' \ | |
--header 'Referer: https://sociofortaleza.com.br/checkin/new?jogo_id=285&pessoa_ |