This file contains hidden or 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
| let obj1 = { | |
| page: 1, | |
| per_page: 3, | |
| total_records: 6, | |
| data: [ | |
| {_id: "01"}, | |
| {_id: "02"}, | |
| {_id: "03"}, | |
| ], | |
| }; |
This file contains hidden or 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
| //does not work with colors containing alpha | |
| @function encodecolor($string) { | |
| @if type-of($string) == 'color' { | |
| $hex: str-slice(ie-hex-str($string), 4); | |
| $string:unquote("#{$hex}"); | |
| } | |
| $string: '%23' + $string; | |
| @return $string; | |
| } |
This file contains hidden or 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
| import java.util.Arrays; | |
| public class CadastroAlunos { | |
| public static void main(String args[]) { | |
| String[] Alunos = new String[25]; | |
| for (int i = 0; i < 25; i++) { | |
| Alunos[i] = "Aluno " + (i + 1); | |
| } | |
| String[] MaisAlunos = Arrays.copyOf(Alunos, 30); | |
| for (int i = 25; i < 30; i++) { |
This file contains hidden or 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
| import java.util.*; | |
| import java.util.LinkedList; | |
| import java.util.Queue; | |
| public class atv3 { | |
| public static void main(String[] args) { | |
| // Declaração de variáveis do projeto | |
| int i; |
This file contains hidden or 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 findAnimal(list, animal) { | |
| return list.indexOf(animal) !== -1; | |
| } | |
| var animals = ["Dog", "Cat", "Bear"]; | |
| findAnimal(animals, "Dog") |
This file contains hidden or 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
| let Layla = 'dog' | |
| let Ted = 'bear' | |
| isDog = (animal) => animal === 'dog' | |
| console.log(isDog(Layla)) | |
| console.log(isDog(Ted)) |
This file contains hidden or 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
| h${heading $}*6 |
This file contains hidden or 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 fruits = ["apple", "strawberry", "orange"] | |
| console.log(fruits) | |
| var [ ,morango, laranja] = fruits | |
| console.log(morango) | |
| console.log(laranja) |
This file contains hidden or 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
| //Scroll | |
| $('a[href^="#"]').on('click', function (event) { | |
| var target = $(this.getAttribute('href')); | |
| if (target.length) { | |
| event.preventDefault(); | |
| $('html, body').stop().animate({ | |
| scrollTop: target.offset().top | |
| }, 1000); | |
| } | |
| }); |
This file contains hidden or 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
| Proxima-Nova "parent directory" otf OR ttf OR fonts -html -htm -download -links |