As configured in my dotfiles.
start new:
tmux
start new with session name:
<% [:notice, :error, :alert].each do |level| %> | |
<% unless flash[level].blank? %> | |
<div class="alert-message <%= flash_class(level) %>"> | |
<a class="close" href="#">×</a> | |
<%= content_tag :p, flash[level] %> | |
</div> | |
<% end %> | |
<% end %> |
#!/bin/bash | |
set -e # exit on error | |
### README | |
# * installs your desired ruby versions using rbenv | |
# ** including openssl (needed by bundler) | |
# ** including sqlite (probably needed for rails apps) | |
# | |
# Before you start: | |
# * put ssh-keys in place |
As configured in my dotfiles.
start new:
tmux
start new with session name:
=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') |
This will be a copy/paste doc for installing redis, elasticsearch and logstash on ubuntu 12.04
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install tcl8.5 tcl8.5-dev build-essential rubygems git \
htop python-dev openjdk-7-jre-headless libcurl4-openssl-dev \
bison ctags flex gperf libevent-dev libpcre3-dev libssl-dev libreadline6-dev \
libtokyocabinet-dev libncursesw5-dev libxml2-dev libxslt1-dev libsqlite3-dev \
// single arrow at the end | |
Raphael.fn.arrow = function(x1, y1, x2, y2, size) { | |
var angle = Raphael.angle(x1, y1, x2, y2); | |
var a45 = Raphael.rad(angle-45); | |
var a45m = Raphael.rad(angle+45); | |
var x2a = x2 + Math.cos(a45) * size; | |
var y2a = y2 + Math.sin(a45) * size; | |
var x2b = x2 + Math.cos(a45m) * size; | |
var y2b = y2 + Math.sin(a45m) * size; | |
return this.path( |
curl -XDELETE http://localhost:9200/ac-test | |
#curl -XPUT http://localhost:9200/ac-test | |
# --- Mapping --- | |
curl -XPOST 'http://localhost:9200/ac-test | |
'{"mappings" : { { | |
"people" : { | |
"properties" : { | |
"firstNames" : { | |
"type" : "string" |
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<!-- If you delete this tag, the sky will fall on your head --> | |
<meta name="viewport" content="width=device-width" /> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>ZURBemails</title> | |
<style data-inline="true"> |
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<!-- If you delete this tag, the sky will fall on your head --> | |
<meta name="viewport" content="width=device-width" /> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>ZURBemails</title> | |
<style data-inline="true"> |
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<!-- If you delete this tag, the sky will fall on your head --> | |
<meta name="viewport" content="width=device-width" /> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>ZURBemails</title> | |
<style data-inline="true"> |