Skip to content

Instantly share code, notes, and snippets.

View dope's full-sized avatar

Joe Richardson dope

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dope on github.
  • I am jrich (https://keybase.io/jrich) on keybase.
  • I have a public key ASCEoewcWHTNEw_JHh-RlpLaBV0-xH8oucS2tDP8CKxBEAo

To claim this, I am signing this object:

@dope
dope / dribbble.js
Last active July 15, 2017 09:01
Pure JS stab at Dribbble API
var user = 'dope';
var limit = 9;
var accessToken = 'TOKEN';
var dribbble = new XMLHttpRequest();
dribbble.responseJSON = null;
dribbble.open('GET', 'https://api.dribbble.com/v1/users/'+user+'/shots?access_token='+accessToken, true);
dribbble.onload = function() {
if (dribbble.status >= 200 && dribbble.status < 400) {
<iframe style="border:0;" src="{YouTube URL here}?cc_load_policy=0&autoplay=0&controls=0&showinfo=0&rel=0" frameborder=”0″ allowfullscreen></iframe>