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
gem 'acts_as_tree' | |
gem "friendly_id", "~> 4.0.1" |
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
Open Terminal. | |
Type this command: | |
cd /System/Library/CoreServices/Finder.app/Contents/Resources/English.lproj/ | |
Now, the file we want to mess around is the InfoPlist.strings. But unfortunately, this file cannot be edited directly using text editor in Lion. But no worries. Run this command to make it editable. | |
sudo plutil -convert xml1 InfoPlist.strings | |
Now the file should be editable and readable. Use your favorite text editor and open InfoPlist.strings. I just used vim | |
sudo vim InfoPlist.strings |
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 | |
dir, base = File.split(File.dirname(ENV["TM_FILEPATH"])) | |
if (base=="css") | |
file = STDIN.read[/lessc: ([^*])+\.less/, 1] || ENV["TM_FILEPATH"].chomp(File.extname(ENV["TM_FILEPATH"])) | |
system("lessc \"#{file}.less\" > \"#{file}.css\"") | |
end |
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 | |
filename = File.basename(ENV["TM_FILEPATH"]) | |
if (filename=="style.less") | |
file = STDIN.read[/lessc: ([^*])+\.less/, 1] || ENV["TM_FILEPATH"].chomp(File.extname(ENV["TM_FILEPATH"])) | |
system("lessc -x \"#{file}.less\" > \"#{file}.css\"") | |
end |
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 | |
filename = File.basename(ENV["TM_FILEPATH"]) | |
if (filename=="style.less") | |
file = STDIN.read[/lessc: ([^*])+\.less/, 1] || ENV["TM_FILEPATH"].chomp(File.extname(ENV["TM_FILEPATH"])) | |
system("lessc -x \"#{file}.less\" > \"#{file}.css\"") | |
end | |
# if is modules path | |
dir, base = File.split(File.dirname(ENV["TM_FILEPATH"])) |
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
%ul.breadcrumb | |
%li | |
%big | |
="1" | |
= link_to t('reservations.steps.choose_date_and_count'), root_path | |
%span.divider | |
> | |
%li.active | |
%big | |
="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
// ==UserScript== | |
// @name Blueberry CMS | |
// @namespace http://blueberry.cz/user/ceda | |
// @description Highlights the HTML syntax for Textareas in block editor | |
// @include http://cms.blueberry.cz/* | |
// @require http://codemirror.net/lib/codemirror.js | |
// @require http://codemirror.net/addon/fold/foldcode.js | |
// @require http://codemirror.net/addon/fold/foldgutter.js | |
// @require http://codemirror.net/addon/fold/xml-fold.js | |
// @require http://codemirror.net/mode/xml/xml.js |
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="steeef" | |
# Example aliases |
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
{ foldingStartMarker = '(/\*|\{\s*$)|if\s*\(.*\)'; | |
foldingStopMarker = '(\*/|^\s*\})|endif;'; | |
} |
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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
OlderNewer