Skip to content

Instantly share code, notes, and snippets.

View colleowino's full-sized avatar
🤹
Jest all the things

Cliff Owino colleowino

🤹
Jest all the things
View GitHub Profile
@colleowino
colleowino / factorial.rb
Created April 30, 2017 00:39 — forked from flakyfilibuster/factorial.rb
Sweet ass factorials in Ruby! #1 - Iterative long #2 - Iterative short #3 - Recursive long #4 - Recursive short
# Factorial Recursive #
#######################
# Long Version:
def factorial(n)
if n == 0
return 1
else
return n*factorial(n-1)
@colleowino
colleowino / zsh.md
Created March 26, 2016 10:50 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@colleowino
colleowino / .gitconfig
Created February 11, 2016 17:54 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.LinearLayoutManager;
import android.view.View;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.graphics.Canvas;
@colleowino
colleowino / CustomItemClickListener.java
Created January 10, 2016 20:06 — forked from riyazMuhammad/CustomItemClickListener.java
Easy Implementation of RecyclerView custom onItemClickListener
public interface CustomItemClickListener {
public void onItemClick(View v, int position);
}
@colleowino
colleowino / tmux-cheatsheet.markdown
Last active August 29, 2015 14:27 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

MacOS

Download from here:

http://d.pr/f/QE3d

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: