Skip to content

Instantly share code, notes, and snippets.

View aldhinya's full-sized avatar
😂
I may be slow to respond.

Fadhilatur Rochman aldhinya

😂
I may be slow to respond.
View GitHub Profile
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<audio id="youtube" autoplay controls loop></audio>
<script type="text/javascript">
var vid = "3r_Z5AYJJd4",
audio_streams = {};
$.get('https://cors-anywhere.herokuapp.com/https://www.youtube.com/get_video_info?video_id=' + vid, function(data) {
var data = parse_str(data),
streams = (data.url_encoded_fmt_stream_map + ',' + data.adaptive_fmts).split(',');
console.log(streams);
function ASSetCookie(a,b,c){var d=new Date;d.setDate(d.getDate()+c);var e=escape(b)+(0==c?";path=/":"; expires="+d.toUTCString())+";path=/";document.cookie=a+"="+e}function ASGetCookie(a){var b,c,d,e=document.cookie.split(";");for(b=0;b<e.length;b++)if(c=e[b].substr(0,e[b].indexOf("=")),d=e[b].substr(e[b].indexOf("=")+1),c=c.replace(/^\s+|\s+$/g,""),c==a)return unescape(d)}function ASSetCookieAds(a,b){var c=ASGetCookie(a);void 0!=c&&""!=c?(ASTheCookieInt=parseInt(c)+1,ASSetCookie(a,ASTheCookieInt.toString(),0)):ASSetCookie(a,"1",b)}function ASMaxClick(a,b){var c=ASGetCookie(a);return void 0!=c&&parseInt(c)>=b?!0:!1}jQuery(document).ready(function(a){var b="adsShield",c=7,d=3,e=".adsShield",f=!1;ASMaxClick(b,d)&&a(e).hide("fast"),a(e).bind("mouseover",function(){f=!0}).bind("mouseout",function(){f=!1}),a(window).on("beforeunload",function(){f&&(ASMaxClick(b,d)?a(e).hide("fast"):ASSetCookieAds(b,c))})});
@aldhinya
aldhinya / menu_linked_list.cpp
Created April 8, 2018 13:59
Masih Beta Bro
#include <iostream>
#include <cstdlib>
#include <windows.h>
using namespace std;
struct simpul
{
int data;
simpul *next;
@aldhinya
aldhinya / data.h
Last active April 24, 2018 15:10
Modul 1 Praktikum
#ifndef DATA_H_INCLUDED
#define DATA_H_INCLUDED
struct
{
char nama[50];
char kelas[10];
char npm[50];
} dataMahasiswa[50];
@aldhinya
aldhinya / tambah_belakang_double.cpp
Created April 25, 2018 15:02
Script Linked List C++
#include <iostream>
#include <conio.h>
#include <stdio.h>
#include <windows.h>
using namespace std;
struct simpul
{
int data;
@aldhinya
aldhinya / hapus_ganjil_kelipatan_3.cpp
Last active April 25, 2018 15:11
Tugas Linked List Bu Tutuk
#include <iostream>
#include <conio.h>
#include <stdlib.h>
using namespace std;
struct simpul
{
int data;
simpul *next;
#include <iostream>
using namespace std;
struct Barang {
int nilai;
Barang *next;
} *depan = NULL, *belakang = NULL, *bantu = NULL;
int main() {
@aldhinya
aldhinya / stack.cpp
Last active May 8, 2018 12:43
Stack Bu Tutuk
#include <iostream>
#include <windows.h>
#include <conio.h>
using namespace std;
int main()
{
int stack_arr[100];
int top=-1;
@aldhinya
aldhinya / modul-2.md
Last active May 8, 2018 12:51
Modul 2 Source Code. Do not copy!!! Copyright @aldhinya
@aldhinya
aldhinya / contoh-linked-list.md
Last active May 8, 2018 12:52
Contoh Script Linked List by @grikomsn