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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="google" content="notranslate"> | |
<meta name="robots" content="noindex,nofollow"> | |
<title>github.com/chrisdlangton/persistJS</title> | |
<meta name="language" content="EN"> | |
<script src="//code.jquery.com/jquery-latest.min.js" type="text/javascript"></script> | |
<style type="text/css"> |
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
.toggle { | |
margin: 0 auto; | |
max-width: 400px; | |
} | |
.toggle-label { | |
font-size: 16px; | |
background: #fff; | |
padding: 1em; | |
cursor: pointer; |
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
section{ | |
width: 200px; | |
height: 200px; | |
position: relative; | |
left: 50%; | |
top: 1em; | |
margin-left: -100px; | |
overflow: hidden; | |
background: #292929; | |
border: 10px solid #fff; |
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
*{box-sizing: border-box;} | |
nav{ | |
width: 20%; | |
min-width: 18em; | |
margin: 0 auto; | |
} | |
h1{ | |
position: relative; | |
display: inline-block; | |
font: 2em/1em sans-serif; |
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
#container {position:fixed; top:20%; left:45%;} | |
#button-t { | |
width:80px; | |
height:20px; | |
display:block; | |
font-family:Arial, "Helvetica", sans-serif; | |
font-size:14px; | |
font-weight:bold; | |
color:#fff; |
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
.container { | |
margin: 60px auto; | |
width: 400px; | |
text-align: center; | |
} | |
.container .progress { | |
margin: 0 auto; | |
width: 400px; | |
} |
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
<?php | |
class Dictionary { | |
private $data = []; | |
public function __construct(array $data) { | |
$this->data = $data; | |
} | |
public function validate(array $data): void { | |
if (array_keys($data) === array_keys(array_values($data))) { | |
throw new Exception( | |
'Dictionary::validate Dictionary must be indexed by keys' |
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
protocol CacheKeyStore | |
prop storeName = 'my cache key store name' | |
prop delimiter = '|' | |
func <void> | |
set => <str> cacheKey, | |
<str> json | |
func <str|cacheKey> | |
makeKey => <str> __CLASS__, | |
<str> __METHOD__, | |
<str> handledInput |
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
version: "2" | |
services: | |
mysql: | |
container_name: MelbDatathon2017mysql | |
image: mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: admin | |
volumes: | |
- ./var/db_data:/var/lib/mysql | |
- ./Code:/var/lib/mysql-files/Code |
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
FROM python:2.7-alpine | |
MAINTAINER Christopher Langton <chris@devopsatscale.com.au> | |
WORKDIR /opt/melbdatathon2017 | |
RUN apk update && \ | |
apk upgrade && \ | |
apk add --update curl git mysql-client bash jq && \ | |
rm -rf /var/cache/apk/* ~/cache/pip/* | |
RUN pip install --no-cache-dir --upgrade pip |
OlderNewer