Skip to content

Instantly share code, notes, and snippets.

View aikalima's full-sized avatar

Markus Guehrs aikalima

View GitHub Profile
**How to open Sublime from the command line**
1. Verify that `Sublime Text 2` is installed in your `Applications` folder
2. Launch Sublime from the GUI and open the file `.bash_profile` OR `.zshrc` in your HOME directory.
3. Copy/Paste this line to .bash_profile:
```
alias subl='/Applications/Sublime\ Text\ 2.app/Contents/MacOS/Sublime\ Text\ 2 $1'
```
```
require 'sinatra'
require 'sinatra/reloader'
require 'json'
require 'sqlite3'
before do
@db = SQLite3::Database.new './store.sqlite3'
end

Week 4, day 3 cook book app code along

Here's how to get a fully functioning version up and running on your box:

> git clone https://github.com/aikalima/wdi_cook_book
> cd wdi_cook_book 
> rake db:migrate
> rake db:seed
> rails s
@aikalima
aikalima / gist:6117094
Last active December 20, 2015 10:39
Action Mailer Lab

Action Mailer Lab / Homework

Implement reset password feature in cook book app (or hacker news clone)

Prerequisite:

  • Welcome email feature works
  • Action Mailer is configured properly, check config/environments/development.rb
config.action_mailer.raise_delivery_errors = true
@aikalima
aikalima / gist:6123209
Last active December 20, 2015 11:28
Goals 07/31

Goals for today

  • Understanding web requests (review)
  • Understanding difference between ajax and 'normal' web requests
  • Understanding when to use ajax
  • Review how we used ajax in previous apps
  • Learn ajax in Rails 3
  • Learn how to integrate ajax/Rails 3
  • Field trip: See how an Internet company works
  • Learn how email works (SMTP, POP, IMAP ..)

git cheat sheet for WDI group projects

Once:

  • Create git repository, invite collaborators
  • Someone commits initial version, everyone else clones it

Day to day:

  • git checkout -b my_branch

Goals 08/13

  • Learn how to build a server side app in Javascript
  • Introduce NodeJs
  • Understanding Objects in JavaScript
  • Understanding synchronizing functions
  • Understanding JavaScript Namespaces
  • Introduce CoffeeScript
  • Practice CoffeeScript
@aikalima
aikalima / gist:6245953
Last active December 21, 2015 03:58
Angular Homework

Angular homework

First assignment:

Add 'delete' Entry function to Raffler app

Second assignment:

A short intro to git and github

Goals

  • Understanding git and github
  • Understanding the basics of managing files
  • Learn how to collaborate with others

Motivation

@aikalima
aikalima / gist:8295237
Last active January 2, 2016 11:18
WDI learning goals 01/07/2014

##Goals 01/07/2014

###git and github

  • Understand the purpose of version control systems
  • Learn how to manage files/projects with git and github
  • Understand git branching
  • Understand how to collaborate with others

###ruby part II