I hereby claim:
- I am mrarnoldpalmer on github.
- I am mitchellvaline (https://keybase.io/mitchellvaline) on keybase.
- I have a public key ASBWJGgnzG1zx1GlixslU8PgD1TKejLQyqODJmZxpsTtDQo
To claim this, I am signing this object:
atom |
// Basic random number function to select raffle ticket | |
// Pass # of tickets as parameter | |
function raffle(tickets) { | |
return Math.floor((Math.random() * tickets) + 1); | |
} | |
var results = { | |
1: 0, | |
2: 0, |
// uses npm library request | |
var request = require('request'); | |
var async = require('async'); | |
// Define function to get steam user info from steam_id string | |
// steamid parameter must be a string | |
// interact with response body in callback | |
function GetSteamUserInfo(steamid, callback) { | |
var connectionString = 'http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=' + process.env.STEAM_API_KEY + '&steamids=' + steamid; |
var playerSchema = { | |
"steam_id": null, | |
"steam_username": null, | |
"steam_avatar_url": null, | |
"total_items_deposited_value": null, | |
"total_num_items_deposited": null, | |
"items": [{ | |
"appid": null, | |
"contextid": null, | |
"classid": null, |
var pg = require('pg'); | |
var connectionString = process.env.DATABASE_URL || 'postgres://mitchellvaline:postgres@localhost:5432/csrest'; | |
var playerSchema = { | |
"steamid": "76561198065546545", | |
"communityvisibilitystate": 3, | |
"profilestate": 1, | |
"personaname": "Barry Gibb's Chest Hair", | |
"lastlogoff": 1435695948, | |
"commentpermission": 1, |
// if statement to test for modern browser functionality | |
// | |
if ( 'querySelector' in document && 'addEventListener' in window ) { | |
// Scripts go here | |
} |
I hereby claim:
To claim this, I am signing this object: