HLS Server Demo - My TV Station
Mix.install([
{:plug_cowboy, "~> 2.6"}
])
-module(ring_benchmark). | |
-export([new/2]). | |
new(N, M) -> | |
spawn(fun() -> spawn_ring(N, M) end). | |
spawn_ring(N, M) -> | |
io:format("First process: ~p~n", [self()]), | |
NextPid = spawn_rest(self(), N), |
%% Write a function start(AnAtom, Fun) to register | |
%% AnAtom as spawn(Fun). Make sure your program | |
%% works correctly in the case when two parallel | |
%% processes simultaneously evaluate start/2. In | |
%% this case, you must guarantee that one of | |
%% these processes succeeds and the other fails. | |
-module(ch8prob1). | |
-export([start/2]). |
#!/bin/sh | |
# | |
# This shell script passes all its arguments to the binary inside the | |
# MacVim.app application bundle. If you make links to this script as view, | |
# gvim, etc., then it will peek at the name used to call it and set options | |
# appropriately. | |
# | |
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This | |
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico | |
# Weber and Bjorn Winckler, Aug 13 2007). |
#!/usr/bin/env python | |
# | |
# Converts any integer into a base [BASE] number. I have chosen 62 | |
# as it is meant to represent the integers using all the alphanumeric | |
# characters, [no special characters] = {0..9}, {A..Z}, {a..z} | |
# | |
# I plan on using this to shorten the representation of possibly long ids, | |
# a la url shortenters | |
# |
Mix.install([
{:plug_cowboy, "~> 2.6"}
])
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |