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
for file in `find . -name '*.mp4'` | |
do | |
echo "This is the file: " $file | |
DURATION=`ffprobe -i $file -show_format -v quiet | sed -n 's/duration=//p'` | |
echo "Duration: " $DURATION | |
FINAL=`echo "$DURATION - 10" | bc` | |
echo "Final Duration: " $FINAL | |
ffmpeg -i $file -t $FINAL -c copy $file.mp4 | |
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
function getQueryVariable(variable){ | |
var query = window.location.search.substring(1); | |
try { | |
query = decodeURI(query); | |
} catch(e) { | |
console.error(e); | |
} | |
var vars = query.split("&"); | |
for (var i=0;i<vars.length;i++) { | |
var pair = vars[i].split("="); |
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
'use restrict'; | |
/** | |
* Module dependences. | |
*/ | |
var mongoose = require('mongoose'); | |
/** | |
* load up the material model. | |
*/ |
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
<div class="row"> | |
<div class="col-md-12"> | |
<h2>Compras a proveedores</h2> | |
<div class="compra-proveedor-container"></div> | |
<div class="page 1"> | |
Page1 | |
</div> | |
<div class="page 2"> | |
Page2 | |
</div> |
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
app.use(getHost, sessionset); | |
sessionset({ | |
secret: 'sysetup-x', | |
resave: false, | |
saveUninitialized: false, | |
name: 'session-x', | |
cookie: { | |
domain: host //var host; //Store hostname get with getHost function. | |
} |
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
https://stackoverflow.com/a/31557814/3363138 | |
function simpleStringify(object) { | |
var simpleObject = {}; | |
for (var prop in object) { | |
if (!object.hasOwnProperty(prop)) { | |
continue; | |
} | |
if (typeof (object[prop]) == 'object') { | |
continue; |
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
'use restrict'; | |
/** | |
* Local module dependences. | |
*/ | |
var db = require('./db'); | |
/** | |
* Function that get all data entered in the signup form, check if user exist calling db.engine.findByUsername() function. Return the properly messages to the view according if user exist and password match. | |
* |
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
<div class="list-group"> | |
<!-- loop over blog posts and render them --> | |
<% posts.forEach((post) => { %> | |
<a href="/post/<%= post.id %>" class="list-group-item"> | |
<h4 class="list-group-item-heading"><%= post.title %></h4> | |
<p class="list-group-item-text"><%= post.author %></p> | |
</a> | |
<% }) %> | |
</div> |
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 express = require('express'); | |
var app = express(); | |
var server = app.listen(3000); | |
function logger(req,res,next){ | |
console.log(new Date(), req.method, req.url); | |
next(); | |
} |
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
<div class="load-container"> | |
<img src="img/logo.gif" alt="logo" class="loading"/> | |
</div> | |
<div> | |
<img src="img/sequence/Frame0001.jpg" alt="" class="sequence" id="myimg"> | |
</div> |
NewerOlder