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
package main | |
import ( | |
bz2 "compress/bzip2" | |
"encoding/xml" | |
"fmt" | |
"github.com/schollz/progressbar/v3" | |
"golang.org/x/net/html" | |
"io/fs" | |
"log" |
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
#!/bin/bash | |
golang_version="1.16.3" | |
golang_link="https://dl.google.com/go/go$golang_version.linux-amd64.tar.gz" | |
root_folder="/opt/GOLANG" # Set the tree variable needed for build the enviroinment | |
go_source="$root_folder/go" | |
go_projects="$root_folder/go_projects" | |
# Check if this script was alredy run | |
if [ -d "$root_folder" ] || [ -d "$go_source" ] || [ -d "$go_projects" ]; then | |
### Take action if $DIR exists ### |
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
package main | |
import ( | |
"errors" | |
"fmt" | |
"log" | |
"math" | |
"strings" | |
) |
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
package org.example; | |
import com.amazonaws.services.kinesis.AmazonKinesis; | |
import com.amazonaws.services.kinesis.AmazonKinesisClientBuilder; | |
import com.amazonaws.services.kinesis.model.*; | |
import java.nio.charset.StandardCharsets; | |
import java.util.List; | |
/** |
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
package main | |
import ( | |
"log" | |
"os" | |
"strings" | |
) | |
// JoinStrings use a strings.Builder for concatenate the input string array. | |
// It concatenate the strings among the delimiter in input |
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 ( | |
"log" | |
"math" | |
) | |
// Copied from https://www.geeksforgeeks.org/find-largest-prime-factor-number/ | |
func CalculateMaxPrimeFactor(n int64) int64 { | |
var maxPrime int64 = -1 | |
var i int64 |
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
package main | |
import ( | |
"log" | |
"strconv" | |
) | |
func main() { | |
m1 := generateTestMatrix1() | |
m2 := generateTestMatrix2() |
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
package request | |
import ( | |
"bytes" | |
"encoding/json" | |
"go.uber.org/zap" | |
"io/ioutil" | |
"net/http" | |
"strings" | |
) |