Skip to content

Instantly share code, notes, and snippets.

View agar3s's full-sized avatar

Gio agar3s

View GitHub Profile
@agar3s
agar3s / bugshow.json
Created December 1, 2021 21:17
the bug adventure show - testnet smart contract abi
[
{
"inputs": [
{
"internalType": "uint8[]",
"name": "_global_accessories",
"type": "uint8[]"
}
],
"stateMutability": "nonpayable",
@agar3s
agar3s / ParkingDemo.cpp
Last active November 6, 2021 22:30
El primer proyecto final para una materia de programación, un tarificador para parqueaderos con persistencia en Diskette.
#include<iostream.h>
#include<stdlib.h>
#include<fstream.h>
#include<time.h>
#include<string.h>
#include<stdio.h>
//estas son las clases:
/*
* Write a function:
*
* function solution(A);
*
* that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A.
*
* For example, given A = [1, 3, 6, 4, 1, 2], the function should return 5.
*
* Given A = [1, 2, 3], the function should return 4.
http://slides.com/agar3s/que-debes-saber-para-hacer-un-juego-con-javascript#/
capacidades canvas
http://codepen.io/agares/full/pJpoya/
capacidades webgl
http://webglsamples.org/dynamic-cubemap/dynamic-cubemap.html
capacidades dispositivos de entrada
http://codepen.io/agares/full/NPdKOB/
@agar3s
agar3s / generator.py
Last active December 9, 2016 20:53
This script creates a midi file using an image as the source of inspiration
#!/usr/bin/python
import sys
import Image
from midiutil.MidiGenerator import MidiGenerator
from midiutil.TrackGen import LoopingArray
filename = sys.argv[1]
midifilename = filename[0:filename.find('.')]+'.midi'
@agar3s
agar3s / propuestas.md
Last active February 12, 2016 20:53
Propuestas de charlas para el próximo meetup de Bogotajs

Propuesta #1 - Introducción a Service Worker

En esta charla se mostrará acerca del manejo de Service Workers, algunas de sus características y usos, como por ejemplo la posibilidad de creación de experiencias sin conexión (offline) que funcionan en su totalidad. Para tal caso se mostrará ejemplos de juegos realizados con tecnologías web (HTML5, CSS3 Javascript/Canvas) y que hacen uso de Service Worker para entregar una jugabilidad sin la necesidad de conexión.

Propuesta #2 - NativeScript & Angularjs

Imagina te hacer aplicaciones nativas desde JavaScript! Y ahora aplica todo el poder de AngularJS!

Propuesta #3 - Técnicas de broadcast usando socket.io

Explicar las diferentes maneras en las que podemos hacer emisión de mensajes a los usuarios dependiendo de los casos de uso usando Socket.io

@agar3s
agar3s / BubbleSort
Created December 6, 2013 04:27
Una corta explicación de bubbleSort para ordenamiento de arreglos. http://youtu.be/v5kLxVtYF9k
function ordenar(numeros){
for(var i=0; i<numeros.length; i++){
numeros[i] = parseInt(numeros[i]);
}
for(i=0; i<numeros.length; i++){
for(var j=0; j<numeros.length-1; j++){
if(numeros[j] > numeros[j+1]){
var tmp = numeros[j+1];
numeros[j+1] = numeros[j];
@agar3s
agar3s / A-Pen-by-Giovanny.markdown
Created October 7, 2013 02:25
A Pen by Giovanny.
@agar3s
agar3s / Akari.markdown
Created September 23, 2013 19:36
A Pen by Giovanny.

Akari

Akari is a puzzle game, you need to put the lights in the free cells to light all the room. rules are simple: a numbered cell means you must to put that number of lights just side to that cell.

A Pen by Giovanny on CodePen.

License.

@agar3s
agar3s / index.html
Created August 12, 2013 17:47
A CodePen by Giovanny. Chess Board - Week 7 Game - This is the first approach to create the board and the ui. To know more about this project: http://aweeklyproject.tumblr.com/tagged/week-7
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>The Game</title>
</head>
<body>
<canvas id="board" width='700' height='600'></canvas>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script>