Skip to content

Instantly share code, notes, and snippets.

View igbanam's full-sized avatar
🤿
vi/vim

Igbanam Ogbuluijah igbanam

🤿
vi/vim
View GitHub Profile
@igbanam
igbanam / nan.js
Last active October 25, 2017 15:34
Javascript Symptoms — NaN
NaN # This is a "thing"
NaN == NaN # => false
NaN === NaN # => false
@igbanam
igbanam / git-status-alias
Created March 28, 2018 16:16
shortening git-status
[alias]
s = status
@igbanam
igbanam / git-basic-alias
Last active March 28, 2018 16:31
Some basic yet pervasive commands
[alias]
a = add
c = commit
d = diff
o = checkout
p = pull
s = status
@igbanam
igbanam / git-top-performer-alias
Last active March 28, 2018 17:06
Top Performers
# ~/.gitconfig
... other stuff
[alias]
top-performers = shortlog --summary --numbered --no-merges
# using this alias in the shell
$ git top-performers
12 Alice Doe
5 Bob Doe
@igbanam
igbanam / log-output
Created June 1, 2018 10:27
Log Output
commit 95557d77cb5bf0f7f282c1de6317f9b16924f3a7 (HEAD -> develop, origin/develop)
Author: You <you@company.com>
Date: Tue Oct 17 21:09:04 2017 +0100
halfway through something
commit c8bb349eb52221ca61e72be47cbc37fadbbe685c
Author: you <you@personal.com>
Date: Sun Oct 15 21:03:18 2017 +0100
@igbanam
igbanam / log-aliases
Created June 1, 2018 10:36
Git Log Aliases
[alias]
log-retro = !git log --since '1 week ago' --author $(git config user.email) --pretty=short --oneline
log-standup = !git log --since yesterday --author $(git config user.email) --pretty=short --oneline
@igbanam
igbanam / log-alias-output
Created June 1, 2018 10:47
Log Alias Output
95557d7 (HEAD -> develop, origin/develop) halfway through something
c8bb349 used JsonApi with Ember
593b582 I broke something
bae3a26 rails 5.1.4 stuff
@igbanam
igbanam / my-git-aliases
Last active June 1, 2018 14:54
My Git Aliases
[alias]
a = add
b = branch
c = commit
d = diff
l = log
o = checkout
p = pull
r = remote
@igbanam
igbanam / no-assignments-1.rb
Last active June 11, 2019 14:26
Methods are better without assignments
class SomethingWithAssignments
def nice
first_thing = @modifier * 2
another_thing = some_method.to_i
three_divides = @modifier % 3 == 0 ? true : false
if three_divides
return first_thing + another_thing
else
return another_thing
@igbanam
igbanam / hanami-gemfile-tutorial
Created September 13, 2019 18:16
Base Gemfile for Hanami 1.3
source 'https://rubygems.org'
gem 'rake'
gem 'hanami', '~> 1.3'
gem 'hanami-model', '~> 1.3'
gem 'pg'
group :development do
# Code reloading