Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>GodaddyCollabClient</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://img1.wsimg.com/ux/1.3.10-brand/css/uxcore.min.css">
reservation page
display info
countdown timer
different view if you have no reservation
cancel reservation
refresh data?
restaurant page
finish displaying info
make reservation
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
df = pd.read_excel('data.xlsx', sheetname="Sheet1")
# Highest Batting Average
high = df.loc[df['Batting Average'].idxmax()]
print("Player with the highest batting average - " + high["PLAYER"] + " - " + str(high["Batting Average"]))
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':AndroidCompat:compileKotlin'.
> Compilation error. See log for more details
* Try:
Run with --info or --debug option to get more log output.
* Exception is:
@Ligerx
Ligerx / headers.txt
Last active May 28, 2018 20:30
Tachiweb-upload-error
Request URL: http://localhost:4567/api/restore_file
Request Method: POST
Status Code: 200 OK
Remote Address: [::1]:4567
Referrer Policy: no-referrer-when-downgrade
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: text/html;charset=utf-8
Date: Mon, 28 May 2018 18:45:18 GMT
// Keeping this pretty simple. Dynamically find the nearest week, hardcode everything else (workspace id, project ids, time span rules).
// Made into bookmarklet with https://chriszarate.github.io/bookmarkleter/
// Javascript time zone is a pain in the ass. Some things use UTC, some use local time zone. It's really easy to screw up.
// Javascript date object is weird when initializing it manually. When using "yyyy-mm-dd", it implicitly uses UTC 00:00. But using some other format like "yyyy/mm/dd" inits based on local timezone.
// https://stackoverflow.com/a/31732581 see the comments
// Find the nearest past Sat (or today if it's Sat), then look at the previous Sat-Fri date range.
function getDateRange(date = new Date()) {
const lastSat = new Date(date)