Skip to content

Instantly share code, notes, and snippets.

@IdoBn
IdoBn / jook_pi.rb
Last active Aug 29, 2015
ras pi version of jook box
View jook_pi.rb
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 Aug 29, 2015
javascript lecture
View 1.html
<!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>