View the original gist: https://gist.github.com/428105
visit "/projects"
visit post_comments_path(post)
#!/usr/bin/env ruby | |
begin | |
require 'closure-compiler' | |
rescue LoadError => e | |
puts e.message | |
puts "to fix: gem install 'closure-compiler'" | |
exit 1 | |
end |
View the original gist: https://gist.github.com/428105
visit "/projects"
visit post_comments_path(post)
# features/support/session.rb | |
# Sign-in users directly, without going through the sign-in form each time. | |
# | |
# Including the Warden::Test::Helpers in the cucumber world, allows us | |
# to call login_as(user, opts = {}) and logout(*scopes) in cucumber steps. | |
# | |
# http://git.io/h1NRxQ | |
Before do |scenario| |
Moved to https://github.com/pmeinhardt/style
If you ever need to download an entire website, perhaps for off-line viewing, wget can do the job — for example:
$ wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains website.org --no-parent www.website.org/tutorials/html/
This command downloads the website www.website.org/tutorials/html/.
The options are:
--recursive
: download the entire website--domains website.org
: don't follow links outside website.orgOm -- ClojureScript interface to Facebook's React
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Media Stream Recording</title> | |
</head> | |
<body> | |
<video id="playback" controls autoplay></video> | |
<button onclick="stopRecording()">stop</button> | |
<a id="download-link" href="#" download="recording.webm">Download</a> |
Docker setup and running a (language-specific) Travis-CI docker image:
# install docker tools (e.g. via homebrew)
brew install docker docker-machine
# create a docker machine (https://docs.docker.com/machine/)
docker-machine create --driver virtualbox default
# set up your shell session for docker
# RASPBIAN JESSIE LITE | |
# | |
# Version: May 2016 | |
# Release date: 2016-05-27 | |
# Kernel version: 4.4 | |
# | |
# https://www.raspberrypi.org/downloads/raspbian/ | |
# boot and login (default username: pi, password: raspberry) |
# For more options and information see | |
# http://www.raspberrypi.org/documentation/configuration/config-txt.md | |
# Some settings may impact device functionality. See link above for details | |
# uncomment if you get no picture on HDMI for a default "safe" mode | |
#hdmi_safe=1 | |
# uncomment this if your display has a black border of unused pixels visible | |
# and your display can output without overscan | |
#disable_overscan=1 |