This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $ cat Gemfile.lock | ruby deps.rb | |
ds = false | |
STDIN.each do |line| | |
if line.match?(/^DEPENDENCIES/) | |
ds = true | |
next | |
end | |
next if !ds | |
if ds && line.chomp == "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ HAML comment | |
- # ruby comment | |
string | |
= "string" | |
= "string" #comment | |
= "string #{not_comment}" # comment | |
-# | |
multi line comment | |
multi line comment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
# frozen_string_literal: true | |
# good | |
a = [ | |
1, | |
] | |
# good | |
b = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# pull origin | |
echo -ne "* " | |
git checkout master | |
git pull origin master | |
echo "" | |
branches=$(git branch | grep -v master) |