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
| 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 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
| 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 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
| <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 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
| 'use restrict'; | |
| /** | |
| * Module dependences. | |
| */ | |
| var mongoose = require('mongoose'); | |
| /** | |
| * load up the material model. | |
| */ |
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
| 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 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
| 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 |
OlderNewer