Skip to content

Instantly share code, notes, and snippets.

Avatar

David Mieloch drumnation

View GitHub Profile
@drumnation
drumnation / fizzBuzz.js
Last active Jan 23, 2018
Quick solution to fizz buzz
View fizzBuzz.js
for (let i = 1; i < 100; i++) {
const fizz = i % 3 === 0;
const buzz = i % 5 === 0;
if (fizz && buzz) console.log("fizz buzz");
else if (fizz) console.log("fizz");
else if (buzz) console.log("buzz");
else console.log(i);
}
// console output
@drumnation
drumnation / album.json
Created Jan 19, 2019
Slaughter of the Soul - Album Data
View album.json
{
"album_type": "album",
"artists": [
{
"external_urls": {
"spotify": "https://open.spotify.com/artist/6YXarbjg36ODFPez0PnOlD"
},
"href": "https://api.spotify.com/v1/artists/6YXarbjg36ODFPez0PnOlD",
"id": "6YXarbjg36ODFPez0PnOlD",
"name": "At The Gates",
@drumnation
drumnation / artist.json
Created Jan 19, 2019
At the Gates Artist Data
View artist.json
{
"external_urls": {
"spotify": "https://open.spotify.com/artist/6YXarbjg36ODFPez0PnOlD"
},
"followers": {
"href": null,
"total": 111477
},
"genres": [
"brutal death metal",
@drumnation
drumnation / track.json
Created Jan 19, 2019
Suicide Nation by At the Gates Data
View track.json
{
"album": {
"album_type": "album",
"artists": [
{
"external_urls": {
"spotify": "https://open.spotify.com/artist/6YXarbjg36ODFPez0PnOlD"
},
"href": "https://api.spotify.com/v1/artists/6YXarbjg36ODFPez0PnOlD",
"id": "6YXarbjg36ODFPez0PnOlD",
@drumnation
drumnation / audio-analysis.json
Created Jan 20, 2019
Audio Analysis of Suicide Nation by At the Gates
View audio-analysis.json
{
"meta": {
"analyzer_version": "4.0.0",
"platform": "Linux",
"detailed_status": "OK",
"status_code": 0,
"timestamp": 1441871585,
"analysis_time": 9.94627,
"input_process": "libvorbisfile L+R 44100->22050"
},
@drumnation
drumnation / audio-features.json
Created Jan 20, 2019
Audio Features for Suicide Nation from Spotify API
View audio-features.json
{
"danceability": 0.245,
"energy": 0.981,
"key": 7,
"loudness": -7.555,
"mode": 1,
"speechiness": 0.17,
"acousticness": 0.00000242,
"instrumentalness": 0.936,
"liveness": 0.222,
@drumnation
drumnation / metal-category-playlists.json
Created Jan 20, 2019
Spotify Metal Category Playlists
View metal-category-playlists.json
{
"playlists": {
"href": "https://api.spotify.com/v1/browse/categories/metal/playlists?offset=0&limit=20",
"items": [
{
"collaborative": false,
"external_urls": {
"spotify": "https://open.spotify.com/playlist/37i9dQZF1DWTcqUzwhNmKv"
},
"href": "https://api.spotify.com/v1/playlists/37i9dQZF1DWTcqUzwhNmKv",
@drumnation
drumnation / single-browse-category.json
Created Jan 20, 2019
Spotify single browse category
View single-browse-category.json
{
"href": "https://api.spotify.com/v1/browse/categories/metal",
"icons": [
{
"height": 274,
"url": "https://t.scdn.co/media/original/metal_27c921443fd0a5ba95b1b2c2ae654b2b_274x274.jpg",
"width": 274
}
],
"id": "metal",
@drumnation
drumnation / get-users-profile.json
Last active Jan 20, 2019
Spotify Get User Profile
View get-users-profile.json
{
"birthdate": "1983-03-31",
"country": "US",
"display_name": "David Miles",
"email": "davidmiles@milk.com",
"external_urls": {
"spotify": "https://open.spotify.com/user/128455501"
},
"followers": {
"href": null,
@drumnation
drumnation / user-top-artist-track.json
Created Jan 20, 2019
Get User's Top Artists and tracks
View user-top-artist-track.json
{
"items": [
{
"album": {
"album_type": "ALBUM",
"artists": [
{
"external_urls": {
"spotify": "https://open.spotify.com/artist/5akVqMzdZOdbMYbE4vNZWD"
},