Skip to content

Instantly share code, notes, and snippets.

View techmaniack's full-sized avatar

Karim Memon techmaniack

View GitHub Profile
@techmaniack
techmaniack / client.py
Created November 17, 2013 16:53
python tcp ip example (addition of 2 numbers) Example taken from http://docs.python.org/2/library/socket.html
#! /usr/bin/python
# Echo client program
import socket
def parse_file(fName):
list = []
with open(fName) as f:
for line in f:
list.append(line.strip())
return list
@techmaniack
techmaniack / login_test.go
Last active June 1, 2017 11:48
go-twitter code examples
package main
import (
"fmt"
"github.com/dghubble/go-twitter/twitter"
"github.com/dghubble/oauth1"
)
func main() {
consumerKey := "KEY"
@techmaniack
techmaniack / bot.go
Last active June 1, 2017 11:56
Simple twitter bot written in Golang
package main
import (
"fmt"
"github.com/dghubble/go-twitter/twitter"
"github.com/dghubble/oauth1"
)
func main() {
consumerKey := "KEY"