To get started run:
go get
go build
package main | |
import ( | |
"crypto/rand" | |
"fmt" | |
"net/http" | |
"text/template" | |
) | |
type User struct { |
@GrabConfig( systemClassLoader=true ) | |
@Grab( 'mysql:mysql-connector-java:5.1.38' ) | |
import groovy.sql.Sql | |
class GroovySqlExample1{ | |
static void main(String[] args) { | |
def sql = Sql.newInstance("jdbc:mysql://domovm.local.domo.com:3306/", "user","pass", "com.mysql.jdbc.Driver") | |
sql.eachRow("SHOW VARIABLES WHERE Variable_name LIKE 'character\\_set\\_%' OR Variable_name LIKE 'collation%';"){ row -> | |
println row.variable_name + " " + row.value | |
} |
package main | |
import( | |
"crypto/rand" | |
) | |
func GenUUIDv4() string { | |
u := make([]byte, 16) | |
rand.Read(u) | |
//Set the version to 4 |
I hereby claim:
To claim this, I am signing this object:
#include <Wire.h> | |
#define LIDARLite_ADDRESS 0x62 // Default I2C Address of LIDAR-Lite. | |
#define RegisterMeasure 0x00 // Register to write to initiate ranging. | |
#define MeasureValue 0x04 // Value to initiate ranging. | |
#define RegisterHighLowB 0x8f // Register to get both High and Low bytes in 1 call. | |
int reading = 0; | |
// the setup function runs once when you press reset or power the board | |
void setup() { |
package main | |
import ( | |
"flag" | |
"github.com/garyburd/redigo/redis" | |
"io/ioutil" | |
"log" | |
"time" | |
) |
package main | |
import ( | |
"fmt" | |
"github.com/xeipuuv/gojsonschema" | |
) | |
func main() { | |
schemaMap := map[string]interface{}{ |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"reflect" | |
"time" | |
) | |
func main() { |
FROM ubuntu | |
MAINTAINER murphysean84@gmail.com | |
COPY . /app | |
# Install app dependencies | |
EXPOSE 8080 | |
ENTRYPOINT ["/app/UserMicroService"] |