Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Joe Chasinga jochasinga

🏠
Working from home
Block or report user

Report or block jochasinga

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Git workflow
## When you begin working on a feature
Step 1: Update the main (demo) branch
git checkout demo
git pull origin demo
Step 2: Create a feature branch off of the main branch (demo)
git checkout -b my_feature_branch demo
Step 3: Record/Commit your work
@jochasinga
jochasinga / simple_chat.rs
Last active Aug 29, 2015 — forked from andelf/simple_chat.rs
Simple Socket Chat Server in Rust. (TcpListener, TcpStream, SharedChan, RWArc)
View simple_chat.rs
extern mod sync;
// str op trait
use std::str::StrSlice;
// for tcp listen
use std::io::{TcpListener, TcpStream};
use std::io::net::ip::SocketAddr;
// for trait
use std::io::{Listener, Writer, Acceptor, Buffer};
// for spawn
@jochasinga
jochasinga / fibonacci_closure.go
Created May 26, 2016 — forked from tetsuok/fibonacci_closure.go
An answer of the exercise: Fibonacci closure on a tour of Go
View fibonacci_closure.go
package main
import "fmt"
// Very naive answer.
// fibonacci is a function that returns
// a function that returns an int.
func fibonacci() func() int {
n := 0
a := 0
You can’t perform that action at this time.