Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
http://stackoverflow.com/questions/12168452/long-lasting-fb-access-token-for-server-to-pull-fb-page-info/21927690#21927690 | |
Having found that it is possible to generate a Facebook Page Access Token that does not expire (with help from @Igy), here is a clear, step-by-step quide for all those looking to the same: | |
1. Make sure you are the admin of the FB page you wish to pull info from | |
2. Create a FB App (should be with the same user account that is the page admin) | |
3. Head over to the Facebook Graph API Explorer | |
4. On the top right, select the FB App you created from the "Application" drop down list | |
5. Click "Get Access Token" | |
6. Make sure you add the manage_pages permission |
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
for (var i = 0; i < 1024 * 1024; i++) { | |
process.nextTick(function () { Math.sqrt(i) } ) | |
} |
const resursaModel = require('../../models/resursa-red'); | |
const competenteS = require('../../models/competenta-specifica'); | |
module.exports = (params) => { | |
return resursaModel.find({_id: params.idres}).populate({ | |
path: 'competenteS' | |
}).exec().then( (resursa) => { | |
// console.log(resursa); | |
if (resursa[0].content) { | |
let articleHTML = ''; | |
resursa[0].content.blocks.map(obj => { |
<div class="canvas"> | |
<div id="totalCounter" class="total-counter"></div> | |
<div id="clap" class="clap-container"> | |
<i class="clap-icon fa fa-hand-paper-o"></i> | |
</div> | |
<div id="clicker" class="click-counter"> | |
<span class="counter"></span> | |
</div> |
var async = require('async'); | |
// Send email | |
var sendEmail = function(email,callback) { | |
console.log("Sending email to "+email); | |
callback(null); | |
} | |
// create a queue object with concurrency 2 | |
var q = async.queue(sendEmail,2); |
const express = require('express'); | |
const bodyparser = require('body-parser'); | |
var arDrone = require('ar-drone'); | |
const router = express.Router(); | |
const app = express(); | |
const commands = ['takeoff', 'land','up','down','goleft','goright','turn','goforward','gobackward','stop']; | |
var drone = arDrone.createClient(); | |
// disable emergency | |
drone.disableEmergency(); |
var ffmpeg = require('ffmpeg'); | |
try { | |
var process = new ffmpeg('example.mp4'); | |
process.then(function (video) { | |
console.log('The video is ready to be processed'); | |
var watermarkPath = 'watermark-suissa.png', | |
newFilepath = './video-com-watermark.mp4', | |
settings = { | |
position : "SE" // Position: NE NC NW SE SC SW C CE CW |
#add 'node_modules' to .gitignore file | |
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin master |