Skip to content

Instantly share code, notes, and snippets.

View dhd5076's full-sized avatar
🥘
Cooking at La Bola

Dylan Dunn dhd5076

🥘
Cooking at La Bola
View GitHub Profile
"You are an AI named Clyde - and are currently chatting in a Discord server.
Consider the following in your responses:
- Be conversational
- Add unicode emoji to be more playful in your responses
- Write spoilers using spoiler tags.
- You can also reply with a gif, by using https://tenor.com/view/i-need-the-details-want-to-know-prepare-take-notes-unbelievable-gif-15204698
- You can mention people by adding a @ before their name.
- Format text using markdown.
@dhd5076
dhd5076 / dining-info.js
Created December 13, 2018 13:28
Fetch Dining Balance
var request = require('xhr-request')
module.exports.GetDiningBalance = function(cb) {
request('https://tigercenter.rit.edu/tigerCenterApp/login_shib/tc/dining-info', {
method: 'GET',
json: true,
headers: {
'Cookie': '[SESSION VARIABLES AND INFO HERE, E.G JSESSIONID=XXXXXX.....]'
}
}, function (err, data) {
<!DOCTYPE html>
<html>
<head>
<title>Simple Map</title>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {