running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
.full | |
{ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; | |
text-align: right; font-size:40px; |
#!/bin/bash | |
echo "" | |
# Root check | |
if [[ "$UID" -ne 0 ]]; then | |
echo "!! This script requires root privileges. sudo ./create_koken.sh" | |
echo "" | |
exit | |
fi |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title> Computer Based Test</title> | |
<link rel="stylesheet" href="simplequiz/css/style.css"> | |
<script src="file:///C:/Users/Orijajogunlo/Desktop/jquery-1.11.3.js"></script> | |
<script src="simplequiz/js/script.js"></script> | |
</head> | |
<body> |
#!/usr/bin/env python | |
""" | |
Very simple HTTP server in python (Updated for Python 3.7) | |
Usage: | |
./dummy-web-server.py -h | |
./dummy-web-server.py -l localhost -p 8000 | |
Send a GET request: |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
int read(int fd, char *buf, int n); | |
int write(int fd, char *buf, int n); | |
int fstat(int fd, struct stat *st); |
package Hangman; | |
import java.util.Scanner; | |
import java.util.Random; | |
public class Built { | |
public static void main(String[] args){ | |
Scanner scanner = new Scanner(System.in); | |
Random random = new Random(); | |
/// <summary> | |
/// Get all Greek holidays for requested year | |
/// </summary> | |
/// <param name="year">Year of holidays</param> | |
/// <returns>List of dates of all public holidays, except weekends</returns> | |
public static List<DateTime> GreekHolidays(int year) | |
{ | |
var easter = GetOrthodoxEaster(year); | |
var holidays = new List<DateTime>(); | |
I made lots of mistakes while learning to code, actually terrible ones. I thought, why not warn everyone before they make the same. I am sure this will help you get on the fast track towards success.
When I started to learn to program, I spent too much time learning different programming languages and frameworks at once. I spent a week with one technology and language, learning its basics and another the next week. I just kept on jumping from one thing to another. I bet many have and will commit this same mistake. Now I realise that was a dumb idea. I was learning multiple things at once, but I had no clear direction about what type of developer role I wanted to have. I was becoming general of everything instead of specialising, focusing my energy and time on one thing. Programming languages are just tools, and tools come with various shapes an