Skip to content

Instantly share code, notes, and snippets.

View Zardoz89's full-sized avatar

Luis Panadero Guardeño Zardoz89

View GitHub Profile
/*-----------------------------------------------------
Author: <Zardoz>
Date: Fri May 31 15:53:33 2013
Description: BTC 1.6 audio codec player for uMicros
Original codec by Roman Black
Audio Codec description : http://www.romanblack.com/btc_alg.htm
-----------------------------------------------------*/
// NOTE : This output comes from RomamBlack BTc enconder that generates a MikroC
@Zardoz89
Zardoz89 / dm.py
Last active March 1, 2024 11:05
Delta Modulation Coding and Decoding
#!/usr/bin/env python3
import array
import audioop
import wave
import sys
import time
try:
@Zardoz89
Zardoz89 / dm_leaky.py
Last active December 20, 2015 13:29
Delta Modulation with Leaky integrator
#!/usr/bin/env python3
import array
BYTES = 2 # N bytes arthimetic
MAX = 2 ** (BYTES * 8 - 1) - 1
MIN = - (2 ** (BYTES * 8 - 1)) + 1
CHUNK= 1024
@Zardoz89
Zardoz89 / btc.py
Last active December 20, 2015 20:49
Binary Time constant 1.0 codec and decoder example
#!/usr/bin/env python3
import array
BYTES = 2 # N bytes arthimetic
MAX = 2 ** (BYTES * 8 - 1) - 1
MIN = - (2 ** (BYTES * 8 - 1)) + 1
CHUNK= 1024
@Zardoz89
Zardoz89 / adm.py
Created August 10, 2013 13:15
Adaptative Delta Modulation coding example in Python 3
#!/usr/bin/env python3
import array
BYTES = 2 # N bytes arthimetic
MAX = 2 ** (BYTES * 8 - 1) - 1
MIN = - (2 ** (BYTES * 8 - 1)) + 1
CHUNK= 1024
DCPU-16e Specification
Version 1.2
=== SUMMARY ====================================================================
* 16 bit words
* 8 banks of 0x10000 words of ram, numbered 0-7
* 8 registers (A, B, C, X, Y, Z, I, J)
@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
@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 / 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 / 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