Skip to content

Instantly share code, notes, and snippets.

View steven-work-space's full-sized avatar
😀

Wilhelmin steven-work-space

😀
  • Tchernobyl
View GitHub Profile
@steven-work-space
steven-work-space / webcrawleramazon.go
Created February 20, 2018 11:21
Very simple crawler in Go to get the price of items on amazon France.
package main
import (
"fmt"
"io/ioutil"
"net/http"
"regexp"
)
func main() {
@steven-work-space
steven-work-space / getRandomColorHex.js
Created October 10, 2017 22:44
Getting a random color in Hex format
function getRandomColor() {
myColors = new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F");
randomColor = "#";
for(let i = 0; i < 6; i++) {
randomColor += myColors[Math.floor(Math.random() * myColors.length)];
}
return randomColor;
}