Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.
All files were downloaded from https://cdnjs.com and named accordingly.
Output from ls command is stripped out (irrelevant stuff)
$ ls -lhS
566K Jan 4 22:03 angular2.min.js
| const express = require('express'); | |
| const htm = require('htm'); | |
| const vhtml = require('vhtml'); | |
| // create an html`` tag function for vhtml: | |
| const html = htm.bind(vhtml); | |
| const App = (props) => html` | |
| <div class="app"> | |
| <h1>This is an app</h1> |
| const express = require('express'); | |
| const { html, Component } = require('htm/preact'); | |
| const renderToString = require('preact-render-to-string'); | |
| class App extends Component { | |
| render(props) { | |
| return html` | |
| <div class="app"> | |
| <h1>This is an app</h1> | |
| <p>Current server time: ${new Date + ''}</p> |
| /** | |
| * Example to refresh tokens using https://github.com/auth0/node-jsonwebtoken | |
| * It was requested to be introduced at as part of the jsonwebtoken library, | |
| * since we feel it does not add too much value but it will add code to mantain | |
| * we won't include it. | |
| * | |
| * I create this gist just to help those who want to auto-refresh JWTs. | |
| */ | |
| const jwt = require('jsonwebtoken'); |
| """ | |
| Usage: | |
| Make sure that redis is running on localhost (or adjust the url) | |
| Install uvicorn or some other asgi server https://asgi.readthedocs.io/en/latest/implementations.html | |
| pip install -u uvicorn | |
| Install dependencies |
| # Set the name and the supported language of the project | |
| PROJECT(hello-world C) | |
| # Set the minimum version of cmake required to build this project | |
| CMAKE_MINIMUM_REQUIRED(VERSION 2.6) | |
| # Use the package PkgConfig to detect GTK+ headers/library files | |
| FIND_PACKAGE(PkgConfig REQUIRED) | |
| PKG_CHECK_MODULES(GTK3 REQUIRED gtk+-3.0) | |
| # Setup CMake to use GTK+, tell the compiler where to look for headers |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
"How do I get started with Node?" is a commonly heard question in #Node.js. This gist is an attempt to compile some of the answers to that question. It's a perpetual work-in-progress.
And if this list didn't quite answer your questions, I'm available for tutoring and code review! A donation is also welcome :)
Before you get started learning about JavaScript and Node.js, there's one very important article you need to read: Teach Yourself Programming in Ten Years.
Understand that it's going to take time to learn Node.js, just like it would take time to learn any other specialized topic - and that you're not going to learn effectively just by reading things, or following tutorials or courses. _Get out there and build things!