This will use a Gemfile
as an example but could be done with different versioning systems.
Say your project uses the following:
source 'https://rubygems.org' do
gem 'nokogiri'
gem 'rails', '5.0.0'
There are many articles and discussion threads on the web regarding the nature of Object-oriented (OO) programming. Most of them come at the question from a Programming Language Theory (PLT) perspective, attempting to assert a formal definition of OO programming and objects. I'm not going to do that here. Instead, I'm going to write about objects from an implementation perspective, approaching the subject first from below and then from above.
drefile: an automatic, chronological file organizer | |
--------------------------------------------------- | |
Every few minutes drefile copies all files on your Desktop to a folder | |
such as ~/Documents/2009-06-June/26-Friday, prepending a timestamp | |
(like 20090626.1310) to the filename. | |
Use | |
--- | |
1. Put files on your Desktop, and in a few minutes they will be 'drefiled' | |
2. Use the 'Today' alias on your Desktop to go to today's folder |
Deploying a Rails App with EC2 + S3 + Ubuntu | |
============================================ | |
Create EC2 Instance | |
------------------- | |
create new instance ami-bf5eb9d6 [http://alestic.com/](http://alestic.com/) | |
create new elastic ip | |
attach elastic ip to instance | |
point dns to elastic ip |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title>Sliding Frames</title> | |
<meta name="warning" content="HC SVNT DRACONES" /> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.6.0/build/reset/reset-min.css" /> | |
<style type="text/css"> | |
div#container { overflow: hidden; visibility: hidden; } | |
div#navigation { position: absolute; top: 10px; left: 10px; } |
def conditional_block(do_block, method, *args, &block) | |
do_block ? send(method, args, &block) : block.call | |
end |