Skip to content

Instantly share code, notes, and snippets.

View marti1125's full-sized avatar
🐍

Willy Aguirre marti1125

🐍
View GitHub Profile
@marti1125
marti1125 / arduino_project.pde
Created November 2, 2024 16:52
arduino project
#include <LiquidCrystal_I2C.h>
#include <Servo.h>
LiquidCrystal_I2C lcd(0x27,16,2);
Servo servo_7;
int MINIMO=20; //Distancia minima en cm
int TRIGGER1=11;
@marti1125
marti1125 / xml.go
Created June 15, 2020 03:22
xml parse
package main
import "fmt"
import "encoding/xml"
type MyRespEnvelope struct {
XMLName xml.Name
Body Body
}
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
)
@marti1125
marti1125 / review.go
Created April 11, 2020 19:51
Let's Review
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 March 22, 2020 17:46
hacker rank conditional statements
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
)
@marti1125
marti1125 / operator.go
Created March 22, 2020 17:26
hack rank operators
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
"math"
@marti1125
marti1125 / datatype.go
Last active March 22, 2020 01:31
Hacker Rank Data Type
package main
import (
"fmt"
"os"
"bufio"
"strconv"
)
@marti1125
marti1125 / main.go
Created December 3, 2019 17:40
Advent of Code 2019
// Day 1: The Tyranny of the Rocket Equation
package main
import (
"fmt"
)
func FuelRequirements(value int) int {
return (value / 3) - 2
@marti1125
marti1125 / gist:c45cb5dd71c3a92c2f069489a41b5a46
Created September 18, 2019 02:17
wireshark mysql protocol
ip.addr == 127.0.0.1 and tcp.port == 3306 and mysql
@marti1125
marti1125 / gist:b8c289babffa996e77c974605f4f7421
Created September 18, 2019 01:37
go build ./cmd/cayley
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: