Skip to content

Instantly share code, notes, and snippets.

@bridgpal
bridgpal / frontend-programming-design-resources.md
Created December 8, 2015 02:57 — forked from DrummerHead/frontend-programming-design-resources.md
List of Front-end, programming & design resources

Here is the Student Asessment

Mission Brief

Morning 007s.

Your mission, should you choose to accept it, is to identify and eliminate the hacker who breached our secure data centers.

# -*- encoding : utf-8 -*-
# config/deploy.rb
require 'capistrano/ext/multistage'
require "rvm/capistrano"
require 'bundler/capistrano' #Using bundler with Capistrano
require 'cape'
set :stages, %w(staging production)
set :default_stage, "production"

#Objective

###What are Blocks, Procs and Lambda?

  • Explain the differences between them
  • Ability to perform an action on each element of array using at least two methods

###Quick Review on Loops and Arrays

  • Loops
"use strict"
@ticTacToe = angular.module 'TicTacToe', []
ticTacToe.constant 'WIN_PATTERNS',
[
[0,1,2]
[3,4,5]
[6,7,8]
[0,3,6]
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
@bridgpal
bridgpal / index.md
Created October 22, 2013 04:13 — forked from rstacruz/index.md

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one

#Debugging (Use The Duck… )

Find the errors in the following

1.)

require "Rumoji" # See; https://github.com/mwunsch/rumoji
# Customize grid space and player icons as emoji charcters from: http://www.emoji-cheat-sheet.com/
require "Rainbow"
class Grid
attr_accessor :production_run, :player_x_moves, :player_o_moves
def initialize(production_run, player_x_moves, player_o_moves)
@is_debug_mode = false # set to true to invoke debugging statements if needed...
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = '[email protected]'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }