Skip to content

Instantly share code, notes, and snippets.

View nekath's full-sized avatar

Radosław Piątek nekath

View GitHub Profile
@nekath
nekath / es6.diff
Last active August 29, 2015 14:27
ES6 with browserify-rails and rails
diff --git a/.gitignore b/.gitignore
index 050c9d9..3292569 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,6 @@
/log/*
!/log/.keep
/tmp
+
+# Ignore node modules
@nekath
nekath / assets.rake
Created September 14, 2015 15:49
Rake task for rails and webpack assets
# The webpack must compile assets before assets:environment task.
# Otherwise Sprockets sees no changes and don't precompile assets.
Rake::Task['assets:precompile']
.clear_prerequisites
.enhance(['assets:compile_environment'])
Rake::Task['assets:clobber'].enhance do
Rake::Task['assets:clobber_webpack'].invoke
end
@nekath
nekath / pull_request.sh
Created May 9, 2016 18:59 — forked from devongovett/pull_request.sh
Bash script to make a pull request from the current git repository. Tries the upstream remote if possible, otherwise uses origin.
# put this in your .bash_profile
pull_request() {
to_branch=$1
if [ -z $to_branch ]; then
to_branch="master"
fi
# try the upstream branch if possible, otherwise origin will do
upstream=$(git config --get remote.upstream.url)
origin=$(git config --get remote.origin.url)