- GitHub
- Приложение
- Сервис генерации иконок маркеров карт Google кастомного цвета. Я сделал его в 2013 и написал небольшую статью на хабре. Сервер я захостил на бесплатном тарифе AppFog, который пару лет назад прекратил свое существование. Я подумал, что это ДЗ - отличный повод его поднять (сервис, а не AppFog).
- ESLint
- OpenShift
- Я разместил приложение на бесплатном тарифе OpenShift (он нравится мне больше Heroku, так как приложение не уходит в принудительный suspend).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
01:05:35.452 hls.js@latest:1 [log] > loadSource:https://smesharikisample-xvpngdemzq.now.sh/index.m3u8 | |
01:05:35.455 hls.js@latest:1 [log] > trigger BUFFER_RESET | |
01:05:35.457 hls.js@latest:1 [log] > attachMedia | |
01:05:35.527 hls.js@latest:1 [log] > media source opened | |
01:05:35.602 hls.js@latest:1 [log] > manifest loaded,1 level(s) found, first bitrate:721499 | |
01:05:35.604 hls.js@latest:1 [log] > 2 bufferCodec event(s) expected | |
01:05:35.605 hls.js@latest:1 [log] > startLoad(-1) | |
01:05:35.609 hls.js@latest:1 [log] > switching to level 0 | |
01:05:35.615 hls.js@latest:1 [log] > main stream:STOPPED->IDLE | |
01:05:35.618 hls.js@latest:1 [log] > audio tracks updated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index 7b1101a..ba1494e 100644 | |
--- a/src/controller/fragment-finders.js | |
+++ b/src/controller/fragment-finders.js | |
@@ -48,7 +48,8 @@ export function findFragmentByPTS (fragPrevious, fragments, bufferEnd = 0, maxFr | |
if (fragNext && !fragmentWithinToleranceTest(bufferEnd, maxFragLookUpTolerance, fragNext)) { | |
return fragNext; | |
} | |
- return BinarySearch.search(fragments, fragmentWithinToleranceTest.bind(null, bufferEnd, maxFragLookUpTolerance)); | |
+ const foundFrag = BinarySearch.search(fragments, fragmentWithinToleranceTest.bind(null, bufferEnd, maxFragLookUpTolerance)); | |
+ return foundFrag ? foundFrag : fragNext; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(text) { | |
return text.replace(/([а-яё])|([\s_-])|([^a-z\d])/gi, | |
function (all, ch, space, words, i) { | |
if (space || words) { | |
return space ? '-' : ''; | |
} | |
var code = ch.charCodeAt(0), | |
index = code == 1025 || code == 1105 ? 0 : | |
code > 1071 ? code - 1071 : code - 1039, | |
t = ['yo', 'a', 'b', 'v', 'g', 'd', 'e', 'zh', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RETVAL=0 | |
PIDFILE="/var/run/yaxy.pid" | |
CONFIGFILE="/etc/.yaxy" | |
LOGFILE="/var/log/yaxy.log" | |
PORT="8558" | |
start() { | |
if [ -e $PIDFILE ] |