This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SDL2/SDL.h> | |
int main(int argc, char** argv) | |
{ | |
SDL_Init(SDL_INIT_EVERYTHING); | |
SDL_Quit(); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _IMAGEN_H_ | |
#define _IMAGEN_H_ | |
#include <SDL2/SDL.h> | |
class Imagen | |
{ | |
public: | |
Imagen(SDL_Renderer* renderer, const char* ruta); | |
~Imagen(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
HCI_ID=$(rfkill list | grep hci0 | cut -f1 -d':') | |
if [ $HCI_ID -ge 0 ]; then | |
rfkill block $HCI_ID | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ascii_a_ministerioscript(texto): | |
convertido = '' | |
letras = { '00' : 's', '01' : 'd', '10' : 'f', '11' : 'g' } | |
for caracter in str(texto): # para cada caracter... | |
binario = bin(ord(caracter))[2:].zfill(8) # lo convertimos a binario. | |
for i in range(4): | |
# recorremos el numero binario en grupos de 2 caracteres | |
subparte = binario[2*i:2*i+2] | |
# y para cada parte obtenemos la letra que se esconde tras el par | |
letra = letras[subparte] |
OlderNewer