Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Willy Aguirre marti1125

🏠
Working from home
View GitHub Profile
View xml.go
package main
import "fmt"
import "encoding/xml"
type MyRespEnvelope struct {
XMLName xml.Name
Body Body
}
View array.go
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
)
View review.go
package main
import (
"bufio"
"fmt"
"strconv"
"os"
)
func main() {
//Enter your code here. Read input from STDIN. Print output to STDOUT
@marti1125
marti1125 / conditionals.go
Created Mar 22, 2020
hacker rank conditional statements
View conditionals.go
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
)
@marti1125
marti1125 / operator.go
Created Mar 22, 2020
hack rank operators
View operator.go
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
"math"
@marti1125
marti1125 / datatype.go
Last active Mar 22, 2020
Hacker Rank Data Type
View datatype.go
package main
import (
"fmt"
"os"
"bufio"
"strconv"
)
@marti1125
marti1125 / main.go
Created Dec 3, 2019
Advent of Code 2019
View main.go
// Day 1: The Tyranny of the Rocket Equation
package main
import (
"fmt"
)
func FuelRequirements(value int) int {
return (value / 3) - 2
View gist:c45cb5dd71c3a92c2f069489a41b5a46
ip.addr == 127.0.0.1 and tcp.port == 3306 and mysql
View gist:b8c289babffa996e77c974605f4f7421
query/sexp/parser.go:18:2: cannot find package "github.com/badgerodon/peg" in any of:
/usr/local/go/src/github.com/badgerodon/peg (from $GOROOT)
/home/willy.aguirre/go/src/github.com/badgerodon/peg (from $GOPATH)
query/graphql/http.go:8:2: cannot find package "github.com/dennwc/graphql/gqlerrors" in any of:
/usr/local/go/src/github.com/dennwc/graphql/gqlerrors (from $GOROOT)
/home/willy.aguirre/go/src/github.com/dennwc/graphql/gqlerrors (from $GOPATH)
query/graphql/graphql.go:13:2: cannot find package "github.com/dennwc/graphql/language/ast" in any of:
/usr/local/go/src/github.com/dennwc/graphql/language/ast (from $GOROOT)
/home/willy.aguirre/go/src/github.com/dennwc/graphql/language/ast (from $GOPATH)
query/graphql/graphql.go:14:2: cannot find package "github.com/dennwc/graphql/language/lexer" in any of:
@marti1125
marti1125 / week1.go
Last active Aug 21, 2019
[golang] examples
View week1.go
package main
import (
"math"
"fmt"
)
func main() {
maxInt8 := math.MaxInt8