#Extract Audio from video
ffmpeg -i 'input_file' -f mp3 -ab 192000 -vn 'output.mp3'
#Remove Audio From Video
ffmpeg -i 'input_video_file' -vcodec copy -an 'output_video_file'
#Merge audio with a video. `ffmpeg -i video.mp4 -i audio.wav \
#Extract Audio from video
ffmpeg -i 'input_file' -f mp3 -ab 192000 -vn 'output.mp3'
#Remove Audio From Video
ffmpeg -i 'input_video_file' -vcodec copy -an 'output_video_file'
#Merge audio with a video. `ffmpeg -i video.mp4 -i audio.wav \
| # to use this function as a bash command add this to your bash_profile ~ root directory in windows and then reload bash profile | |
| # and you're ready to go simply type: gitPush "commit message that you want to add";; | |
| gitPush() { | |
| git add . | |
| #Here "$1" as the arugment that'll collect the mnessage for commit | |
| git commit -am "$1" | |
| git push -u origin master | |
| } |
| function checkImage(imageSrc, good, bad) { | |
| var img = new Image(); | |
| img.onload = good; | |
| img.onerror = bad; | |
| img.src = imageSrc; | |
| } | |
| //now we need to run the function written above to see if the image is loaded or not via callback | |
| checkImage( |
Name: Mahabur Rahman
Roll: 171442643
Dept: CSE(Eve)
Subject: System Analysis and Design
Assignment: Agile Development Methodology
// This example has been collected from react-Native official Project. :)
//Markup example
<View style={styles.container}>
<Text style={styles.welcome}>Welcome to React Native!</Text>
<Text style={styles.instructions}>To get started, edit App.js</Text>
{instructions}// A function that sends http POST request to PHP server by using Javascript Fetch API with async/await :)
async function POST(url, payload){
var body = Object.keys(payload).map((key) => {
return encodeURIComponent(key) + '=' + encodeURIComponent(payload[key]);
}).join('&');
let options = {| Setup of React native push notification is very easy things. But documentations and all that isn't right the way it should be. | |
| So in this short snippet I'm going to explain, How you can achieve this without any issues! | |
| #This guid is for only Android Developers for now | |
| #First step | |
| > we will use this library for push notification: https://github.com/zo0r/react-native-push-notification Install this library on with your project | |
| > and then do a link it as mentioned. But Only linking is not enough at all! |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1"> | |
| <title>Accountkit</title> | |
| </head> | |
| <body> |
| #Docker Installation: | |
| First, add the GPG key for the official Docker repository to the system: | |
| `curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -` | |
| `sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"` | |
| `sudo apt-get update` | |
| Make sure you are about to install from the Docker repo instead of the default Ubuntu 16.04 repo: | |
| `apt-cache policy docker-ce` |
| # install babel with npm or yarn | |
| `npm install --save-dev babel-cli` | |
| => add a script on `package.json` for babel with this line: `babel-node FILENAME_TO_SERVE` | |
| => install babel ES6 presets `npm install --save-dev babel-preset-es2015` | |
| => add es6 presets to `.babelrc` file `{ "presets": ["es2015"] }` | |
| #And there we go! |