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
// Server sends GMT, adjust to local time. | |
var localDate = new Date(data.date) | |
localDate = new Date(localDate.getTime() - (localDate.getTimezoneOffset() * 60 * 1000)) |
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
#!/bin/bash | |
SERVER_HEAD=`ssh $1 "cd /var/www/apps/$2/current && git rev-parse HEAD"` | |
echo $SERVER_HEAD | |
git log --graph --oneline $SERVER_HEAD..HEAD |
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
/** | |
* This script when Publish / Deployed as a web app, | |
* will turn a Google sheet into an API that can communicate with a GameSalad game through it's Network Behaviors. | |
* | |
* For this example, table column type and name information is stored in the first two rows. | |
* Table row name information is in the first column. | |
* | |
* POST: Table data is stored in sheet in the document matching the table's tableId | |
* GET: The script will respond with a GameSalad Table pulling data from the sheet matching the 'tableId' parameter. | |
*/ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<link rel="stylesheet" type="text/css" href="css/gse-style.css" /> | |
<link rel="stylesheet" type="text/css" href="css/gse-style-loading.css" /> | |
<style type="text/css"> | |
body { |