Skip to content

Instantly share code, notes, and snippets.

View anujsinghwd's full-sized avatar
🏠
Working from home

Anuj Singh anujsinghwd

🏠
Working from home
View GitHub Profile
@anujsinghwd
anujsinghwd / datevalidation.html
Last active May 23, 2018 11:50
validate date and also reformat date
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Checking Date</title>
<style>
li {
list-style-type: none;
font-size: 16pt;
@anujsinghwd
anujsinghwd / couchbase.go
Last active March 23, 2018 06:37
Connecting couchbase with go
import (
"github.com/couchbase/gocb"
)
var bucket *gocb.Bucket
func main() {
cluster, _ := gocb.Connect("couchbase://localhost")
@anujsinghwd
anujsinghwd / main.go
Created March 16, 2018 10:47
Upload File - golang
package main
import (
"crypto/md5"
"fmt"
"io"
"net/http"
"os"
"strconv"
"text/template"