- Make sure your device is charged before you go up to present.
- Share the mission statement of your project before you get into the demo. Why did you come up with this idea? Make it engaging.
- As you're presenting, don't highlight any faults of your application or things left unfinished.
- Don't read directly from your slides or notes.
- Don't have huge blocks of text on your slides. Bullet points are better than paragraphs of text.
- Close all other apps and tabs except the ones you plan to use.
- Test your app with CMD +/-. They can greatly effect the look of your app. You do not want to do this for the first time during the demo!
- Remember, your browser doesn't need to be full screen, and will probably look best if it isn't. Clean your desktop up and use a plain color background. Change your Mac desktop navbar to disappear until you hover over it. This will give you a nice clean desktop to use with a smaller browser window sized to what looks best for your app.
require 'net/ftp' | |
CONTENT_SERVER_DOMAIN_NAME = "one-of-the-ftp-server.thought-sauce.com.hk" | |
CONTENT_SERVER_FTP_LOGIN = "saucy-ftp-server-login" | |
CONTENT_SERVER_FTP_PASSWORD = "saucy-ftp-server-password" | |
# LOGIN and LIST available files at default home directory | |
Net::FTP.open(ENV['CONTENT_SERVER_DOMAIN_NAME'], ENV['CONTENT_SERVER_FTP_LOGIN'], ENV['CONTENT_SERVER_FTP_PASSWORD']) do |ftp| | |
ftp.login |
jQuery(function ($) { | |
var show_error, stripeResponseHandler; | |
$(function() { | |
var $form = $('#new_chapter_payment'); | |
$form.submit(function(event) { | |
// Disable the submit button to prevent repeated clicks: | |
$form.find('.submit').prop('disabled', true); | |
$form.find('.submit').prop('value', 'Submitting Payment...'); | |
// Request a token from Stripe: |
To get into Ruby on Rails web development, there are some tools and basic skills you will need.
The Mac, in my opinion, is the preferred platform of choice for Ruby on Rails developers. If you attend any Ruby conference you will see the majority of attendees use a Mac, probably around 90%. The others will be primarily Linux users. There may be some scattered Windows users, but the Windows platform is not an easy one to use as a Ruby developer.
The Mac operating system runs on top of Unix, which makes it an ideal system for Rails developers to use, since so much of the software we need is Unix based. It also provides a stable, rich UI platform for some very helpful applications. Installation has been made very simple compared to other platforms.
namespace :json do | |
desc "Export all data to JSON files" | |
task :export => :environment do | |
Rails.application.eager_load! | |
ActiveRecord::Base.descendants.each do |model| | |
file = File.open(File.join(Rails.root, "db", "export", "#{model.table_name}.json"), 'w') | |
file.write model.all.to_json | |
file.close | |
end |
DEFINE PROCEDURE: "TWO-TO-THE-THREE-TO-THE" [N]: | |
BLOCK 0: BEGIN | |
CELL(0) <= 1; | |
LOOP N TIMES: | |
BLOCK 1: BEGIN | |
CELL(0) <= 3 X CELL(0); | |
BLOCK 1: END; | |
CELL(1) <= 1; | |
<%- # Show all flash messages in one place -%> | |
<% if flash.present? %> | |
<div id="myModal" class="reveal-modal"> | |
<%- flash.each do |key, value| -%> | |
<div class="<%= key %>_flash"><%= raw value %></div> | |
<%- end -%> | |
<a class="close-reveal-modal">×</a> | |
</div> | |
<% end %> |
</li> | |
<li> | |
<span>Taxes and Fees</span> | |
<span class="infoIcn" data-toggle="tooltip" data-html="true" title="Spot Price: $4310.00<br>Processing: $<%%=total_p_fee.toFixed(2)%><br>Cancellation Protection: $<%%= total_p_fee.toFixed(2) %><br>Sales Tax: $241.36"> | |
<span class="glyphicon glyphicon-info-sign"></span> | |
</span> | |
<!--add class editInputBox to show input--> | |
<span class="price processing_fee_block"> | |
<input type="text" name="order[total_processing_fee]" value="<%%= total_p_fee.toFixed(2) %>"> | |
<span>$ <span class="value"><%%= total_p_fee.toFixed(2) %></span></span> |
#!/usr/bin/env ruby | |
# Input: WordPress XML export file. | |
# Outputs: a series of Markdown files ready to be included in a Jekyll site, | |
# and comments.yml which contains all approved comments with metadata which | |
# can be used for a Disqus import. | |
# Changes from the original gist: http://gist.github.com/268428 | |
# 1. Handles titles containing special characters. Those have to be YAML escaped | |
# 2. Use the original permalinks in wordpress. |