title |
---|
Preparatorio - Juego |
Ahora que has tenido alguna práctica con Ruby, vamos a seguir practicando usando nuestro editor y terminal juntos.
Update and install required packages:
$ apt-get update -y
$ apt-get install -y g++ gcc make libc6-dev patch openssl ca-certificates libreadline6 libreadline6-dev curl zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev
Install ruby-build
$ git clone git://github.com/sstephenson/ruby-build.git /tmp/ruby-build
$ cd /tmp/ruby-build/
$ ./install.sh
class Subject | |
def initialize | |
end | |
def notify | |
end | |
end |
attachments: parent_id, asset_id | |
domain_names: organisation_id | |
event_memberships: user_id, event_id | |
events: editor_id | |
group_actions: user_id, group_id | |
groups: user_id | |
icons: parent_id | |
invitations: sender_id | |
legacy_actions: item_upon_id | |
news_items: author_id |
def authenticate_user | |
@current_user = User.find_by_authentication_token(params[:token]) | |
unless @current_user | |
respond_with({ error: 'Token is invalid.' }) | |
end | |
end |
@Override | |
protected JSONObject doInBackground(String... urls) { | |
DefaultHttpClient client = new DefaultHttpClient(); | |
HttpPost post = new HttpPost(urls[0]); | |
JSONObject holder = new JSONObject(); | |
JSONObject userObj = new JSONObject(); | |
String response = null; | |
JSONObject json = new JSONObject(); | |
try { |
package com.apptegy.arkadelphia.questions; | |
import android.app.ProgressDialog; | |
import android.graphics.Typeface; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.ArrayAdapter; | |
import android.widget.Button; |
git checkout -b feature && git push -u | |
git commit -am "$COMMIT_MESSAGE" | |
git add $FILES_TO_ADD | |
git commit -m "$COMMIT_MESSAGE" | |
git add -p $PATH_TO_FILE | |
git diff master feature |
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
de | |
la | |
que | |
el | |
en | |
y | |
a | |
los | |
del | |
se |