Skip to content

Instantly share code, notes, and snippets.

@AlvarezAriel
AlvarezAriel / readme.txt
Created March 2, 2020 16:04
Ludover (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@AlvarezAriel
AlvarezAriel / readme.txt
Created March 2, 2020 15:58
Ludover (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
#!/usr/bin/python2.7
#
# Dahua backdoor Generation 2 and 3
# Author: bashis <mcw noemail eu> March 2017
#
# Credentials: No credentials needed (Anonymous)
#Jacked from git history
#
import string
@AlvarezAriel
AlvarezAriel / mvp_protocol_oriented.swift
Created August 18, 2018 00:07
An attempt to a protocol-oriented MVP implementation in Swift
import Foundation
protocol BaseController {
associatedtype SomePresenter : BasePresenter
func getPresenter() -> SomePresenter
func doFromBaseController()
}
@AlvarezAriel
AlvarezAriel / ayudita.scala
Created November 29, 2017 19:51
Implementación naive del punto 1. No sirve para otros puntos porque, por ejemplo, no admite más de una subscripción a la vez. Es sólo para que sepan por dónde empezar si están trabados.
package ayudita
object ObservableFactory {
def create[T](f:(MySubscriber[T])=>Unit): MyObservable[T] = {
new MyObservable[T](f)
}
}
class MyObservable[T](val act:(MySubscriber[T])=>Unit) {
def subscribe(subscriber:MySubscriber[T]) {
package ar.edu.unq.obj3.ejercicio
trait ConNombre {
def nombre:String
}
case class Humano(nombre:String, altura:Int)
extends ConNombre
case class SuperHeroe(identidad:ConNombre, disfraz: Disfraz)
package ar.edu.unq.obj3.ejercicio
trait ConNombre {
def nombre:String
}
class Humano(val nombre:String, val altura:Int) extends ConNombre
class SuperHeroe(val identidad:ConNombre, val disfraz: Disfraz)
@AlvarezAriel
AlvarezAriel / cck.js
Last active July 4, 2017 18:42
Scrap CCK events
var Xray = require('x-ray');
var x = Xray();
x('http://www.cck.gob.ar/calendario/musica_100', '.event-hour', [ { place: 'span', artist: 'a' } ])(function(err, events) {
console.log(events);
});
@AlvarezAriel
AlvarezAriel / example_market_link.md
Last active September 27, 2016 18:12
example_market_link.md
{
"type":"root",
"children":[
{
"type":"block",
"concept":"Program",
"children":[
{
"type":"identifier",
"concept":"ProcedureCall",