Skip to content

Instantly share code, notes, and snippets.

View nathobson's full-sized avatar
Ship it

Nat Hobson nathobson

Ship it
View GitHub Profile
// Elements exit at the same speed
.info span {
opacity: 0;
transition: opacity 1s ease;
}
.info .right button {
opacity: 0;
transition: opacity 1s ease;
}
/**************************************************************
-> Usage: @include aspect-ratio(16, 9);
**************************************************************/
@mixin aspect-ratio($width, $height) {
position: relative;
&::before {
display: block;
content: "";
width: 100%;
/**************************************************************
-> Usage: @include fluid-type(650px, 1600px, 16px, 32px);
**************************************************************/
@function strip-unit($value) {
@return $value / ($value * 0 + 1);
}
@mixin fluid-type($min-vw, $max-vw, $min-font-size, $max-font-size) {
$u1: unit($min-vw);
$u2: unit($max-vw);
/*eslint-disable */
/*! Developed by Illimar Pihlamäe | e-mail: [email protected] | Euroland Estonia © 2014 | e-mail: [email protected] */
var EurolandToolIntegrationObject = new function() {
var This = this,
iFrameArr = [], //an array, that holds all of the iframes
hasScrollBar = false,
IE_Version = getDocumentModeIE(),
hasListiners = false,
dummyCallback = function() {};
@nathobson
nathobson / easing.css
Created August 9, 2018 13:14 — forked from bendc/easing.css
Easing CSS variables
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
@php
if ($_SERVER['WP_ENV'] == 'development') {
$debug = new \Sober\Controller\Module\Debugger(get_defined_vars(), 'CKD debugger');
$fields = get_fields();
PC::debug($debug);
PC::debug($fields);
}
@endphp
@nathobson
nathobson / b2-backup.sh
Last active August 30, 2023 15:20
Ansible role for backuping up to Backblaze B2
#!/bin/sh
cd ../
B2_BUCKET_NAME="example-com"
INSTALL_NAME="example.com"
SQL_FILE=database_backup.sql
UPLOADS_FILE=uploads_backups.tar.gz
UPLOADS_DIR=/srv/www/$INSTALL_NAME/shared/