This file contains 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
// The code that's returned as a query parameter to the redirect URI | |
var code = ''; | |
// Retrieve an access token and a refresh token | |
spotifyApi.authorizationCodeGrant(code) | |
.then(function(data) { | |
console.log('The token expires in ' + data.body['expires_in']); | |
console.log('The access token is ' + data.body['access_token']); | |
console.log('The refresh token is ' + data.body['refresh_token']); |
This file contains 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
var SpotifyWebApi = require('spotify-web-api-node'); | |
var scopes = ['user-read-private', 'user-read-email', 'playlist-modify-public'], | |
redirectUri = '', | |
clientId = '', | |
state = ''; | |
var spotifyApi = new SpotifyWebApi({ | |
clientId : '', | |
clientSecret : '', |
This file contains 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
.text | |
.global trailing_zeros | |
.type trailing_zeros, %function | |
word .req r0 | |
zero .req r1 | |
temp .req r2 | |
count .req r3 | |
countdown .req r4 |
This file contains 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
@Takes in 3 parameters, (A,B,C) and returns the result of | |
@(A + (B * C)) | |
.text | |
.global mac | |
.type mac, %function | |
aye .req r0 | |
bee .req r1 | |
cee .req r2 |
This file contains 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
@Description reads in three parameters, runs a subroutine | |
@and prints the results of the subroutine | |
.text | |
.global main | |
.type main, %function | |
aye .req r1 | |
bee .req r2 | |
cee .req r3 |
This file contains 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
<VirtualHost Local.IP.Address:443> | |
DocumentRoot /var/www/html | |
ServerName www.example.com | |
SSLEngine on | |
SSLCertificateFile /var/www/html/ssl/cert.crt | |
SSLCertificateKeyFile /var/www/html/ssl/key.key | |
<Directory "/var/www/html"> | |
AllowOverride All | |
</Directory> |
This file contains 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
## | |
## Cloudflare (cloudflare.com) | |
## | |
daemon=1800 | |
use=web, web=ipinfo.io/ip, web-skip='IP Address' | |
ssl=yes | |
protocol=cloudflare, \ | |
server=www.cloudflare.com, \ | |
login=*cloudflare-email* \ | |
password=*cloudflare-global-api-key* \ |