I hereby claim:
- I am georgechalhoub on github.
- I am georgechalhoub (https://keybase.io/georgechalhoub) on keybase.
- I have a public key ASBbpeCjDpn8j3uDjBFbs_i6DVVxFYNS-kDIltHvJRcvSwo
To claim this, I am signing this object:
| <?php header('Content-Type: text/html; charset=utf-8'); ?> | |
| <html> | |
| <head> | |
| <title>Fix wrong encoded UTF8 characters</title> | |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
| </head> | |
| <body> | |
| <pre> | |
| <?php | |
| /* Problem description: |
I hereby claim:
To claim this, I am signing this object:
| jwplayer().on('ready', function(e) {$("#playlistDownButton").click(function() {var r = jwplayer().getPlaylistItem(jwplayer().getPlaylistIndex()).allSources; for (var i = 0; i < r.length; i++) {window.alert(r[i].file);}});}); |
| //Wait until jwplayer loads in the browser | |
| jwplayer().on('ready', function(e) { | |
| //Create the function to be launched based on button click | |
| $("#playlistDownButton").click(function() { | |
| //Get the index of the currently playing video | |
| var getIndex = jwplayer().getPlaylistIndex(); | |
| //Get the video object based on the index |
| import os | |
| def runBash(command): | |
| os.system(command) | |
| def crop(start,end,input,output): | |
| str = "ffmpeg -i " + input + " -ss " + start + " -to " + end + " -c copy " + output | |
| print str | |
| runBash(str) |