Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
https://github.com/rails-api/active_model_serializers
-- show running queries (pre 9.2) | |
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(query_start, clock_timestamp()), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
require 'date' | |
feriados = [ | |
Date.new(2016,1,1), | |
Date.new(2016,2,8), | |
Date.new(2016,2,9), | |
Date.new(2016,3,24), | |
Date.new(2016,3,25), | |
Date.new(2016,4,2), | |
Date.new(2016,5,1), |
¿Qué es git? ¿Cuáles son sus características principales?
¿Para qué se utilizan los branch en git? Proporcione un ejemplo práctico y las instrucciones necesarias para hacerlo explicando cada una de ellas.
¿Qué es la Programación Orientada a Objetos? Explíquelo con sus palabras, y contrástelo con la programación estructurada.
Enumere y describa al menos cuatro conceptos relacionados a la programación orientada a objetos. Relaciónelos en una sola frase.
# encoding: utf-8 | |
require 'mechanize' | |
require 'csv' | |
START_URL = 'http://www.youtube.com/playlist?list=PLkuS0waF8krjwcRHzSJMq_nA67mCFi24T' | |
STDOUT.sync = true | |
agent = Mechanize.new | |
page = agent.get START_URL | |
class Punto { | |
private double x; | |
private double y; | |
Punto(double x, double y) { | |
this.x = x; | |
this.y = y; | |
} | |
double getX() { |
package ar.edu.unlam.tallerweb; | |
public class Adivinanza { | |
private Integer numero; | |
public Adivinanza(Integer numero) { | |
this.numero = numero; | |
} | |
package ar.edu.untref.lp1; | |
public class DiasLluviosos { | |
private int[] lluviasDiarias = new int[30]; | |
public void setLluviaDiaria(int dia, int lluviaDiaria) { | |
if (dia < 1 || dia > 30 ) { | |
throw new Error("El mes tiene entre 1 y 30 días"); | |
} | |
this.lluviasDiarias[dia - 1] = lluviaDiaria; |