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
| .l-card { | |
| width: 290px; | |
| } | |
| .card { | |
| overflow: hidden; | |
| border-radius: 5px; | |
| border: 1px solid #d4d4d5; | |
| } |
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
| .l-card { | |
| width: 290px; | |
| } | |
| .card { | |
| overflow: hidden; | |
| border-radius: 5px; | |
| border: 1px solid #d4d4d5; | |
| } |
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
| const regExp = /\[audiouol][0-9]{4,}\[\/audiouol\]/g; | |
| let string = '<p><img src="http://imagem.band.com.br/novahome/17b44db0-8a3f-40c1-8d7d-9931c8a213ff.jpg" />[audiouol]234234[/audiouol]</p> [audiouol]9999999999999999999[/audiouol]<p><img src="http://adm.band.com.br/bd_images/files/real/50/f_16350.jpg" /></p>[audiouol]234234[/audiouol]<p>Lorem impsum teste aqui</p>'; | |
| /* | |
| * output: ["[audiouol]234234[/audiouol]", "[audiouol]9999999999999999999[/audiouol]", "[audiouol]234234[/audiouol]"] | |
| */ | |
| const resultRegExp = string.match(regExp) | |
| resultRegExp.map(item => { |
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
| const regExp = /\[audiouol][0-9]{4,}\[\/audiouol\]/g; | |
| let string = '<p><img src="http://imagem.band.com.br/novahome/17b44db0-8a3f-40c1-8d7d-9931c8a213ff.jpg" />[audiouol]234234[/audiouol]</p> [audiouol]9999999999999999999[/audiouol]<p><img src="http://adm.band.com.br/bd_images/files/real/50/f_16350.jpg" /></p>[audiouol]234234[/audiouol]<p>Lorem impsum teste aqui</p>'; | |
| /* | |
| * output: ["[audiouol]234234[/audiouol]", "[audiouol]9999999999999999999[/audiouol]", "[audiouol]234234[/audiouol]"] | |
| */ | |
| const resultRegExp = string.match(regExp) | |
| resultRegExp.map(item => { |
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
| /** | |
| Problem: | |
| You have a javascript array that likely has some duplicate values and you would like a count of those values. | |
| Solution: | |
| Try this schnippet out. | |
| */ |
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
| /** | |
| * CountDown | |
| */ | |
| const msDateCountDown = 1525303846754; //Aqui vc pega o milesegundo atual usando new Date().getTime() | |
| let dateCountDown = new Date(msDateCountDown); | |
| dateCountDown.setMinutes(dateCountDown.getMinutes() + 8); | |
| dateCountDown = dateCountDown.getTime(); | |
| let intervalDate; | |
| const formatSeconds = (seconds) => { |
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
| /* | |
| Grid Basic | |
| Platform: Sass (.scss) | |
| Original repository: | |
| Author: | |
| Paulo Tosi (paulotosi.com.br) | |
| Version: 0.1.0 | |
| * / | |
| /*************************************************************************************************/ |
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
| <audio id="streaming" controls="" autoplay="false"> | |
| <source src="http://afiliadamix2.crossradio.com.br:9008/;" type="audio/mp4; codecs="mp4a.40.5""> | |
| <source src="http://afiliadamix2.crossradio.com.br:9008/;" type="audio/aacp"> | |
| <source src="http://afiliadamix2.crossradio.com.br:9008/;" type="audio/mpeg"> | |
| <source src="http://afiliadamix2.crossradio.com.br:9008/;" type="audio/mp3"> | |
| Your browser does not support the audio element. | |
| </audio> |
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
| const times = [{id:'time a'},{id:'time b'},{id:' time c'},{id:'time d'},{id:'time e'}]; | |
| const groups = (arr) => { | |
| const output = []; | |
| for(i = 0; i < arr.length; i++){ | |
| for(j = 1; j < arr.length; j++){ | |
| if(arr[i].id == arr[j].id){ | |
| continue; |
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
| web: node index.js |