Skip to content

Instantly share code, notes, and snippets.

View puggan's full-sized avatar

Thorbjörn 'Puggan' Sundragon puggan

View GitHub Profile
@puggan
puggan / GeoFeedPugganIPv6.txt
Created October 24, 2021 21:55
GeoFeed Puggan IPv6
2001:470:28:570::/64,SE,SE-O,Göteborg,417 48
A4 paper is a 2^-4 of an A0, and an A0 is 1m² with one side √2 longer then the others, so when split i half it keeps it's ratio.
Area of an Ax is therefor 2^(-x) m².
The sides of an Bx page is (2^(-.25-x))x(2^(.25-x))
An B1 paper is in the middle between A0 and A1, and the area of an Bx is therefor 2^(.5-x) m².
The sides of an Bx page is (2^(-x))x(2^(.5-x))
An C0 paper is in the middle between B0 and A0, and the area of and Cx is therefor 2^(.25-x) m².
The sides of an Bx page is (2^(-.125-x))x(2^(.375-x))
@puggan
puggan / helios.kml
Created September 6, 2023 12:15
helios.kml
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Placemark><name>??,Hotel Helios Costa Tropical</name><Point><coordinates>36.73216575784057,-3.6992294901659153,0</coordinates></Point></Placemark>
<Placemark><name>1468289,Ibersol Almuñecar Beach & Spa</name><Point><coordinates>36.732604,-3.699836,0</coordinates></Point></Placemark>
<Placemark><name>11436573,Hotel Victoria Playa</name><Point><coordinates>36.73423,-3.700038,0</coordinates></Point></Placemark>
<Placemark><name>2429195,Hotel La Najarra</name><Point><coordinates>36.7321,-3.69551,0</coordinates></Point></Placemark>
<Placemark><name>90987457,Hotel Noy</name><Point><coordinates>36.732049,-3.695488,0</coordinates></Point></Placemark>
<Placemark><name>18809829,Jardín De Mariote Apartment</name><Point><coordinates>36.733993,-3.701994,0</coordinates></Point></Placemark>
if not peripheral.isPresent("top") then
print("p-TOP is missing")
return
end
print("p-TOP is " .. peripheral.getType("top"))
if not peripheral.isPresent("bottom") then
print("p-BOTTOM is missing")
return
end