Skip to content

Instantly share code, notes, and snippets.

👓
Give us feedback

meganemura meganemura

View GitHub Profile
@meganemura
meganemura / deps.rb
Last active Mar 23, 2018
List dependencies
View deps.rb
# $ 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 == ""
@meganemura
meganemura / linguist.html.haml
Last active Nov 30, 2016
Syntax Highlighting for HAML
View linguist.html.haml
/ HAML comment
- # ruby comment
string
= "string"
= "string" #comment
= "string #{not_comment}" # comment
-#
multi line comment
multi line comment
View test.rb
# encoding: utf-8
# frozen_string_literal: true
# good
a = [
1,
]
# good
b = [
@meganemura
meganemura / rebase-master.sh
Last active Dec 25, 2015
Update git branches
View rebase-master.sh
#!/bin/bash
set -e
# pull origin
echo -ne "* "
git checkout master
git pull origin master
echo ""
branches=$(git branch | grep -v master)
You can’t perform that action at this time.