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 / 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;
def capitalizar(cadena):
return cadena[0].upper() + cadena[1:]
@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
@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 / 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)
}
}