Skip to content

Instantly share code, notes, and snippets.

View hackvish's full-sized avatar

Vishal Giri hackvish

  • Bengaluru, India
View GitHub Profile

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@hackvish
hackvish / pie.html
Created August 22, 2016 06:29
Example Pie Chart using NVD3
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.4/nv.d3.css" rel="stylesheet" type="text/css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.2/d3.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.4/nv.d3.js"></script>
<script src="https://raw.githubusercontent.com/nvd3-community/nvd3/gh-pages/examples/lib/stream_layers.js"></script>
<style>
@hackvish
hackvish / Shazam to youtube and spotify.js
Created November 7, 2015 09:50 — forked from xavhan/Shazam to youtube and spotify.js
Shazam Crawler and Youtube Searcher in the console
var data = [];
$(".ti__details").each(function(i){
var artist = $(this).find(".ti__artist meta").attr("content");
var title = $(this).find(".ti__title").attr("content");
var format = artist + " - " + title;
var yt = 'http://www.youtube.com/results?search_type=&search_query=' + encodeURI(artist + " " + title) + '&aq=f&oq=';
var spoti = 'https://play.spotify.com/search/'+ encodeURI(artist + " " + title);
var item = new Object;
console.groupCollapsed(format);
console.log(yt);