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 ( | |
"errors" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" |
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 ( | |
rpio "github.com/stianeikeland/go-rpio" | |
"log" | |
"net/http" | |
) | |
func main() { | |
log.Print("Starting up...") |
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/gorilla/mux" | |
rpio "github.com/stianeikeland/go-rpio" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" | |
"time" |
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 | |
const accuracy = 0.00001 | |
func multiplier(i int, angle, num, den float64) (float64, float64) { | |
num *= angle * angle | |
den *= float64(i * (i - 1)) | |
return num, den | |
} |
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
function highlight(range) { | |
var textNodes = allTextNodes(range) | |
// Wrap all child text nodes | |
textNodes.forEach(function(node) { | |
var range = document.createRange() | |
range.selectNodeContents(node) | |
range.surroundContents(wrapperNode()) | |
}) |
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 ( | |
"crypto/tls" | |
"crypto/x509" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
) |
OlderNewer