Skip to content

Instantly share code, notes, and snippets.

View severak's full-sized avatar

Mikoláš Štrajt severak

View GitHub Profile
-- Two dashes start a one-line comment.
--[[
Adding two ['s and ]'s makes it a
multi-line comment.
--]]
----------------------------------------------------
-- 1. Variables and flow control.
----------------------------------------------------
@severak
severak / GpsParser.php
Created July 13, 2016 09:38
GPS Coordinates Parser
<?php
/**
* GPS Coordinates Parser
*
* Forms:
* - 49.7175669N, 15.3728881E
* - N 49°43.05402', E 15°22.37328'
* - 49°43'3.241"N, 15°22'22.397"E
* - N48.7382° E19.56845°
@severak
severak / linkify.php
Created October 5, 2016 14:53 — forked from jasny/linkify.php
PHP function to turn all URLs in clickable links
<?php
/**
* Turn all URLs in clickable links.
*
* @param string $value
* @param array $protocols http/https, ftp, mail, twitter
* @param array $attributes
* @param string $mode normal or all
* @return string
*/
@severak
severak / overpass.geojson
Created December 8, 2016 13:35 — forked from anonymous/overpass.geojson
data exported by overpass turbo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@severak
severak / depng.c
Created October 16, 2018 09:12 — forked from eXeC64/depng.c
Quick tool to list and dump data chunks from a PNG file
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <endian.h>
int main(int argc, char** argv)
{
if(argc < 2)
return 1;
@severak
severak / utf8_filenames.lua
Created February 13, 2019 12:36 — forked from Egor-Skriptunoff/utf8_filenames.lua
UTF-8 filenames on Windows in pure Lua
------------------------------------------------------------------------------------------------------------------------------
-- Module: utf8_filenames
------------------------------------------------------------------------------------------------------------------------------
-- Filename: utf8_filenames.lua
-- Version: 2019-01-17
-- This module modifies standard Lua functions so that they work with UTF-8 filenames on Windows:
-- io.open
-- io.popen
-- io.lines
@severak
severak / Pipfile
Created August 16, 2020 19:54 — forked from siedentop/Pipfile
Midi Keyboard as Computer Keyboard. Upper case through pressing faster.
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
black = "*"
[packages]
py-midi = "*"