This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG BASE_VERSION | |
FROM strapi/base:${BASE_VERSION} | |
ARG STRAPI_VERSION | |
RUN yarn global add @strapi/strapi@${STRAPI_VERSION} | |
RUN mkdir /srv/app && chown 1000:1000 -R /srv/app | |
WORKDIR /srv/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import AVFoundation | |
class CaptureViewController: UIViewController { | |
var captureSession: AVCaptureSession? | |
var captureVideoPreviewLayer: AVCaptureVideoPreviewLayer? | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Philips Hue Control</title> | |
<script src="http://code.jquery.com/jquery-3.1.1.min.js"></script> | |
<script type="text/javascript"> | |
$(function() { | |
var apiBaseUrl = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if | |
let path = NSBundle.mainBundle().pathForResource("tvhd", ofType: "m3u"), | |
let content = try? String(contentsOfFile: path, encoding: NSUTF8StringEncoding) | |
{ | |
let lines = content.componentsSeparatedByCharactersInSet(.newlineCharacterSet()) | |
var streams = [String: NSURL]() | |
var streamName: String? | |
for line in lines { | |
if line.containsString("#") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HD | |
for i in `curl https://developer.apple.com/videos/wwdc/2015/ | grep -o '<a href="?id=[0-9]*' | cut -d '"' -f2`; do curl https://developer.apple.com/videos/wwdc/2015/${i} | grep -o 'http.*_hd_.*.mp4' | cut -d '"' -f5 | xargs curl -O; done | |
SD | |
for i in `curl https://developer.apple.com/videos/wwdc/2015/ | grep -o '<a href="?id=[0-9]*' | cut -d '"' -f2`; do curl https://developer.apple.com/videos/wwdc/2015/${i} | grep -o 'http.*_sd_.*.mp4' | cut -d '"' -f1 | xargs curl -O; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var net = require("net"); | |
var fs = require("fs"); | |
// server | |
var port = "/tmp/stream"; | |
var sockets = []; | |
var server = net.createServer(function(socket) { | |
sockets.push(socket); | |