Skip to content

Instantly share code, notes, and snippets.

bash <(curl -fsSL https://gist.githubusercontent.com/danpariente/b7367ad2b37ccea250200829f39bc0ad/raw/install_pinwidoro.sh)
  1. Abres la Terminal (Cmd+Espacio, escribe "Terminal")
  2. Pegas ese comando
  3. Presionas Enter
  4. Espere a que se instale
#!/bin/bash
# Pinwidoro Installer - One-command install for macOS
# Run with: curl -fsSL <url> | bash
# Or: bash install_pinwidoro.sh
set -e
echo "🐧 Installing Pinwidoro - Pomodoro Timer with Penguins!"
echo "========================================================"
echo ""
title
Preparatorio - Juego

Crea un Juego!

Ahora que has tenido alguna práctica con Ruby, vamos a seguir practicando usando nuestro editor y terminal juntos.

Preparacion

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

@danpariente
danpariente / observer.rb
Last active August 29, 2015 14:07
Observer Pattern
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
@danpariente
danpariente / gist:8153048
Created December 27, 2013 21:43
token authentication
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;
@danpariente
danpariente / git_flow
Last active December 11, 2015 18:38
My Git Flow
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