package main
import (
"bufio"
"flag"
"fmt"
"io"
This file contains 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
ln -n -s /mnt/c/Users/mannh/go /home/mannh/ |
This file contains 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 ( | |
"github.com/auth0/go-jwt-middleware" | |
"github.com/dgrijalva/jwt-go" | |
"gopkg.in/gin-gonic/gin.v1" | |
) | |
func main() { | |
startServer() |
This file contains 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
// given package name "del" | |
// has a function named "f1" | |
go build -gcflags "-m -m" | |
// profile using only Test... (NOT POSSIBLE) | |
// benchmark results | |
go test -run=xx -bench=. -benchmem |
This file contains 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
lets go! |
This file contains 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
exports.handler = async (event) => { | |
console.log(event) | |
let response = { | |
statusCode: 200, | |
body: JSON.stringify('Hello from Lambda!'), | |
headers: {"content-type": "text/html"} | |
}; | |
return response; | |
}; |
This file contains 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
{ | |
"modules": [ | |
{ | |
"description": "SOAP Client for Node Red", | |
"id": "node-red-contrib-soap", | |
"keywords": [ | |
"soap", | |
"node-red", | |
"node" | |
], |
This file has been truncated, but you can view the full file.
This file contains 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
{ | |
"modules": [ | |
{ | |
"description": "Node-RED node that receives snmp traps.", | |
"id": "node-red-contrib-snmp-trap-listener", | |
"keywords": [ | |
"node-red" | |
], | |
"types": [ | |
"snmp-trap-listener" |
This file contains 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 ( | |
"fmt" | |
) | |
var z = 100.0 // the seed | |
var delta = 0.0001 // the epsilon | |
func Sqrt(x float64) float64 { |