Skip to content

Instantly share code, notes, and snippets.

@GA-MEB
GA-MEB / announcement.md
Last active May 11, 2018 18:55
ATTN : `ga-students` Shutting Down on 5/21

Hello, everyone. As you may have seen on the main page of ga-students, General Assembly is moving from GitHub.com to a private GitHub Enterprise cloud, and as part of that move, we will be totally shutting down the ga-students GitHub organization on May 21 at midnight UTC.

What does "shutting down" mean? It means that all repositories in the ga-students organization will be deleted off of GitHub.com, and as a result, any forks of private repos from ga-students will automatically disappear.

The repos on ga-students will not be totally gone -- they're being migrated to GA's private servers -- but should any issues arise with our migration process, we would hate for any of you to lose access to your course materials.

For this reason, we strongly suggest that each user of ga-students clone/download materials that they'd like to preserve to their local machines before 5/21. Instructions on how to clone or download a repository can be found [here](https://docs.google.com/pres

Lesson : Scope and Closures in Javascript

Prerequisites

  • Pass by reference/value
  • Functions

Learning Objectives

  • Determine the value of a given variable using knowledge of functional scope.
@GA-MEB
GA-MEB / python_setup.md
Last active July 4, 2016 04:01
Python Setup
  1. brew install pyenv
  2. Open ~/.bashrc (or .bash_profile, on Linux) and add the following between the stuff for Rbenv and Git:
# Pyenv
export PYENV_ROOT=/usr/local/var/pyenv
eval "$(pyenv init -)"
  1. pyenv install 3.5.1 (or other version)

Deploying Ember Apps based on the Ember Template to Github Pages

  1. Make sure that everything is named consistently (i.e. ember-template -> ember-deployment-example)
  2. If you haven't already, run npm install and bower install
  3. Update config/environment.js as follows:
if (environment === 'production') {
  ENV.baseURL = '/ember-deployment-example/';
ENV.locationType = 'hash';
@GA-MEB
GA-MEB / project01.md
Last active August 29, 2015 14:23
Project 1

Project #1: The Game

Overview

In our first project, let's start out with something fun - a game! Specifically, We'll be making Tic Tac Toe, a game that takes seconds to learn but minutes to master!

By the time you submit this project, you will have covered new ground in many of the big themes of the course:

  • Command Line: Interacting with the computer and navigating the filesystem from the command line.
  • Source Control: Managing and interacting with a git repository to store changes to code.
  • Programming Fundamentals: Working with objects, constructors, and events, while learning how to strategically solve problems and resolve errors.

Project #3: Building Your Own API

Overview

Project 2 had you working with Ruby, SQL, and Rails to build a full-stack application that was bound together through an API. For Project 3, you'll be working in teams to build one of several exciting projects; for each of these projects, you'll be creating a back-end API that's built in Express and uses a combination of SQL (Postgres) and NOSQL (MongoDB) databases through, respectively, the Sequelize and Mongoose ORMs.

This project is meant to push you both technically and collaboratively. In many ways, it’s a lot harder to work in a team than to work by yourself, but that's most likely what you’re going to find yourself doing in your first development job after WDI, and it's important to learn how to work together.

At a high level, here's what we're looking for with this project, irre

General Assembly Logo

This is a quick and dirty way of implementing CORS in a Rails app. DO NOT DO THIS IN A PROFESSIONAL SETTING

  1. Go to app/controllers/application_controller.rb and comment out the protect_from_forgery line.
  2. Go to your Gemfile and add the following line to the bottom : gem 'rack-cors', :require => 'rack/cors'
  3. Run bundle
  4. Go to config/application.rb and add the following code to the bottom of the Application class definition:
@GA-MEB
GA-MEB / project02.md
Last active August 29, 2015 14:21
WDI BOS-07 :: Project 2 Description

Project #2: Building Your First Full-Stack Application

OVERVIEW

This second project will be your first foray into building a full-stack application. You'll be building your first real back-end app, with a front-end to match, which means you'll learn about what it takes to build an API & use it.

At a high level, here are our goals for you in this project:

  • Build a single-page application (SPA) with basic user authentication that interacts with a custom API that you build
  • Build an app that can create, read, update, and delete data in a SQL database
  • Learn to create user stories and wireframes (before writing code) as part of planning out your app.
@GA-MEB
GA-MEB / gist:bd37be900a84855d236f
Last active August 29, 2015 14:02
Boston Installfest

Before you come in...

OS X