View nan.js
NaN # This is a "thing" | |
NaN == NaN # => false | |
NaN === NaN # => false |
View git-status-alias
[alias] | |
s = status |
View git-basic-alias
[alias] | |
a = add | |
c = commit | |
d = diff | |
o = checkout | |
p = pull | |
s = status |
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 |
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 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-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 my-git-aliases
[alias] | |
a = add | |
b = branch | |
c = commit | |
d = diff | |
l = log | |
o = checkout | |
p = pull | |
r = remote |
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 |
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 |