Skip to content

Instantly share code, notes, and snippets.

View koffeinfrei's full-sized avatar

Alexis Reigel koffeinfrei

View GitHub Profile
@tomyam1
tomyam1 / matchers.js
Last active April 9, 2020 15:02
Custom matchers for Protractor and Jasmine 2
'use strict';
const _ = require('lodash');
const Tinycolor2 = require('tinycolor2');
/**
* Custom matchers for protractor and jasmine 2
*
* expect(el).toBePresent();
* expect(el).toBeDisplayed();
@davidosomething
davidosomething / open-github.sh
Last active December 14, 2015 04:28
Open current repo's github page if it has one.
# Depends on AWK, SED, and OSX's open command.
function github() {
local github_url
if ! git remote -v >/dev/null; then
return 1
fi
# get remotes for fetch
github_url="`git remote -v | grep github\.com | grep \(fetch\)$`"
@steveklabnik
steveklabnik / log.txt
Created August 19, 2012 09:59
A fun shell script from #euruku
$ history | awk {'print $2, $3, $4'} | sort | uniq -c | sort -k1 -rn | head -n 30
610 git status
568 git commit -m
491 git add .
252 git push origin
176 bundle
138 rails s
128 ls
120 git commit --amend
114 git reset --hard
@coreyhaines
coreyhaines / .rspec
Last active April 11, 2024 00:19
Active Record Spec Helper - Loading just active record
--colour
-I app