Skip to content

Instantly share code, notes, and snippets.

@IdoBn
IdoBn / jook_pi.rb
Last active December 16, 2021 02:51
ras pi version of jook box
require 'json'
require 'rest-client'
URL = "http://music-hasalon-api.herokuapp.com"
AWS_URL = 'http://ec2-54-85-146-44.compute-1.amazonaws.com:8989/api/info?url='
$current_song = nil
def direct_url(yt_link)
JSON.parse(RestClient.get("#{AWS_URL}#{yt_link.split('&feature=')[0]}"))["direct_url"]
@IdoBn
IdoBn / 1.html
Last active December 16, 2021 02:50
javascript lecture
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<title>class</title>
</head>
<body>
<h1>Hi Guys!</h1>
<form>