This file contains hidden or 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 | |
function backupdb { | |
USER=$1 | |
PASSWORD=$2 | |
REMOTEIP=$3 | |
OUTPUTDIR="/Volumes/Backup/MYSQL/$(date +%F)" | |
MYSQLDUMP="/usr/local/bin/mysqldump" | |
MYSQL="/usr/local/bin/mysql" |
This file contains hidden or 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
if ( settings.easing === 'easeInQuad' ) pattern = time * time; // accelerating from zero velocity | |
if ( settings.easing === 'easeOutQuad' ) pattern = time * (2 - time); // decelerating to zero velocity | |
if ( settings.easing === 'easeInOutQuad' ) pattern = time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time) * time; // acceleration until halfway, then deceleration | |
if ( settings.easing === 'easeInCubic' ) pattern = time * time * time; // accelerating from zero velocity | |
if ( settings.easing === 'easeOutCubic' ) pattern = (--time) * time * time + 1; // decelerating to zero velocity | |
if ( settings.easing === 'easeInOutCubic' ) pattern = time < 0.5 ? 4 * time * time * time : (time - 1) * (2 * time - 2) * (2 * time - 2) + 1; // acceleration until halfway, then deceleration | |
if ( settings.easing === 'easeInQuart' ) pattern = time * time * time * time; // accelerating from zero velocity | |
if ( settings.easing === 'easeOutQuart' ) pattern = 1 - (--time) * time * time * time; // decelerating to zero velocity | |
if ( settings.easin |
This file contains hidden or 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
<form name="newsletterSignupForm" novalidate ng-submit='submitEmail()'> | |
<input ng-model="emailAddress" type="email" placeholder="[email protected]" required /> | |
<div class="checkbox"> | |
<input type="checkbox" ng-model="acceptTerms" name="acceptTerms" required /> | |
<div class="checkbox-label">I’ve read and accept the <a href="/terms" target="_blank">TOS and Privacy Policy</a>. </div> | |
</div> | |
<button ng-disabled="!newsletterSignupForm.$valid" type="submit" ng-bind="subscribeText"></button> | |
</form> |
This file contains hidden or 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> | |
<meta charset="UTF-8"> | |
<title>Type Scaling</title> | |
<style> | |
html{ | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
-webkit-font-smoothing: antialiased; | |
} |
This file contains hidden or 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
// Linear interpolation | |
const lerp = function(start, end, t){ | |
return start * (1 - t) + end * t; | |
} |
This file contains hidden or 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
<template> | |
<div> | |
<input v-model="emailAddress" type="email" placeholder="[email protected]" /> | |
<button @click="submitForm">{{subscribeText}}</button> | |
</div> | |
</template> | |
<script> | |
export default { | |
data() { | |
return { |
OlderNewer