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
# Kirby .htaccess | |
# rewrite rules | |
<IfModule mod_rewrite.c> | |
# enable awesome urls. i.e.: | |
# http://yourdomain.com/about-us/team | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} !=localhost |
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 | |
ERRORSTRING="Whoops! That didn't work. Please check the command you ran." | |
if [ $# -eq 0 ] | |
then | |
echo "$ERRORSTRING"; | |
elif [[ "$1" == "sync" ]] | |
then | |
if [[ -z $2 ]] |
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
import * as dotenv from "dotenv"; | |
dotenv.config(); | |
import * as esbuild from "esbuild"; | |
import postcss from "postcss"; | |
import autoprefixer from "autoprefixer"; | |
import purgecss from "@fullhuman/postcss-purgecss"; | |
import { sassPlugin } from "esbuild-sass-plugin"; | |
import browserSync from "browser-sync"; | |
import copyStaticFiles from "esbuild-copy-static-files"; |
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
gestureZone.addEventListener('touchstart', function(event) { | |
touchstartX = event.changedTouches[0].screenX; | |
}, false); | |
gestureZone.addEventListener('touchend', function(event) { | |
touchendX = event.changedTouches[0].screenX; | |
handleGesture(); | |
}, false); | |
function handleGesture() { | |
if (touchendX < touchstartX && Math.abs(touchendX - touchstartX) > 150) { | |
window.location.replace(prev.href) |
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
// Simple Times Font Stack | |
$times: Times, 'Times New Roman', serif; | |
// Simple Arial Font Stack | |
$arial: Arial, sans-serif; | |
// Simple Georgia Font Stack | |
$georgia: Georgia, serif; | |
// Simple Garamond Font Stack | |
$garamond: 'Apple Garamond', 'ITC Garamond Narrow', 'Garamond', serif; | |
// Simple Helvetica Font Stack | |
$helvetica: 'Helvetica Neue', Helvetica, 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
// ====================================================================== | |
// slateengine.dev <http://slateengine.com | <hello@hashandsalt.com> | |
// ====================================================================== | |
let mix = require('laravel-mix'); | |
let CleanWebpackPlugin = require('clean-webpack-plugin'); | |
let SpritesmithPlugin = require('webpack-spritesmith'); | |
let FaviconsWebpackPlugin = require('favicons-webpack-plugin'); | |
let purgeCss = require('laravel-mix-purgecss'); |
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
window.onload = playerCard(); | |
// Generate the card | |
function playerCard() { | |
var request = new XMLHttpRequest(); | |
request.open('GET', '/assets/data/player-stats.json', true); | |
request.onload = function() { | |
if (request.status >= 200 && request.status < 400) { | |
// Success! |
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 KirbyValetDriver extends ValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName | |
* @param string $uri |
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 | |
ERRORSTRING="Whoops! That didn't work. Please check the command you ran." | |
if [ $# -eq 0 ] | |
then | |
echo "$ERRORSTRING"; | |
elif [[ "$1" == "live" ]] | |
then | |
if [[ -z $2 ]] |