Skip to content

Instantly share code, notes, and snippets.

Peeyush Singh peeyushsrj

View GitHub Profile
View sample-yaml.yml
invoice: 34843
date : 2001-01-23
bill-to: &id001
given : Chris
family : Dumars
address:
lines: |
458 Walkman Dr.
Suite #292
city : Royal Oak
View golang-create-read-write-delete-file.go
package main
import (
"fmt"
"io"
"os"
)
var path = "/Users/novalagung/Documents/temp/test.txt"
@peeyushsrj
peeyushsrj / set_cookiejar.go
Created Jun 8, 2017 — forked from HugoPresents/set_cookiejar.go
golang set cookieJar example
View set_cookiejar.go
package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/http/cookiejar"
"net/url"
"strings"
)
@peeyushsrj
peeyushsrj / walk.go
Last active Mar 14, 2017 — forked from tdegrunt/walk.go
Replace some text in a bunch of files with golang
View walk.go
package main
import (
"fmt"
"io/ioutil"
"os"
"bufio"
"path/filepath"
"strings"
)
@peeyushsrj
peeyushsrj / main.go
Created Feb 13, 2017
Efficient Data Structure for Graph Social Network using golang
View main.go
package main
import (
"encoding/json"
"log"
"net/http"
)
type Relationship struct {
Rid int
@peeyushsrj
peeyushsrj / teleg-server.go
Last active Feb 1, 2017
Hosting a telegram go webhook on digitalocean
View teleg-server.go
package main
import (
"gopkg.in/telegram-bot-api.v4"
"log"
"net/http"
)
func main() {
bot, err := tgbotapi.NewBotAPI("328357664:AAGrnpzHV6_mzy-OCm5trALxdMstwNyZEHQ")
View tls-server.go
package main
import (
// "fmt"
// "io"
"net/http"
"log"
)
func HelloServer(w http.ResponseWriter, req *http.Request) {
View keybase.md

Keybase proof

I hereby claim:

  • I am peeyushsrj on github.
  • I am peeyushsrj (https://keybase.io/peeyushsrj) on keybase.
  • I have a public key whose fingerprint is 46C3 1917 1E84 1C04 E988 4A99 E3EB 0EAF 703C C23B

To claim this, I am signing this object:

@peeyushsrj
peeyushsrj / README-Template.md
Created Feb 22, 2016 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisities

@peeyushsrj
peeyushsrj / prerenderingCache.go
Last active Feb 22, 2016
Implementation of prerender.io service in golang
View prerenderingCache.go
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"strings"
"time"
You can’t perform that action at this time.