Skip to content

Instantly share code, notes, and snippets.

/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain) */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
// --------------------------------------------------
// Flexbox LESS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
// flex or inline-flex
.flex-display(@display: flex) {
display: ~"-webkit-@{display}";
display: ~"-moz-@{display}";
/*
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}

Grandma

Write a Deaf Grandma program.

Whatever you say to grandma (whatever you type in), she should respond with

HUH?! SPEAK UP, SONNY!

unless you shout it (type in all capitals).

SECOND PROJECT DESCRIPTION

For the second project you will use your knowledge of front and back-end web development to produce an awesome web application that can be used by friends, family or others online. The type of web application you create is your choice: utilities, social networks, games, mashups, etc. Ensure however that the scope of your project is not too large so that you can reasonably complete a MVP in this time.

The objective of this project is to:

  • Get experience collaborating and working in a development team.
  • To gain experience integrating topics covered during this course thus far.
  • Showcase your abilities to potential employers, friends, family, and community members.

You will be working in groups of 2 for this project.

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods

PAPER - work out what form all of your data will take- tables and field names

TERMINAL - rails new NAME -d postgresql

TERMINAL - cd into that NAME folder and subl .

SUBL - open your gemfile and add all the extra gems you want

TERMINAL - bundle

Current as at 18-MAR-2014

#Rails Notes


###HTTP Requests###

Contains… GET

  • domain

Current as at 18-MAR-2014

###HTTP Requests###

Contains… GET

  • domain
  • path

###Controller

##DEPLOYING TO HEROKU
#Create an account on Heroku
https://www.heroku.com
#Download Heroku Toolbelt (a client for generating and creating heroku apps);
https://toolbelt.heroku.com/
heroku login #in the command line #It should generate SSH keys (we may have to do this manually);
#Gem list and check that you have the gem bundler; (You can do gem list | grep bundler);
#If you do not have it then install it:
gem install bundler #We have already done this;