Skip to content

Instantly share code, notes, and snippets.

View beginner-workshop-part-2.md

Beginner Workshop | Part 2

1. Markup for contact page

Your contact.html page should now look like:

<!DOCTYPE html>
<html>
  <head>
    <title>Shaii Ong | Contact me</title>
View beginner-workshop-one.md

Beginner Workshop | Part 1

This workshop will cover the very basics of web development - HTML, CSS, and JavaScript. At the end of it, you will have a 2-page personal website.

Before the workshop

  1. Download Sublime text (or your text editor of choice)
  2. Find your favourite photo of your face (portrait)

Agenda

  1. Overview of what HTML, CSS and JS are and what they are used for
View ember-on-rails-tips
# When installing ember as the frontend for a rails app
# the ember new command automatically runs git init
ember new app-name --skip-git
View rails-setup-steps
cd Sites
git clone https://github.com/username/projectname
cd projectname
bundle install
duplicate database.yml.sample and rename to "database.yml"
rake db:create
bin/rake db:migrate RAILS_ENV=development
View learning-log
#This is a log of the things I'm learning
# Will derive blogging topics from here
1. Started the tutorial to use Ember.JS with Ruby on Rails
https://devmynd.com/blog/2014-7-rails-ember-js-with-the-ember-cli-redux-part-1-the-api-and-cms-with-ruby-on-rails/
2. Delving deeper into git in the terminal. Gitflow and feature branches
https://gist.github.com/joshuapekera/5763788
http://furzeface.com/blog/git-flow-aint-scary/
View node-npm-no-sudo
#installing node in a custom directory so you don't have to use sudo all the time
#npm now comes with node, so no need to individually install it
cd ~
mkdir local
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.zshrc
. ~/.zshrc
cd local
View anonymous_llama.rb
(1..100).each do |i|
puts i
if i % 3 == 0
puts 'Anonymous'
elsif i % 5 == 0
puts 'Llama'
end
end