Skip to content

Instantly share code, notes, and snippets.

@steph9009
steph9009 / exercise-web-crawler.go
Last active October 29, 2020 20:11
A Tour of Go Exercise: Web Crawler https://tour.golang.org/concurrency/10
/*
* In this exercise you'll use Go's concurrency features to parallelize a web crawler.
*
* Modify the Crawl function to fetch URLs in parallel without fetching the same URL twice.
*
* Hint: you can keep a cache of the URLs that have been fetched on a map,
* but maps alone are not safe for concurrent use!
*/
package main
package main
import (
"fmt"
"golang.org/x/tour/tree"
)
// Walk walks the tree t sending all values
// from the tree to the channel ch.
package main
import (
"image"
"image/color"
"golang.org/x/tour/pic"
)
type Image struct{}
package main
import "fmt"
type IPAddr [4]byte
// TODO: Add a "String() string" method to IPAddr.
func (i IPAddr) String() string {
return fmt.Sprintf("%d.%d.%d.%d", i[0], i[1], i[2], i[3])
}
package main
import (
//"fmt"
"golang.org/x/tour/pic"
)
func Pic(dx, dy int) [][]uint8 {
//fmt.Println(dx, dy)
package main
import "fmt"
// fibonacci is a function that returns
// a function that returns an int.
func fibonacci() func() int {
a := 0
b := 1
c := 0
@steph9009
steph9009 / README.MD
Created May 18, 2018 08:41
DeezLoader Offical Page

DeezLoader Reborn V3.1.1 final

DeezLoader Reborn is here to replace the old DeezLoader V2.3.1.
With this software you can download high-qualiy music and enjoy.

DeezLoader Reborn has been discontinued due to DMCA

I highly recommend you to use SMLoadr

Pastebin link: https://pastebin.com/vJmgv78v