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
var ffmpeg = require('fluent-ffmpeg'); | |
var axios = require('axios'); | |
// make sure you set the correct path to your video file | |
var proc = ffmpeg('./input.mp4') | |
.videoFilters({ | |
filter: 'drawtext', | |
options: { | |
fontfile:'font.ttf', | |
text: 'THIS IS TEXT', |
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
axios({ | |
method: "get", | |
url: rec_Url, | |
responseType: "stream" | |
}).then(function (response) { | |
response.data.pipe(fs.createWriteStream("./my.mp3")); | |
}).then(() => { | |
// From a local path... | |
mm.parseFile('./my.mp3') | |
.then(metadata => { |
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
var tee = require('./dntopics-1'); | |
var checkLang = (inputText) => { | |
if (inputText !== undefined || inputText !== null) { | |
inputText = inputText.toLowerCase(); | |
var yoruba = ['yoruba', 'ilorin'] | |
var hausa = ['hausa', "kano", "sokoto", "kaduna"] | |
var english = ['english'] | |
var arabic = ['arabic'] |
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
var app = require('express')(); | |
var GridStore = require('mongodb').GridStore; | |
var ObjectID = require('mongodb').ObjectID; | |
var MongoClient = require('mongodb').MongoClient; | |
var Server = require('mongodb').Server; | |
var dbConnection; | |
MongoClient.connect("mongodb://localhost:27017/ersatz?auto_reconnect", {journal: true}, function(err, db) { | |
dbConnection = db; | |
app.listen(3000); |
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
/** | |
* Modify the parts you need to get it working. | |
*/ | |
var should = require('should'); | |
var request = require('../node_modules/request'); | |
var io = require('socket.io-client'); | |
var serverUrl = 'http://localhost'; |
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
<!-- Taskbar --> | |
<div class="taskbar"> | |
<div class="icons"> | |
<div class="icons-left"> | |
<a href="#start-menu-modal" id="start-menu"><i class="fab fa-windows"></i></a> | |
<a href="#search" id="search"></a> | |
<a href="#tabs" id="tabs-windows"></a> | |
<a href="#" class="px"></a> | |
<a href="#folder" id="folder" class="border"></a> | |
<a href="#chrome-pop-up" id="chrome" class="border"></a> |
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 id="app"> | |
<v-modal> | |
<v-btn slot="activator" primary >open</v-btn> | |
<v-container class="modal-container"> | |
<v-select v-model="item" :items="items"> | |
</v-container> | |
</v-modal> | |
</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
<div id="app"> | |
<b-card-group deck | |
class="mb-3"> | |
<b-card bg-variant="primary" | |
text-variant="white" | |
header="Primary" | |
class="text-center"> | |
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | |
</b-card> | |
<b-card bg-variant="secondary" |
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 id="app"> | |
<b-card-group deck | |
class="mb-3"> | |
<b-card bg-variant="primary" | |
text-variant="white" | |
header="Primary" | |
class="text-center"> | |
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | |
</b-card> | |
<b-card bg-variant="secondary" |
NewerOlder