Skip to content

Instantly share code, notes, and snippets.

View indrekj's full-sized avatar

Indrek Juhkam indrekj

View GitHub Profile
# 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
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">
#!/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 !)
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)
require 'rubygems'
gem 'ncurses'
require 'logger'
require 'rbcurse'
require 'rbcurse/rtabbedpane'
require 'rbcurse/rtextarea'
$log = Logger.new('view.log')
# 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}')
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(-)
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:
class UserRegistrationService
def initialize(params)
@params = params
end
def register
user = User.new(@params)
if user.save
# send_email
@indrekj
indrekj / fast_specs
Created May 12, 2012 22:10
Runs all tests in the spec directory that do not load the spec_helper.rb
#!/bin/bash
grep -Rc spec_helper spec | grep :0$ | grep _spec.rb | cut -d : -f 1 | xargs rspec