Skip to content

Instantly share code, notes, and snippets.

View lucasp90's full-sized avatar

Lucas lucasp90

  • Buenos Aires, Argentina
View GitHub Profile
@lucasp90
lucasp90 / Configurations.swift
Created September 12, 2016 14:27
TableViewController configuration example
struct PokemonTableViewConfiguration {
var items: [Pokemon]
var configuration: TableViewConfiguration<Pokemon, PokemonTableViewCell> {
return TableViewConfiguration<Pokemon, PokemonTableViewCell>(title: "Pokemons", items: items, style: .Plain, estimatedRowHeight: 160.0, cellSpacingStyle: .WithSpacing(size: 8), selectableRows: false) { (cell, item) -> Void in
cell.lblName = item.name
cell.lblHitPoints = item.hitPoints
let btnCatch = UIButton(frame: CGRectZero)
btnCatch.addTarget(nil, action: #selector(<something_here>), forControlEvents: .UITouchUpInside)
}
}
@lucasp90
lucasp90 / writer_ejemplo.py
Created October 15, 2016 18:20
Ejemplo sencillo del uso de csv.writer
import csv
cuentas_twitter = [("@YouTube", 64341900, 17755), ("@KingJames", 33284155, 5096), ("@rushtheband", 224345100, 1329)]
with open('notas.csv', 'w') as arch_salida:
writer = csv.writer(arch_salida)
writer.writerow(['alias', 'seguidores', 'tweets'])
for cuenta in cuentas_twitter:
alias = cuenta[0]
seguidores = cuenta[1]
tweets = cuenta[2]
@lucasp90
lucasp90 / nodeconfAR2016.md
Created December 12, 2016 20:40
NodeConf AR 2016

NodeConf AR 2016

Día 1

Instalaciones Interactivas - Hugh Kennedy [@hughskennedy]

Node puede servir de "glue" para diversos inputs y outputs:

  • Robtótica: [nodebots]
  • Audio
    • [web-audio-analyser]: Analiza audio en tiempo real (por ejemplo, desde un micrófono)
  • [lopp-drop-app]: MIDI looper, modular synth and sampler app
def capitalizar(cadena):
return cadena[0].upper() + cadena[1:]
@lucasp90
lucasp90 / apuntes.md
Created April 18, 2017 23:23
apuntes-clase-6.md

Taller de Programación I - Clase 6

Clases (parte 2)

class A {
private:
  int pri;
protected:
 int pro;
@lucasp90
lucasp90 / meetup-go.md
Created June 5, 2017 04:34
Meetup #6 GolangAR

Meetup Go

  • golangar.com.ar
  • golangweekly

Code that grows with grace: Chat a la chatroulette en Go

  • Francesc Campoy (Google SF)
    • JustForFunc (Youtube)
  • gcppodcast.com
@lucasp90
lucasp90 / netconfar-17.md
Created July 2, 2017 05:17
NET Conf AR 2017

NETConfAR2017

Going Pixel Perfect with Xamarin and MVVMCross

Nicolas Milcoff (@nmilcoff) - DGenix

Slides

Problemas en desarrollo mobile actual

@lucasp90
lucasp90 / selenium.md
Last active July 7, 2017 01:30
Notes about selenium webdriver

Intro to Web Automation using Selenium Webdriver

Black-box Automated Testing

  • Tests software from the user's perspective
  • Makes regression easy
  • Should represent exactly a specific business requirement
  • Tests a lot of production code with fewer lines of testing code

Automation types

@lucasp90
lucasp90 / 7540rw-20172c-clase2.ipynb
Created August 19, 2017 01:10
[Alan] 7540rw clase 2 - 18.08.2017
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lucasp90
lucasp90 / pycon-1.md
Last active August 29, 2018 17:24
PyConAr 2017

PyConAr 2017 - Día 1

El fin está cerca

Hernan Lozano Cima - @hernantz

Material adicional

Uno de los mayores problemas que se suele tener con cualquier lenguaje de programación es manejar fechas. Esto no necesariamente es un problema del lenguaje (aunque a veces sí, como en JS hasta que salió moment).