Skip to content

Instantly share code, notes, and snippets.

🛠
Engine-heir

Owajigbanam Ogbuluijah igbanam

🛠
Engine-heir
Block or report user

Report or block igbanam

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 nested-files.txt
app
|-- controllers
|-- customer_controller.rb
|-- customers
|-- order_controller.rb
|-- models
|-- customer.rb
|-- customers
|-- order.rb
@igbanam
igbanam / hanami-gemfile-tutorial
Created Sep 13, 2019
Base Gemfile for Hanami 1.3
View hanami-gemfile-tutorial
source 'https://rubygems.org'
gem 'rake'
gem 'hanami', '~> 1.3'
gem 'hanami-model', '~> 1.3'
gem 'pg'
group :development do
# Code reloading
@igbanam
igbanam / no-assignments-1.rb
Last active Jun 11, 2019
Methods are better without assignments
View no-assignments-1.rb
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 / my-git-aliases
Last active Jun 1, 2018
My Git Aliases
View my-git-aliases
[alias]
a = add
b = branch
c = commit
d = diff
l = log
o = checkout
p = pull
r = remote
View 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
View 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
View 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
View git-top-performer-alias
# ~/.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 / git-basic-alias
Last active Mar 28, 2018
Some basic yet pervasive commands
View git-basic-alias
[alias]
a = add
c = commit
d = diff
o = checkout
p = pull
s = status
@igbanam
igbanam / git-status-alias
Created Mar 28, 2018
shortening git-status
View git-status-alias
[alias]
s = status
You can’t perform that action at this time.