running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
/** | |
* Simple localStorage with Cookie Fallback | |
* v.1.0.0 | |
* | |
* USAGE: | |
* ---------------------------------------- | |
* Set New / Modify: | |
* store('my_key', 'some_value'); | |
* | |
* Retrieve: |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
<?php | |
/** | |
* license is MIT, you will find the text of it in the internet | |
*/ | |
echo "start generation script\n"; | |
function getAllSchemaFilePaths() | |
{ |
# Paste into a root shell on your Ubuntu VM | |
curl -L https://gist.githubusercontent.com/meeee/5e252e93ba4589e67cf3/raw/faa25d74545ca527d713df2b843da43af3cf92ea/network > /etc/init.d/network && \ | |
chmod +x /etc/init.d/network && \ | |
echo "Suspend fix installed." |
GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.
This is a ServiceWorker template to turn small github pages into offline ready app.
Whenever I make small tools & toys, I create github repo and make a demo page using github pages (like this one).
Often these "apps" are just an index.html
file with all the nessesary CSS and JavaScript in it (or maybe 2-3 html/css/js
files). I wanted to cache these files so that I can access my tools offline as well.
Make sure your github pages have HTTPS enforced, you can check Settings > GitHub Pages > Enforce HTTPS
of your repository.
Yes, it's been done already. No, it's still not particularly easy. You do not need to use either Qt Creator or VS2015.
I am building on information found here, here, and here. Thanks to these folks and the contributors to RDM.
With this document, I sought to "trim the fat" from these other guides and prove that VS2015 itself was not in fact necessary - just its tooling.
cd /usr/src/ | |
git clone https://github.com/expressif/pecl-event-libevent.git | |
cd pecl-event-libevent | |
phpize | |
./configure | |
make && sudo make install | |
sudo apt update | |
sudo apt install php7.4-dev libevent-dev |
Math.RoundAwayFromZero = function round(num, decimalPlaces) { | |
const d = decimalPlaces || 2; | |
const m = Math.pow(10, d); | |
const n = +(d ? num * m : num).toFixed(8); | |
const i = Math.ceil(n), f = n - i; | |
const e = 1e-8; | |
const r = (f > 0.5 - e && f < 0.5 + e) ? | |
((i % 2 === 0) ? i : i + 1) : Math.round(n); | |
return d ? r / m : r; | |
} |
#!/bin/bash | |
#get highest tag number | |
VERSION=`git describe --abbrev=0 --tags` | |
#replace . with space so can split into an array | |
VERSION_BITS=(${VERSION//./ }) | |
#get number parts and increase last one by 1 | |
VNUM1=${VERSION_BITS[0]} |