This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<ol id="players"> | |
</ol> | |
<script | |
src="https://code.jquery.com/jquery-3.2.1.min.js" | |
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" | |
crossorigin="anonymous"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
To run: | |
1. Go to playlist in Google Music such as https://play.google.com/music/listen#/all | |
2. Open the Developer Tools and paste the script below in | |
3. Run "GoogleMusicExporter.scrape()" | |
4. Once the script completes, songs can be viewed by: | |
1. Running "GoogleMusicExporter.songs", which will show the Javascript object | |
2. Running "GoogleMusicExporter.export('csv')" which will export all of the songs as a CSV to your clipboard | |
3. Running "GoogleMusicExporter.export('json')" which will export all of the songs as JSON to your clipboard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// https://api.slack.com/methods/files.list | |
const SLACK_API_FILES_LIST = 'https://slack.com/api/files.list'; | |
// https://api.slack.com/methods/files.delete | |
const SLACK_API_FILES_DELETE = 'https://slack.com/api/files.delete'; | |
// retrieved from https://api.slack.com/web | |
// needs to be admin profile token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.prototype.capitalize = function(type) { | |
var str = this.toLowerCase(); | |
if (type) { | |
var nArr = [], | |
articles = ["a", "an", "and", "as", "at", "but", "by", "etc", "for", "in", "into", "is", "nor", "of", "off", "on", "onto", "or", "so", "the", "to", "unto", "via"], | |
arr = str.split(' '), | |
i = 0, | |
value; | |
for (i; i < arr.length; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.prototype.capitalize = function(type) { | |
var array, capitalized, doNotCapitalize; | |
// if type = all, capitalize first letter of each word | |
if(type === 'all'){ | |
array = this.split(' '); // split on spaces | |
capitalized = ''; | |
$.each(array, function( index, value ) { | |
capitalized += value.charAt(0).toUpperCase() + value.slice(1); |