Below is adapted from Matt Might's blog post:
3 shell scripts to improve your writing, or "My Ph.D. advisor rewrote himself in bash." .
Weasel words--phrases or words that sound good without conveying
# Example of how you can to use Capybara with plain Rails' integration tests and FactoryGirl (or plain MyModel.create…) | |
require 'test_helper' | |
require 'capybara' | |
require 'capybara/dsl' | |
require 'database_cleaner' | |
Capybara.app = Pardy::Application | |
Capybara.default_driver = :rack_test | |
DatabaseCleaner.strategy = :truncation |
Below is adapted from Matt Might's blog post:
3 shell scripts to improve your writing, or "My Ph.D. advisor rewrote himself in bash." .
Weasel words--phrases or words that sound good without conveying
ENV["RAILS_ENV"] = "test" | |
require File.expand_path('../../config/environment', __FILE__) | |
require 'rails/test_help' | |
require 'minitest/autorun' | |
require 'minitest/pride' | |
require 'capybara/rails' | |
class MiniTest::Spec | |
include ActiveSupport::Testing::SetupAndTeardown |
<keybind key="W-Escape"> | |
<keybind key="q"> | |
<action name="Close"/> | |
</keybind> | |
<!-- Keybindings for resizing, ala divvy --> | |
<!-- 30% --> | |
<keybind key="C-h"> | |
<action name="MoveResizeTo"> | |
<x>0</x> | |
<height>98%</height> |
# The proper way to HTTP Redirect... but not all hosts listen to .htaccess (eg. GitHub Pages) | |
# Some hosts also provide a special redirect option in their hosting controls. | |
RedirectPermanent / http://www.newsite.com/ | |
# Probably never used, but just to be thorough. | |
ErrorDocument 404 /404.html |
=================================================================== | |
RCS file: RCS/command.c,v | |
retrieving revision 1.92 | |
diff -u -r1.92 command.c | |
--- command.c 2012/07/03 20:10:42 1.92 | |
+++ command.c 2013/06/19 19:37:59 | |
@@ -47,6 +47,8 @@ | |
extern int shift_count; | |
extern int oldbot; | |
extern int forw_prompt; |
// Use this for nOtch2k | |
term_.prefs_.set('background-color', "#202020"); | |
term_.prefs_.set('foreground-color', "#a0a0a0"); | |
term_.prefs_.set('color-palette-overrides', [ | |
'#383838', | |
'#a95551', | |
'#606060', | |
'#a98051', | |
'#657d3e', |
# Natty (Ubuntu 11.04) | |
$ dpkg -L libc6-dev | grep /types.h | |
/usr/include/bits/types.h | |
/usr/include/rpc/types.h | |
/usr/include/sys/types.h | |
# Oneiric (Ubuntu 11.10) | |
$ dpkg -L libc6-dev | grep /types.h |