Skip to content

Instantly share code, notes, and snippets.

# You must use processing 3 if you want to run this example as it is
# This example finds the largest surrounding square in 2D grid.
# I think is easily optimizable from this point.
# Octavio Ruiz @ Phesus '19
class Cell(object):
x, y, type = 0, 0, 0
def __init__(self, x, y, type):
self.x = x
self.y = y
@ZooMMX
ZooMMX / vendedores.c
Last active December 4, 2015 14:36
ProductoIntegrador
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include<string.h>
#define LIMITE_PRODUCTOS 10
#define LIMITE_VENTAS 10
#define LIMITE_VENDEDORES 10
// UDGVirtual
@ZooMMX
ZooMMX / artistas.c
Created November 26, 2015 22:20
Práctica de lista ligada, hace altas, bajas, consultas y modificaciones de cantantes y discos Raw
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include<string.h>
// UDGVirtual
// Lista de cantantes - Actividad Integradora Unidad 3
// Octavio Ruiz - 16 de Noviembre de 2015
//Defino la estructura interna que contendrá información de un disco
@ZooMMX
ZooMMX / gist:a82040f7b97f534ca87f
Created February 13, 2015 20:56
Snippet, sending invoiceTable
$('#invoiceTable').invoiceTable({salestax:16});
$('#btn-print').on('click', function(){
$.ajax({
type: "POST",
url: "/quotes/print",
data: $('#formi').serialize()
})
.done(function(data) {
alert('Invoice Submitted!');
@ZooMMX
ZooMMX / MyJDBCHelper.java
Created August 22, 2011 17:04
JDBC MySQL Simplefied Connector
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Just for tests or very simple non-important utilities. Just for be clear, not intended for production.
* Author: Octavio Ruiz
* Date: 20 Ago 11
*/
public class MyJDBCHelper {