Skip to content

Instantly share code, notes, and snippets.

View marekdedic's full-sized avatar

Marek Dědič marekdedic

View GitHub Profile
/// <reference types="datatables.net"/>
(function ($): void {
$('.c').DataTable();
})(jQuery);
@marekdedic
marekdedic / .eslintrc.json
Last active January 2, 2023 21:04
eslint-plugin-svelte false positive (sveltejs/eslint-plugin-svelte#335)
{
"parser": "svelte-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"extraFileExtensions": [".svelte"]
},
"rules": {
"no-undef": "error"
}
}
@marekdedic
marekdedic / index.html
Last active October 31, 2022 09:20
Showdown-webworker-example (showdownjs/showdown#537)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="script.js"></script>
</head>
<body></body>
</html>
@marekdedic
marekdedic / functions.php
Created June 17, 2018 20:50
PHP Profiling functions
// Call this at each point of interest, passing a descriptive string
function prof_flag($str)
{
global $prof, $prof_last, $prof_last_value;
if(!isset($prof_last_value))
{
$prof_last_value = 0;
}
if(isset($prof_last))
@marekdedic
marekdedic / Marek Dedic.ipynb
Created December 23, 2017 21:10
REAN-zapocet
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.