Skip to content

Instantly share code, notes, and snippets.

View gautamrege's full-sized avatar

Gautam Rege gautamrege

View GitHub Profile
@gautamrege
gautamrege / Gemfile.diff
Last active December 28, 2015 22:09
Rails 3 to Rails 4 upgrade explained.
diff --git a/Gemfile b/Gemfile
index 084537c..0a99d96 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,12 +1,12 @@
source 'http://rubygems.org'
-gem 'rails', '3.2.8'
+gem 'rails', '4.0.1'
gem 'sqlite3'
@gautamrege
gautamrege / sphero.go
Created July 10, 2015 22:38
Gophercon 2015 #hackday - demo with Sphere - make it move to keyboard arrow keys.
package main
import (
"fmt"
"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/keyboard"
"github.com/hybridgroup/gobot/platforms/sphero"
)
@gautamrege
gautamrege / hangman.go
Last active April 4, 2020 05:55
Hangman - Part 1 (working basic)
package main
import (
"fmt"
"strings"
)
func main() {
word := "elephant"
@gautamrege
gautamrege / hangman.go
Created April 4, 2020 05:55
Hangman Part-2 (get random word)
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"strings"
)
@gautamrege
gautamrege / hangman.go
Last active April 13, 2020 05:16
Hangman - Part 4 - interfaces and testing
package main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
"strings"
@gautamrege
gautamrege / hangman.go
Created April 13, 2020 05:11
Hangman - Part 3 struct and receiver methods
package main
import (
"bufio"
"encoding/json"
"flag"
"fmt"
"io"
"io/ioutil"
"net/http"