Skip to content

Instantly share code, notes, and snippets.

View onigetoc's full-sized avatar

Gino onigetoc

View GitHub Profile
@gaearon
gaearon / index.html
Last active May 23, 2024 11:08
Add React in One Minute
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
@Californ1a
Californ1a / mergeFetch.js
Created April 11, 2018 17:20
merge data from multiple fetch request
const fetch = require("node-fetch");
const urls = ["http://35.185.40.23/", "http://distance.rip:23469/"];
Promise.all(urls.map(fetch))
.then(responses => Promise.all(responses.map(res => res.json())))
.then(multiData => multiData.reduce((merge, data) => ({
...merge,
...data
}), {}))
.then(merged => {
@egyjs
egyjs / Direct Link of YouTube videos.md
Last active April 17, 2024 06:38
PHP API To get Direct Link of YouTube videos
function parseVideo (url) {
// - Supported YouTube URL formats:
// - http://www.youtube.com/watch?v=My2FRPA3Gf8
// - http://youtu.be/My2FRPA3Gf8
// - https://youtube.googleapis.com/v/My2FRPA3Gf8
// - Supported Vimeo URL formats:
// - http://vimeo.com/25451551
// - http://player.vimeo.com/video/25451551
// - Also supports relative URLs:
// - //player.vimeo.com/video/25451551
@Maqsim
Maqsim / hex-to-bgr.js
Created February 13, 2018 23:12
HEX to BGR
'#ff2233'.substr(1).match(/.{2}/g).reverse().join('')
@rubenbruno89
rubenbruno89 / iptv.m3u
Last active June 17, 2023 19:37
iptv.m3u
#EXTM3U
#PLAYLISTV: pltv-logo="https://minhalista-storage.nyc3.digitaloceanspaces.com/iptv-list.jpg" pltv-name="Meus canais" pltv-description="Lista IPTV" pltv-cover="https://minhalista-storage.nyc3.digitaloceanspaces.com/iptv-list.jpg" pltv-author="Jhenny" pltv-email="shayanne09@gmail.com"
#EXTINF:-1 tvg-id="" tvg-logo="https://minhalista-files.nyc3.digitaloceanspaces.com/iptv-list.jpg" group-title="CANAIS ABERTOS",REDE TV
http://evpp.mm.uol.com.br/redetv2/redetv2/chunklist_w1379590905.m3u8
#EXTINF:-1 tvg-id="" tvg-logo="https://minhalista-files.nyc3.digitaloceanspaces.com/iptv-list.jpg" group-title="FILMES",filmes 1
http://stmv2.srvstm.com/tvjsid/tvjsid/playlist.m3u8
@khryzcf4
khryzcf4 / TV
Created November 27, 2017 00:49
TV
#EXTM3U
#EXTINF:-1 tvg-logo="https://upload.wikimedia.org/wikipedia/commons/6/65/Animaxlogo-20160701.png" group-title="INFANTILES",ANIMAX
http://video7.stream.mx:1935/raxatv/raxatv/chunklist_w884577146.m3u8
#EXTINF:-1 tvg-logo="http://i.imgur.com/exvuGgQ.png" group-title="INFANTILES",ANIME TV
http://video7.stream.mx:1935/raxatv/raxatv/chunklist_w884577146.m3u8?JoCaRoIPTV.m3u8
#EXTINF:-1 tvg-logo="https://vignette.wikia.nocookie.net/logopedia/images/c/ca/Baby_TV.png/revision/latest?cb=20111201223043" group-title="INFANTILES",BABY TV
http://tstv.lcdn.claro.net.co/Content/hls_clear/Live/Channel(BABYTV)/index.m3u8
#EXTINF:-1 tvg-logo="https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Boomerang_tv_logo.png/607px-Boomerang_tv_logo.png" group-title="INFANTILES",BOOMERANG
http://live.izzitv.mx/Content/HLS/Live/Channel(BOOMERANG)/index.m3u8
@daveajones
daveajones / jsonfeed2rss.php
Last active August 15, 2023 21:06
Convert JSONFeed to RSS
<?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;
#EXTM3U
#EXTINF:0 type="stream" tvg-logo="http://cdn.idealo.com/folder/Product/61/5/61572/s11_produktbild_mid/sony-icf-c390.jpg" , Radios pelo Mundo
http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8
#EXTINF:0 type="stream" tvg-logo="http://cdn.letras.com.br/arquivos/fotos/capas/46/0004553,roberto-carlos-as-baleias.jpg" , Radio Roberto Carlos
http://192.99.150.31:9137/stream
#EXTINF:0 type="stream" tvg-logo="https://static-media.streema.com/media/object-images/8227804f7f5c47d0956ffa91c0ee08ac.png" , Coca -Cola FM
http://s.imusicaradios.com.br:1935/imusica_radio/brasil.stream/playlist.m3u8
#EXTINF:0 type="stream" tvg-logo="https://lh5.ggpht.com/CUcQeArXPT-UOS95gPQOr4OPEvyLnofZ5_SdaM8UJUFnetadqsx2L35mhuDhcR9xglbl=w300" , New Age
http://192.99.150.31:8353/stream
#EXTINF:0 type="stream" tvg-logo="https://www.programamaistorcedor.com.br/uploads/parceiro/logo/17/Mundo_dos_esportes_logo.jpg" , Mundo dos Esportes
@dpellenwood
dpellenwood / itunes-podcast-categories.json
Last active February 21, 2022 11:48 — forked from codeincontext/itunes-podcast-categories.yml
A list of the current iTunes podcast categories in different formats
[
{
"Arts": [
"Design",
"Fashion & Beauty",
"Food",
"Literature",
"Performing Arts",
"Visual Arts"
]