Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am monsteronfire on github.
  • I am monsteronfire (https://keybase.io/monsteronfire) on keybase.
  • I have a public key ASDVOxQZhj9rRfxU6J_8ZbFw9ISS4lS-8CqGOvo6qHdXgQo

To claim this, I am signing this object:

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>

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
# When installing ember as the frontend for a rails app
# the ember new command automatically runs git init
ember new app-name --skip-git
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
#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/
@monsteronfire
monsteronfire / node-npm-no-sudo
Last active January 14, 2016 09:49
node-and-npm-no-sudo (reference: https://gist.github.com/isaacs/579814)
#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
(1..100).each do |i|
puts i
if i % 3 == 0
puts 'Anonymous'
elsif i % 5 == 0
puts 'Llama'
end
end