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 | |
// define the path and name of cached file | |
$cachefile = 'cached-files/'.date('M-d-Y').'.php'; | |
// define how long we want to keep the file in seconds. I set mine to 5 hours. | |
$cachetime = 18000; | |
// Check if the cached file is still fresh. If it is, serve it up and exit. | |
if (file_exists($cachefile) && time() - $cachetime < filemtime($cachefile)) { | |
include($cachefile); | |
exit; | |
} |
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
body { | |
background: #222 !important; | |
color: #969696; | |
} | |
code { | |
padding: 2px 4px !important; | |
} | |
a:hover { | |
color: #999; | |
} |
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
<cfscript> | |
/* | |
Script: DataTables server-side script for ColdFusion (short script style) and MySQL | |
License: GPL v2 or BSD (3-point) | |
ReWrite: 12/12/2011 John Fournier | |
Notes: Adobe ColdFusion 9 + limited inline documentation used, see other long examples for explanation | |
*/ | |
datasource = 'jQueryDTable'; // set to your ColdFusion database | |
sTable = 'ajax'; // your table | |
aColumns = ['engine','browser','platform','version','grade']; // your columns |
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
*, html, html *, body, body * { | |
-webkit-font-smoothing: antialiased !important; | |
-moz-osx-font-smoothing: grayscale !important; | |
text-rendering: geometricPrecision !important; | |
} | |
body { | |
word-spacing: -1px; | |
-webkit-font-smoothing: auto; | |
} |
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
.full-width { | |
width: 100vw; | |
position: relative; | |
left: 50%; | |
right: 50%; | |
margin-left: -50vw; | |
margin-right: -50vw; | |
} |
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 lang="en"> | |
<head> | |
<title>Color gradient</title> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono:400,700" rel="stylesheet"> | |
<link rel="stylesheet" href="/style.css"> | |
<script src="/script.js" defer></script> |
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
#!/bin/bash | |
ACCESS_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
ENVIRONMENT=production | |
REVISION=`git log -n 1 --pretty=format:"%H"` | |
COMMENT=`cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g'` | |
ROLLBAR_USER=xxxxxxxxxx | |
curl https://api.rollbar.com/api/1/deploy/ \ | |
-F access_token=$ACCESS_TOKEN \ |
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
{ | |
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.42 Safari/537.36", | |
"lighthouseVersion": "3.0.3", | |
"fetchTime": "2018-08-19T19:35:41.503Z", | |
"requestedUrl": "https://localweather.io/", | |
"finalUrl": "https://localweather.io/", | |
"runWarnings": [], | |
"audits": { | |
"is-on-https": { | |
"id": "is-on-https", |
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
# get/start the offical docker installer | |
curl -sSL https://get.docker.com | sh | |
# set docker to auto-start | |
sudo systemctl enable docker | |
# start the docker daemon | |
sudo systemctl start docker | |
# enable docker client |
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
html { | |
background: #404552 !important; | |
} | |
body { | |
background: #404552; | |
color: #d3dae3; | |
} | |
a { |