A simple App using Vue.js & Firebase with Auth.
See the DEMO.
| /* ============================================ | |
| * bootstrap-infiniteScroll.js | |
| * ============================================ */ | |
| !function ($) { | |
| 'use strict'; | |
| var InfiniteScroll = function (el, options) { | |
| this.$element = $(el); | |
| this.$data = $(el).data(); | |
| this.$options = options; |
A simple App using Vue.js & Firebase with Auth.
See the DEMO.
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| /* | |
| * Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
| */ | |
| var http = require('http'), | |
| fs = require('fs'), | |
| util = require('util'); | |
| http.createServer(function (req, res) { | |
| var path = 'video.mp4'; |
Provided that you already have a file or stream segmenter generating your .m3u8 playlist and .ts segment files (such as the ffmpeg 'hls' muxer), this little node server will serve up those files to an HLS compatible client (e.g. Safari). If you're using node for your streaming app already, this obviates the need to serve the HLS stream from a separate web server.
loosely based on https://gist.github.com/bnerd/2011232
// loosely based on https://gist.github.com/bnerd/2011232
// requires node.js >= v0.10.0
// assumes that HLS segmenter filename base is 'out'
// and that the HLS playlist and .ts files are in the current directory| <?php | |
| /** | |
| * Description of VideoStream | |
| * | |
| * @author Rana | |
| * @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
| */ | |
| class VideoStream | |
| { | |
| private $path = ""; |
| var fetch = require('node-fetch') | |
| async function getDataFromAPI() { | |
| let response = await fetch("https://api.github.com/users/up1") | |
| let data = await response.json() | |
| console.log(JSON.stringify(data, null, "\t")) | |
| } | |
| getDataFromAPI() |
| #!/usr/bin/env sh | |
| # checks to see if running | |
| launchctl list | grep elasticsearch | |
| launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist | |
| launchctl remove homebrew.mxcl.elasticsearch | |
| pkill -f elasticsearch |
| #!/usr/bin/env sh | |
| # checks to see if running | |
| launchctl list | grep mongo | |
| launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
| launchctl remove homebrew.mxcl.mongodb | |
| pkill -f mongod |