Skip to content

Instantly share code, notes, and snippets.

View yoga1290's full-sized avatar

Youssef yoga1290

View GitHub Profile
@startuml
/'
PUML: https://gist.github.com/yoga1290/6ea0e57dd493d4148ac7f0183c1647eb
SVG: http://www.plantuml.com/plantuml/svg/RLDRJzim67tFhpY21spMDCae5yfbT4oRngIrOftQlXGvjPjOoYLAN9N2-E-p7KH2gIhPhh_lN1mVtrIAbMgL9evtW5YfekfxNYGhrOsaYbTXTv6dtYQFMF3vtFTE1FF5yIddlVCZtWjwPsnnklI3iwD5SD8x5U7-KYR2ZKh6fSWK5zL2JswXwN7WELRAAVGWbSmpo4pFB95F0iyEq0zn1V_2hDPwbHNT9r7c5I5SfXq4bDhIJ9T0WWxIFiGZIuj4L1JxKB50maAHL1VEY-EKeX1CEHhHwErz7zvF1lVVCBeVZWO_1kEVmzzxLbhpNgPCnTULZ596dgWM2Jo209-qI45SlKClFTjoqUv7p1Gskhi6JkPZJ3KcR9hRtIEo-VTek9-9nNKWbnOTq0v801VljttQVtabiZHRBBNsVDE2qZa9t0tz24ho26_03VHVKWEqMminMmtFRl-tmpzZ3RyZwmv2G-I2e5gbPBPDg2iVA65-7jBMTtpPkg2lWzjVksweRO9Fj33XTzGZV4rj6gOuF8ILdscr6PsFjuKQTDYWxH68zlz0v9LFvodg8ymbN3FIzomx_FujE5FYBKCJk5T812ipcKKFfIxX47poQY3SMGthxr3d5UjO9W94Ac7gNwZZjDH6fU1oOTQrOerfdwweE-pzT32rKGC9JA3U4aeanTIC9gTcfhZMKUiUcmpww21NiIZNiX9D-ep7BOUuD2ymMwMXA94lcxTeNb-byiAv4HdNB_y_
PNG: http://www.plantuml.com/plantuml/png/RLDRJzim67tFhpY21spMDCae5yfbT4oRngIrOftQlXGvjPjOoYLAN9N2-E-p7KH2gIhPhh_lN1mVtrIAbMgL9evtW5Yfekf

Keybase proof

I hereby claim:

  • I am yoga1290 on github.
  • I am yoga1290 (https://keybase.io/yoga1290) on keybase.
  • I have a public key ASAy_fReONGsfOyXENj_mSYMmC7JxmT5YlbasorqWZ531wo

To claim this, I am signing this object:

@yoga1290
yoga1290 / DownloadYTVideo.js
Created July 11, 2016 18:13
Youtube video downloader script
// go to the youtube video page using iPhone as user-agent and run the following script:
var xhr=new XMLHttpRequest();
xhr.open("GET",location.href,true);
xhr.onload=function(){
var r=xhr.responseText;
r=r.substring(r.indexOf('url_encoded_fmt_stream_map'),r.length);
r=r.substring(r.indexOf('url=http')+4,r.length);
r=r.split('url=');
location.href=
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script>
<script src="http://builds.emberjs.com/ember-latest.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<meta name="description" content="working accurate map" />
<html>
<!--
Created using jsbin.com
Source can be edited via http://jsbin.com/yipeh/2/edit
-->
<!--
Created using jsbin.com
Source can be edited via http://jsbin.com/qipif/22/edit
-->
<meta name="description" content="more accurate map" />
<html>
<!--
Created using jsbin.com
Source can be edited via http://jsbin.com/qipif/22/edit
-->
<body>
<div id="mydiv"></div>
<div id="info"></div>
<canvas id="canvas"></canvas>
body {
font-family: Helvetica, Arial, sans-serif;
}
body {
font-family: Helvetica, Arial, sans-serif;
}
body {
font-family: Helvetica, Arial, sans-serif;
}
body {
font-family: Helvetica, Arial, sans-serif;
}