Blues by Five
https://www.youtube.com/watch?v=dxd7Pi3j5K8
https://www.youtube.com/watch?v=wHVxf2M20gQ
I Fall in Love
RAML API design | |
Monads and Ruby http://codon.com/refactoring-ruby-with-monads | |
Book: understanding computation, Tom Stuart | |
Seccasts screencasts: https://www.seccasts.com/mror/ | |
Elixir Sips: http://elixirsips.com/ | |
Coursera, Programming Languages: https://www.coursera.org/course/proglang | |
Codetriage.com | |
Docdoctor | |
Rblibeprof | |
http://www.procode.org/stgit/ stack git |
The interface will be a JSON API. Please follow http://jsonapi.org/ standard.
There are users, blog posts and comments. A user can own many blog posts, and a blog post can have many comments.
Users should be able to sign up, and log in.
POST /sign_up
will receive an email and password params and will create a new User. The email
param must be a valid email address and the password must be at least 8 chars long.
<?php | |
// Model | |
class Province | |
{ | |
public $name; | |
public $id; | |
public function __construct($name, $id) { | |
$this->name = $name; | |
$this->id = $id; |
/* | |
* Creates a new object that uses the old object as its prototype | |
* From: Javascript: the Good Parts | |
*/ | |
if (typeof Object.create !== 'function') { | |
Object.create = function (o) { | |
var F = function () {}; | |
F.prototype = o; | |
return new F(); | |
}; |
require "rubygems" | |
require "active_record" | |
#Change this to reflect your database settings | |
ActiveRecord::Base.establish_connection ( | |
:adapter => "mysql", | |
:host => "localhost", | |
:username => "root", | |
:password => "password", | |
:database => "some_database") |
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%n:%~$(git_prompt_info)%{$fg_bold[green]%}%# %{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |