Skip to content

Instantly share code, notes, and snippets.

Gino onigetoc

Block or report user

Report or block onigetoc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@onigetoc
onigetoc / index.html
Created Feb 24, 2019
Videojs 7 Player all videos format
View index.html
<div id="instructions">
<!-- <video id="vid1" class="video-js vjs-default-skin vjs-fluid" controls autoplay width="640" height="360"></video> -->
<video id="vid1" class="video-js vjs-default-skin vjs-fluid" poster="http://i.imgur.com/xxqm7EE.png" width="640" height="360" controls autoplay preload="none" data-setup='{ "techOrder": ["html5", "youtube"], "sources": [{ "type": "application/x-mpegURL", "src": "https://nmxlive.akamaized.net/hls/live/529965/Live_1/index.m3u8"}]}'></video>
<!-- <video id="vid1" class="video-js vjs-default-skin vjs-fluid" controls width="640" height="264" data-setup='{ "techOrder": ["youtube"], "sources": [{ "type": "video/youtube", "src": "https://www.youtube.com/watch?v=xjS6SftYQaQ"}] }'>
</video> -->
<h2>Load Video:</h2>
<form id="vsg-loadvideo">
View gist:5efd5f10a17a2c4504a0a8c75f57a76b
javascript:(function(){var%20s=document.createElement('div');s.innerHTML='Loading...';s.style.color='black';s.style.padding='20px';s.style.position='fixed';s.style.zIndex='9999';s.style.fontSize='3.0em';s.style.border='2px%20solid%20black';s.style.right='40px';s.style.top='40px';s.setAttribute('class','selector_gadget_loading');s.style.background='white';document.body.appendChild(s);s=document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('src','http://www.selectorgadget.com/stable/lib/selectorgadget.js?raw=true');document.body.appendChild(s);})();
@onigetoc
onigetoc / itunes-podcast-categories.json
Created Nov 29, 2018 — forked from dpellenwood/itunes-podcast-categories.json
A list of the current iTunes podcast categories in different formats
View itunes-podcast-categories.json
[
{
"Arts": [
"Design",
"Fashion & Beauty",
"Food",
"Literature",
"Performing Arts",
"Visual Arts"
]
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
body {
background: #f5f5f5;
}
@onigetoc
onigetoc / m3u-2-JSON.R
Created Oct 28, 2018 — forked from christopherlovell/m3u-2-JSON.R
m3u to JSON converter
View m3u-2-JSON.R
library(rjson)
trim <- function (x) gsub("^\\s+|\\s+$", "", x)
data_dir = 'Documents/playlists/'
play_list = list()
for(i in list.files(data_dir,"^.*\\.(m3u)$")){
year = substr(i,1,4) # record file specific information, in this case year from playlist group
View gist:e33a9fc3d2deb2e2b9580b9779e08c6c
#EXTINF:0, group-title="Bangladesh",Aakaash
http://mhms9.airtel.tv/wh7f454c46tw4163224253_611767333/PLTV/88888888/224/3221226090/index.m3u8|User-Agent=ExoPlayerDemo/4.4
#EXTINF:0, group-title="Bangladesh",ABP Ananda
http://cshms2.airtel.tv/wh7f454c46taw1033387593_346937752/PLTV/88888888/224/3221226052/1.m3u8|User-Agent=ExoPlayerDemo/4.4
#EXTINF:0, group-title="Bangladesh",Aldwah TV
http://88.202.231.154:1934/c5VydmVyX3RpbEU9Mi8xNy8yMDE0GIDU6RgzQ6NTAgdEoaeFzbF92YWxIZTO0U0ezN1IzMyfvcGVMZEJCTEFWeVN3PTOmdFsaWRtaW51aiPhnPTI/dawah-eu.stream/chunks.m3u8
#EXTINF:0, group-title="Bangladesh",Ananda TV
http://103.252.220.41:1934/c5VydmVyX3RpbEU9Mi8xNy8yMDE0GIDU6RgzQ6NTAgdEoaeFzbF92YWxIZTO0U0ezN1IzMyfvcGVMZEJCTEFWeVN3PTOmdFsaWRtaW51aiPhnPTI/anandatv.stream/playlist.m3u8
#EXTINF:0, group-title="Bangladesh",Asian HD
http://103.252.220.41:1934/c5VydmVyX3RpbEU9Mi8xNy8yMDE0GIDU6RgzQ6NTAgdEoaeFzbF92YWxIZTO0U0ezN1IzMyfvcGVMZEJCTEFWeVN3PTOmdFsaWRtaW51aiPhnPTI/asian-test-sample-ok-d.stream/playlist.m3u8
@onigetoc
onigetoc / remove_duplicates_array_multi.js
Created Oct 17, 2018 — forked from juliovedovatto/remove_duplicates_array_multi.js
Javascript: Remove duplicates of multidimensional array
View remove_duplicates_array_multi.js
// for browser using, this code requires javascript 1.7+
var arr = [
{ foo: 'bar', lorem: 'ipsum' },
{ foo: 'bar', lorem: 'ipsum' },
{ foo: 'bar', lorem: 'ipsum dolor sit amet' }
];
arr = arr.map(JSON.stringify).reverse() // convert to JSON string the array content, then reverse it (to check from end to begining)
.filter(function(item, index, arr){ return arr.indexOf(item, index + 1) === -1; }) // check if there is any occurence of the item in whole array
@onigetoc
onigetoc / index.html
Last active Jul 11, 2018
Music Player - jPlayer Dynamic multi player Advanced - CUSTOM SKIN
View index.html
<div class="jplayer" id="myid" data-jptitle="Charlie Puth - Attention" data-jpsrc="https://audio-ssl.itunes.apple.com/apple-assets-us-std-000001/AudioPreview122/v4/b1/eb/c1/b1ebc105-bb9b-53d8-aca6-d19497b89a54/mzaf_594361230071145654.plus.aac.p.m4a" poster="https://img.youtube.com/vi/9vQ6X_xFSYw/hqdefault.jpg"></div>
<br>
<audio controls poster="https://img.youtube.com/vi/9vQ6X_xFSYw/hqdefault.jpg">
<!--<source src="http://www.jplayer.org/audio/mp3/Miaow-07-Bubble.mp3" type="audio/mp3"> -->
<source src="http://www.jplayer.org/audio/mp3/Miaow-07-Bubble.mp3" type="audio/mp3">
</audio>
<br>
<audio controls id="audioID">
@onigetoc
onigetoc / jsonfeed2rss.php
Created Sep 11, 2017 — forked from daveajones/jsonfeed2rss.php
Convert JSONFeed to RSS
View jsonfeed2rss.php
<?php
//Convert JSONfeed to RSS in a single function as a drop-in to make adding JSONfeed
//support to an aggregator easier
function convert_jsonfeed_to_rss($content = NULL, $max = NULL)
{
//Test if the content is actual JSON
json_decode($content);
if( json_last_error() !== JSON_ERROR_NONE) return FALSE;
@onigetoc
onigetoc / event.video.youtube.js
Created Sep 7, 2017 — forked from benwong/event.video.youtube.js
YouTube iFrame API wrapper for event videos
View event.video.youtube.js
var EventYouTubeVideo = (function(){
var module = {};
module.init = function(){
var tag = document.createElement('script');
tag.src = "http://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
};
You can’t perform that action at this time.