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
const words = ["lula", "bolsonaro"] | |
let peaceMaker = function() { | |
suggestions = document.getElementsByTagName('ytd-rich-item-renderer'); | |
for (let i = 0; i < suggestions.length; i++) { | |
substrings = suggestions[i].getElementsByTagName('yt-formatted-string'); | |
for (let ii = 0; ii < substrings.length; ii++) { | |
text = substrings[ii].textContent; | |
if(words.some(function(v) { return text.toLowerCase().indexOf(v) >= 0; })){ | |
suggestions[i].remove(); |
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
[test]: Update test/* files | |
[dist]: Changes to submodules, version bumps, updates to package.json | |
[minor]: Small changes | |
[doc]: Updates to documentation | |
[fix]: Bug fixes | |
[bin]: Update binary scripts associated with the project | |
[refactor]: Refactor of existing code | |
[nit]: Small code review changes mainly around style or syntax | |
[feat]: New features |
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
package main | |
import ( | |
"fmt" | |
"github.com/gorilla/websocket" | |
"net/http" | |
) | |
var upgrader = websocket.Upgrader{ | |
ReadBufferSize: 1024, |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func main() { | |
http.HandleFunc("/", handler) // Aqui declaramos o path e o Handler | |
http.ListenAndServe(":3000", nil) // Aqui ficará a porta em que nosso Web server vai responder |
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 upgrader = websocket.Upgrader{ | |
ReadBufferSize: 1024, | |
WriteBufferSize: 1024, | |
CheckOrigin: func(r *http.Request) bool { return true }, | |
} |
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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Println("Hello!") | |
} |
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
fun main(args: Array<String>) { | |
var sum = 0 | |
val myList = listof(1,3,6,7) | |
myList.forEach{ sum += it } | |
println(sum) // imprime 17 | |
} |
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
fun main(args: Array<String>) { | |
val myList = listof(1,3,6,7) | |
// x deixa de ser declarado e vira somente "it" | |
val greaterThan5 = myList.count{ it > 5 } | |
} |
NewerOlder