(también conocido como "Claves para un code review exitoso" presentado en Ágiles 2017)
por Nahuel Garbezza (nahuel@10pines.com) Twitter/Github: @ngarbezza
Última revisión: Jun 2020
class Proc | |
def on(exception_class) | |
begin | |
self.call | |
rescue exception_class => e | |
yield e | |
end | |
end | |
end |
"Close a window by title programatically - Pharo 1.4, 2.0" | |
(SystemWindow allInstances detect: [ :w | w label = '<title>' ] ifNone: [ ^ nil ]) delete |
/* | |
Vumetro para Matriz 8x8 de LEDs RGB. | |
Codigo basado en: | |
* Visualizacion de la matriz: http://www.instructables.com/id/64-pixel-RGB-LED-Display-Another-Arduino-Clone/ | |
* Manejo de la entrada de audio: http://neuroelec.com/2011/03/fft-library-for-arduino/ | |
*/ | |
#include <stdint.h> | |
#include <ffft.h> |
#!/usr/bin/env python | |
import datetime, os | |
START_DATE = datetime.date(2008, 6, 28) | |
BASE_URL = "http://static.macanudo.com.ar/macanudo_pics/" | |
current_date = START_DATE | |
while current_date <= datetime.date.today(): | |
file_to_download = current_date.strftime("%Y%m%d") + ".jpg" |
[Desktop Entry] | |
Version=1.0 | |
Terminal=false | |
Type=Application | |
Name=Gtasks | |
Exec=/usr/bin/chromium --app=https://mail.google.com/tasks/canvas?pli=1 | |
Icon=chrome |
class Fixnum | |
def prime? | |
self > 1 && (2..self-1).all? { |i| self % i != 0 } | |
end | |
def divisible_by?(a_divisor) | |
self % a_divisor == 0 | |
end |
if ENV['RM_INFO'] | |
gem 'debase' | |
gem 'ruby-debug-ide' | |
end |
# This file configures the New Relic Agent. New Relic monitors | |
# Java applications with deep visibility and low overhead. For more details and additional | |
# configuration options visit https://docs.newrelic.com/docs/java/java-agent-configuration. | |
# | |
# This section is for settings common to all environments. | |
# Do not add anything above this next line. | |
common: &default_settings | |
# ============================== LICENSE KEY =============================== | |
# You must specify the license key associated with your New Relic |
(también conocido como "Claves para un code review exitoso" presentado en Ágiles 2017)
por Nahuel Garbezza (nahuel@10pines.com) Twitter/Github: @ngarbezza
Última revisión: Jun 2020
var x = 3; // antigua declaracion de variables, pueden ser reasignadas | |
let y = 4; // actual declaracion de variables que pueden ser reasignadas | |
const z = 5; // actual declaracion de variables que NO pueden ser reasignadas | |
const string = `x es ${x}, y es ${y}, z es ${z}`; // los strings se pueden interpolar | |
// acceder al "parent" de un objeto | |
var lista = ['unas', 'cuantas', 'cosas']; | |
lista.__proto__; // prototipo de Array | |
lista.__proto__.__proto__; // prototipo de Object |