It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.
I've also compiled a list of countries
; Course: 1007ICT - Griffith University | |
; Assignment: 2 | |
; Author: Tate Johnson | |
; Created: 2008-05-30 | |
; Processor: Motorola 6800 | |
; QUESTION 6 | |
; Calculate factorial of a | |
; number ranging from 1 - 8, | |
; depending on desired value |
It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.
I've also compiled a list of countries
This list served quite some people but someone else did a better job since.
Go to https://github.com/umpirsky/country-list for a list in your language and format.
I've also compiled a list of nationalities
=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') |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: unicorn | |
# Required-Start: $local_fs $remote_fs mysql | |
# Required-Stop: $local_fs $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: unicorn initscript | |
# Description: Unicorn is an HTTP server for Rack application | |
### END INIT INFO |
#!/usr/bin/env ruby | |
# Import terrestrial transmitter data into an SQLite database for use in | |
# Antenna Mate (http://antennamate.com). | |
# | |
# Supported Regions: | |
# Australia - http://www.acma.gov.au/scripts/nc.dll?WEB/STANDARD/1001/pc=PC_9150 | |
# United States - http://www.fcc.gov/mb/video/tvq.html | |
# | |
# Usage: |
sudo /usr/sbin/groupadd rvm
sudo /usr/sbin/usermod -a -G wheel,rvm USERNAME
sudo apt-get install build-essential git-core curl python-software-properties libsasl2-dev mailutils
sudo su -
\curl -L https://get.rvm.io | bash -s stable --ruby
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<script type="text/javascript"> | |
var nativeAtob = window.atob; | |
var nativeBtoa = window.btoa; | |
// http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#atob | |
(function (global) { | |
"use strict"; |
function __database_yml { | |
if [[ -f config/database.yml ]]; then | |
ruby -ryaml -rerb -e "puts YAML::load(ERB.new(IO.read('config/database.yml')).result)['${RAILS_ENV:-development}']['$1']" | |
fi | |
} | |
function psql | |
{ | |
if [[ "$(__database_yml adapter)" == 'postgresql' ]]; then | |
PGDATABASE="$(__database_yml database)" "$(/usr/bin/which psql)" "$@" |
ENV["RAILS_ENV"] ||= 'test' | |
cur_dir = File.expand_path(File.dirname(__FILE__) + '/..') | |
$LOAD_PATH << "#{cur_dir}" | |
if defined? Rails | |
# Most likely going with the full env | |
puts "Running faster_helper with full Rails env..." | |
# Eagerly load the Rails so that stubbed dependencies still work | |
# http://stackoverflow.com/questions/11133712/using-rails-model-that-is-already-declared |