This file contains hidden or 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
| /* | |
| * dynamic_changing_element | |
| */ | |
| #include <gst/gst.h> | |
| static gchar *opt_effects = NULL; | |
| #define DEFAULT_EFFECTS "identity,exclusion,navigationtest," \ | |
| "agingtv,videoflip,vertigotv,gaussianblur,shagadelictv,edgetv" |
This file contains hidden or 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
| swagger: "2.0" | |
| info: | |
| description: "This is a telelian-media-station api server." | |
| version: "0.1.0" | |
| title: "telelian-media-station" | |
| termsOfService: "http://telelian.com/" | |
| contact: | |
| email: "[email protected]" | |
| license: | |
| name: "Unknown" |
This file contains hidden or 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
| [Unit] | |
| Description=The NGINX HTTP and reverse proxy server | |
| After=syslog.target network.target remote-fs.target nss-lookup.target | |
| [Service] | |
| Type=forking | |
| PIDFile=/run/nginx.pid | |
| ExecStartPre=/usr/local/nginx/sbin/nginx -t | |
| ExecStart=/usr/local/nginx/sbin/nginx | |
| ExecReload=/bin/kill -s HUP $MAINPID |
This file contains hidden or 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
| worker_processes auto; | |
| pid /run/nginx.pid; # for systemd | |
| events { | |
| worker_connections 1024; | |
| } | |
| # RTMP configuration | |
| rtmp { |
This file contains hidden or 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> | |
| <head> | |
| <meta charset=utf-8 /> | |
| <link href="https://unpkg.com/video.js/dist/video-js.css" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <video id="my_video_1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="360" | |
| data-setup='{}'> | |
| <source src="rtmp://192.168.0.13/live/stream" type="rtmp/flv"> |
This file contains hidden or 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
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> | |
| <!-- IE8 에서 HTML5 요소와 미디어 쿼리를 위한 HTML5 shim 와 Respond.js --> | |
| <!-- WARNING: Respond.js 는 당신이 file:// 을 통해 페이지를 볼 때는 동작하지 않습니다. --> | |
| <!--[if lt IE 9]> | |
| <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> | |
| <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | |
| <![endif]--> | |
| <!-- jQuery (부트스트랩의 자바스크립트 플러그인을 위해 필요합니다) --> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> |
This file contains hidden or 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
| public class StreamAPI { | |
| public static void main(String ...args) { | |
| Trader raoul = new Trader("Raoul", "Cambridge"); | |
| Trader mario = new Trader("Mario","Milan"); | |
| Trader alan = new Trader("Alan","Cambridge"); | |
| Trader brian = new Trader("Brian","Cambridge"); | |
| List<Transaction> transactions = Arrays.asList( | |
| new Transaction(brian, 2011, 300), | |
| new Transaction(raoul, 2012, 1000), |
This file contains hidden or 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
| List<String> names = Arrays.asList(new String("Lambda"), new String("Hello"), new String("World!"), new String("Java")); | |
| // Comparator | |
| class StringLengthComparator implements Comparator<String> { | |
| public int compare(String s1, String s2) { | |
| return new Integer(s1.length()).compareTo(new Integer(s2.length())); | |
| } | |
| } | |
| names.sort(new StringLengthComparator()); |