This file contains hidden or 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
# Prompts | |
autoload colors ; colors | |
git_prompt_info() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo " [${ref#refs/heads/}]" | |
} | |
PROMPT='%n@%m%{$fg[green]%}$(git_prompt_info)%{$fg_bold[blue]%} ~ %{$reset_color%}' | |
RPROMPT=' %~' # prompt for right side of screen |
This file contains hidden or 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
diff --git a/plugins/lyrics/lyrics-prefs.ui b/plugins/lyrics/lyrics-prefs.ui | |
index 374e8b4..baedd2d 100644 | |
--- a/plugins/lyrics/lyrics-prefs.ui | |
+++ b/plugins/lyrics/lyrics-prefs.ui | |
@@ -103,6 +103,21 @@ | |
<property name="position">4</property> | |
</packing> | |
</child> | |
+ <child> | |
+ <object class="GtkCheckButton" id="engine6"> |
This file contains hidden or 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
#!/usr/bin/env ruby | |
total = ARGV[0].to_i == 0 ? 10 : ARGV[0].to_i | |
system(%! git log -#{total} --author="Your Name" --pretty=format:"||%ai||%H||||%s||" --reverse --all !) |
This file contains hidden or 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
require 'tempfile' | |
class Diff | |
KDIFF3 = '/usr/bin/kdiff3 --display NONE' unless defined?(KDIFF3) | |
DIFF3 = '/usr/bin/diff3' unless defined?(DIFF3) | |
class << self | |
def diff(content1, content2, content3) | |
file1_path = make_tmpfile('file1', content1) | |
file2_path = make_tmpfile('file2', content2) |
This file contains hidden or 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
require 'rubygems' | |
gem 'ncurses' | |
require 'logger' | |
require 'rbcurse' | |
require 'rbcurse/rtabbedpane' | |
require 'rbcurse/rtextarea' | |
$log = Logger.new('view.log') |
This file contains hidden or 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
# Prompts | |
autoload colors ; colors | |
git_prompt_info() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo ${ref#refs/heads/} | |
} | |
rvm_version() { | |
gemset=$(echo $GEM_HOME | awk -F'@' '{print $2}') |
This file contains hidden or 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
From ce2b0ced47465c954fe0d53c2ad79e79bba224c4 Mon Sep 17 00:00:00 2001 | |
From: Indrek Juhkam <[email protected]> | |
Date: Sat, 29 May 2010 15:02:33 +0300 | |
Subject: [PATCH] do not show input size attribute when set to nil | |
--- | |
lib/formtastic.rb | 3 +- | |
spec/inputs/string_input_spec.rb | 57 ++++++++++++++++++++++++-------------- | |
2 files changed, 38 insertions(+), 22 deletions(-) |
This file contains hidden or 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
Bundler could not find compatible versions for gem "rack": | |
In Gemfile: | |
cramp depends on | |
rack (~> 1.1.0) | |
sinatra depends on | |
rack (1.2.1) | |
Bundler could not find compatible versions for gem "activesupport": | |
In Gemfile: |
This file contains hidden or 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
class UserRegistrationService | |
def initialize(params) | |
@params = params | |
end | |
def register | |
user = User.new(@params) | |
if user.save | |
# send_email |
This file contains hidden or 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 | |
grep -Rc spec_helper spec | grep :0$ | grep _spec.rb | cut -d : -f 1 | xargs rspec |
OlderNewer