Skip to content

Instantly share code, notes, and snippets.

View danirod's full-sized avatar
馃幆
I may be slow to respond.

Dani Rodr铆guez danirod

馃幆
I may be slow to respond.
View GitHub Profile
@danirod
danirod / imagen.h
Created September 24, 2013 22:07
imagen.h
#ifndef _IMAGEN_H_
#define _IMAGEN_H_
#include <SDL2/SDL.h>
class Imagen
{
public:
Imagen(SDL_Renderer* renderer, const char* ruta);
~Imagen();
@danirod
danirod / struct_static.c
Created September 21, 2013 21:54
ejemplo structs memoria est谩tica
#include <stdio.h>
#include <stdlib.h>
/* Estructura de un producto */
typedef struct {
int codigo_producto; /* c贸digo del producto */
char descripcion[20]; /* descripci贸n del producto */
float precio_unitario; /* precio del producto sin IVA */
} t_producto;
@danirod
danirod / hello_sdl.cpp
Created September 7, 2013 17:28
C贸digo fuente de muestra usado en el episodio 02 de la serie Desarrollo de juegos con SDL2.
#include <SDL2/SDL.h>
int main(int argc, char** argv)
{
SDL_Init(SDL_INIT_EVERYTHING);
SDL_Quit();
return 0;
}
@danirod
danirod / gdbk_helloworld.c
Created August 17, 2013 16:50
Jugando un poco con el GBDK. No me hago responsable de lo que puedas hacer con esto. Necesitas tener instalado el GDBK (Game Boy Developer Kit) - http://gdbk.sourceforge.net
// Jugando un poco con el GBDK.
// Autor: Dani Rodr铆guez [t:@danirod93]
// No me hago responsable de lo que puedas hacer con esto.
// Necesitas tener instalado el GDBK (Game Boy Developer Kit)
// http://gdbk.sourceforge.net
#include <gb/gb.h>
#include <rand.h>
#include <stdio.h>
package danirod.snippet.test.slick2d.rrtest;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.geom.Rectangle;
import org.newdawn.slick.geom.RoundedRectangle;
import org.newdawn.slick.geom.Shape;
@danirod
danirod / slick2d_sesion02.java
Created November 10, 2012 19:40
C贸digo fuente visto en el episodio correspondiente de Slick2D
/*
* Este c贸digo fuente acompa帽a al episodio
* Desarrollando un juego en Slick2D - 2. Instalando y programando.
* La direcci贸n del v铆deo es http://www.youtube.com/watch?v=qSx4hp47dag.
* Para material adicional, visita http://tutos.danirod.tk/qSx4hp47dag.
*
* 漏 2012 Dani Rodr铆guez <[email protected]>
* Se permite el uso y la distribuci贸n de este c贸digo fuente de forma
* total o parcial siempre que se mantenga y se indique la autor铆a
* original del c贸digo fuente y que se incluya este mensaje de
@danirod
danirod / Sample HTML Code.html
Created September 11, 2012 18:10
Some sample HTML code I found on the Internet. I don't know which page did I took this from, but as I often need this snippet, maybe it's a good idea to save it somewhere.
<!-- Sample Content to Plugin to Template -->
<p>The purpose of this HTML is to help determine what default settings are with CSS and to make sure that all possible HTML Elements are included in this HTML so as to not miss any possible Elements when designing a site.</p>
<hr />
<h1 id="headings">Headings</h1>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
@danirod
danirod / Sistema de bloqueo de componentes de terceros.php
Created September 7, 2012 17:30
C贸digo fuente del sistema de bloqueo de componentes de terceros usado en mi web
<?php
/*
* Sistema de bloqueo de componentes de terceros
* Copyright (C) 2012 Dani Rodr铆guez <[email protected]>
*
* Este c贸digo fuente proporciona de manera p煤blica TAL CUAL, sin garant铆as de
* ning煤n tipo. Este c贸digo fuente queda en dominio p煤blico. Se permite el
* acceso, uso y reutilizaci贸n de este c贸digo fuente en otros sistemas sin
* necesidad de permiso previo ni de notificaci贸n de uso.