Skip to content

Instantly share code, notes, and snippets.

View IndianGuru's full-sized avatar

IndianGuru IndianGuru

View GitHub Profile
@IndianGuru
IndianGuru / index.html
Created August 26, 2015 03:30
File index.html
<!DOCTYPE html>
<html>
<head>
<title>Dosa Diner</title>
<meta charset="utf-8">
<link rel="stylesheet" href="stylesheets/dosasite.css">
</head>
<body>
@IndianGuru
IndianGuru / dosasite.css
Created August 26, 2015 03:38
File dosasite.css
body {
background-color: #C2A7F2;
font-family: sans-serif;
}
h1 {
color: #2A1959;
border-bottom: 2px solid #2A1959;
}
h2 {
color: #474B94;
@IndianGuru
IndianGuru / dosasite.go
Created August 26, 2015 03:44
File dosasite.go
package main
import (
"fmt"
"log"
"net/http"
"os"
)
func main() {
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
url = https://github.com/joshsoftware/golang-challenge.git
@IndianGuru
IndianGuru / gc1feedback
Last active August 29, 2015 14:16
Go Challenge 1 Feedback
###Francesc Campoy Flores from Google
During my long flight back to San Francisco I had the time to work on the Go challenge. Congrats on the organization! The problem was fun to solve and I'm sure people will learn a lot from it.
###Others
1. Thank you for the challenge. It was fun and an awesome "excuse" to read through some golang source code such as encode/json and image/png.
2. I had a great time working on this. I got a great excuse to browse parts of the standard library I hadn't visited before. I really appreciate the initiative that you guys are taking with this.
@IndianGuru
IndianGuru / githuboq.go
Created April 13, 2015 04:40
Accessing GitHub using Golang
package main
import (
"fmt"
"net/http"
"github.com/google/go-github/github"
"golang.org/x/oauth2"
githuboauth "golang.org/x/oauth2/github"
"html/template"
@IndianGuru
IndianGuru / mytext.go
Created September 2, 2015 03:45
mytext.go
package mytext
import (
"fmt"
"net/http"
)
func init() {
http.HandleFunc("/", handler)
}
@IndianGuru
IndianGuru / app.yaml
Last active September 2, 2015 04:09
app.yaml
# This is a comment
# application is mandatory
application: helloworld
# version is mandatory
version: 1-0
# runtime is mandatory
runtime: go
@IndianGuru
IndianGuru / hello.go
Created September 3, 2015 03:41
hello.go
package main
import "fmt"
func main() {
fmt.Println("Hello, world.")
}
@IndianGuru
IndianGuru / struct.go
Created September 4, 2015 04:29
Struct example
type My_Struct_Name struct {
X int
Y string
}