Skip to content

Instantly share code, notes, and snippets.

Creating Magic

Owajigbanam Ogbuluijah igbanam

View GitHub Profile
@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
@igbanam
igbanam / nan.js
Last active Oct 25, 2017
Javascript Symptoms — NaN
View nan.js
NaN # This is a "thing"
NaN == NaN # => false
NaN === NaN # => false
@igbanam
igbanam / route_hooks.js
Created Oct 9, 2017 — forked from danielchappell/route_hooks.js
Ember.Route hook order
View route_hooks.js
import Ember from 'ember';
// Ember 1.10
export default Ember.Route.extend({
//---fire in order on route enter---
beforeModel(transition) {
//empty by default
@igbanam
igbanam / rubyconf-ng-abstract-factory.rb
Last active Aug 13, 2017
RubyConf-NG Design Patterns
View rubyconf-ng-abstract-factory.rb
# The Abstract Factory
class Waiter
def initialize meal_order
@meal_order = meal_order
end
def serve!
@meal_order.utensil
@meal_order.delicacy
end
You can’t perform that action at this time.