Skip to content

Instantly share code, notes, and snippets.

View balrog-kun's full-sized avatar

Andrew Zaborowski balrog-kun

View GitHub Profile
@balrog-kun
balrog-kun / division-horizontal.md
Last active May 19, 2024 08:04
Transcripción de las escrituras de división horizontal para Av. Manzanares 40 y 46

[Folio 190]

FINCA NUM. 24448

[NOTAS MARGINALES]

Dividida esta finca en cinco locales comerciales y veintiocho pisos, que han pasado a formar los números pares del 24676 al 24740, ambos inclusive, a los folios 127 al 245 del tomo 1079 del archivo, y 1 al 17 del tomo 1080 también del archivo. Madrid, 7 de noviembre de 1967.

En el día de hoy se ha diligenciado, como el número UNO de la diligenciada por este Registro y número DOS de lo abierto por la comunidad, el Libro de Acta de la Comunidad de Propietarios de esta finca con CIF número 479089231 el cual consta de cien por cien(?) útiles, en virtud de solicitud de fecha 20 de febrero de 2001, que fué presentado a las 12 horas 5 minutos del día 23 de febrero pasado, asiento 994 del Diario 34. Madrid, 2 de Marzo de 2001

@balrog-kun
balrog-kun / jbl-flip-3.md
Last active May 19, 2024 08:02
JBL Flip 3 auto-standby solutions

When using the JBL Flip 3 (or JBL Flip 2 or JBL Flip 4) as a permanent speaker for music or Text-to-speech announcements, connected through the AUX input and powered consantly it still goes into an automatic standby after some time of silence and it's a major problem in this use case. Depending on how long the silence was and how loud the new input audio is, it may take between 3 to 30 seconds in my experience before it resumes playing. For lack of a better place I'm posting here the information I have on solving this.

  1. Obviously emitting the audio signal at maximum volume from the computer and lowering the volume at the speaker reduces the time for it to wake up. Downsides: less volume control for the computer (especially problematic if it's remotely controlled), still won't work if the audio played is relatively quiet or short (such as a home-automation announcement) so not a definitive solution.
  2. Mixing unaudible waveforms into the audio output, either low frequency (< 20Hz) or high (> 15kHz). Downs
@balrog-kun
balrog-kun / lambda_function.py
Created April 22, 2020 07:18 — forked from matt2005/lambda_function.py
Alexa Smart Home Skill Adapter for Home Assistant
"""
Copyright 2019 Jason Hu <awaregit at gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@balrog-kun
balrog-kun / index.html
Last active August 29, 2015 14:17 — forked from tyrasd/index.html
Compare .png with .bpg OSM tiles
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="http://c.tile.openstreetmap.pl/leaflet/dist/leaflet.css" />
<script type="application/javascript" src="http://c.tile.openstreetmap.pl/leaflet.bpg/bpgdec.js"></script>
<script type="application/javascript" src="http://c.tile.openstreetmap.pl/leaflet/dist/leaflet.js"></script>
<script type="application/javascript" src="http://c.tile.openstreetmap.pl/leaflet.bpg/TileLayer.BPG.js"></script>
<style>
body { margin:0; padding:0; }
@balrog-kun
balrog-kun / TimerTest.ino
Last active March 6, 2022 07:10
Simple avr timer api
#include "Timers.h"
void simple_timeout(void) {
Serial.println("simple timeout elapsed");
}
class Example {
void objectTimeout(void) {
Serial.println("object timeout elapsed");
}
#! /usr/bin/python2
# vim: fileencoding=utf-8 encoding=utf-8 et sw=4
import sys
import os
import xml.etree.cElementTree as ElementTree
import string
import math
def contains(poly, pos):
/*
* Generates the signal that drives RC actuators (motors and servos).
*
* Licensed under AGPLv3.
*/
volatile uint16_t actuators_serial[3];
volatile uint32_t actuators_serial_ts[3];
/* The ESC's op timeout is something below 1000 cycles and
#include <avr/io.h>
#include <avr/interrupt.h>
#include "adc.h"
#include "timer1.h"
#include "uart.h"
#include "actuators.h"
static uint8_t motor[4] = { 0, 0, 0, 0 };
@balrog-kun
balrog-kun / merge-building-addrs.py
Last active July 19, 2017 19:28
Merge two .osm files, one with building footprints, one with address nodes. Write output.osm.
#! /usr/bin/python2
# vim: fileencoding=utf-8 encoding=utf-8 et sw=4
import sys
import os
import xml.etree.cElementTree as ElementTree
import string
outroot = ElementTree.Element("osm", { "version": "0.6" })
bldgroot = ElementTree.parse(sys.argv[1]).getroot()
@balrog-kun
balrog-kun / dane.js
Created September 4, 2010 23:27
Input data to the Chrzelice digitisation workshop web page
var data = [
[
'2010-08-15 12:11:30', 'omeka:19:pole_boisko_fba1736a8f.mp3',
'Pole, na którym obecnie zlokalizowano boisko, tuż po ' +
'zakończeniu działań wojennych stało się miejscem, w którym ' +
'żołnierze sowieccy gromadzili zabierane z gospodarstw krowy,' +
' przygotowując je do wywozu do ZSRR.',
50.4678, 17.7377,
[ '1945', 'wojska rosyjskie', 'rekwizycje', 'gwałty' ],
'Pani Maria Rosplesza',