Skip to content

Instantly share code, notes, and snippets.

View Zardoz89's full-sized avatar

Luis Panadero Guardeño Zardoz89

View GitHub Profile
@Zardoz89
Zardoz89 / RFC-TR1.txt
Last active August 29, 2015 14:08
RFC-TR1 Calling conventions for TR3200 CPU
Trillek DRAFT Luis P. G., Author
draft-rfc-tr1.md
Category: Standards Track 5 November 2014
Calling conventions proposal for TR3200 CPU
===========================================
# Status of This Memo
@Zardoz89
Zardoz89 / .nvimrc
Created October 20, 2014 17:39
My neovim configuration
set nocompatible " Use Vim defaults (much better!)
set runtimepath=~/.neovim/,$VIMRUNTIME
syntax on
filetype off " required!
if !has("unix")
" Vundle on Windows
set rtp+=~/vimfiles/bundle/Vundle.vim/
@Zardoz89
Zardoz89 / 0 Notas sobre el sistema.md
Last active August 29, 2015 14:05
Cosas para el rol (Provisional)

El combate funciona igual que en D&D 3.5 de toda la vida.

La magia aun tengo que pulir detalles pero en principio iría por "mana".

Los personajes se construyen por puntos en vez de por clases. Las cosas especiales que tendría una clase, se hacen comprando dotes que normalmente cuestan 1 punto. El Ataque, la Fortaleza, Reflejos y Voluntad, se compran de la misma forma. Los dotes y los hechizos son los mismo que D&D 3.5 (siempre y cuando tengan sentido) mas algunos especiales. Las características se pillan igual que en D&D 3.5 -> Seis tiradas de 4 dados de 6 (4d6), quitando el mas bajo, y se asignan a discreción del jugador según lo que se quiera hacer.

Las razas son una serie de plantillas que se aplican una vez asignadas las características. No hay clases, en su lugar, se asignan puntos para los Dotes/Habilidades/Bonificadores que se quieran

@Zardoz89
Zardoz89 / sintonizadora.txt
Last active August 29, 2015 14:00
ASUS Tiger Hybrid TV Tunner
# ASUS Tiger Hybrid TV Tunner
sudo rmmod saa7134_alsa
sudo rmmod saa7134_dvb
sudo modprobe saa7134 card=112 tuner=54 gpio_tracking=1 i2c_scan=1
# Escuchar la entrada de linea o el micro :
pactl load-module module-loopback latency_msec=10
# anotar el numero
# para desactivarlo :
pactl unload-module (Module Number)
@Zardoz89
Zardoz89 / DMA.txt
Created April 25, 2014 15:54
DMA on Virtual Computer
There is this kind of interaction between devices and memory:
- Pasive read
- Copy from RAM to device
- Copy from device to RAM
Passive reads, works "watching" the data/address bus when the CPU (or other device) is writing to the RAM. Could keep sync a device internal memory/buffer respect the changes that happens in these memory block. This is simply implemented, reading the desired RAM block with VComputer.RAM(). If a device does passive read to keep sync his internal memory/buffer, it would need a initial Copy from RAM to device to set-up his internal memory/buffers.
Copy from RAM to device, does copy data to the device internal memory/buffers. Obviously this need an active usage of the data and address buses, and only could be a single device doing that at same time. This not means exactly that only a device could be doing a DMA, but that if more that one device try to do DMA, it will need to share the bus time with the other device doing DMA and the transfer rate will be halve.
Copy from device to RA
@Zardoz89
Zardoz89 / dcpu-16.md
Last active August 29, 2015 14:00
DCPU-16 on Virtual Computer
layout title cat
default
DCPU-16 CPU
CPU

DCPU-16 Specification

Version 1.8 (Base on Mojang's v 1.7)

@Zardoz89
Zardoz89 / DCPU-24.md
Last active February 12, 2018 09:22
Another CPU based on DCPU-16
layout title cat
default
DCPU-24 CPU
CPU

DCPU-24 Specification

Copyrights 1985 Mojang, Meisaka and zardoz of Trillek

@Zardoz89
Zardoz89 / layout-default.less
Last active August 29, 2015 13:57
jQuery UI Layout, default layout conversion to LESS
/*
* Default Layout Theme
*
* Created for jquery.layout
*
* Copyright (c) 2010
* Fabrizio Balliano (http://www.fabrizioballiano.net)
* Kevin Dalman (http://allpro.net)
*
* Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html)
@Zardoz89
Zardoz89 / vimrc
Last active July 18, 2017 16:45
My vimrc for gvim
set nocompatible " Use Vim defaults (much better!)
filetype off " required!
if !has("unix")
" Vundle on Windows
set rtp+=~/vimfiles/bundle/Vundle.vim/
let path='~/vimfiles/bundle'
call vundle#begin(path)
set encoding=utf-8 " Fix ugly characters on menu and welcome screen
@Zardoz89
Zardoz89 / PDS5.md
Last active August 29, 2015 13:56
PDS-5 Vector monitor

PDS-5 2D Vector monitor

Concept of a Vector graphics only monitor. http://en.wikipedia.org/wiki/Vector_monitor

Should accept basic commands to draw :

  • points by absolute coords
  • lines from point A to point B in absolute coords
  • polyline commands that are :
  • begin polyline with start point