Skip to content

Instantly share code, notes, and snippets.

View motionharvest's full-sized avatar

Aaron motionharvest

View GitHub Profile
@motionharvest
motionharvest / daysuntil.notion
Last active July 1, 2021 22:49
Days Until Formula for Notion
empty(prop("Due Date")) ? "" : ((dateBetween(prop("Due Date"), now(), "hours") < 0) ? ((dateBetween(prop("Due Date"), now(), "hours") > -24) ? "Today" : ((abs(floor(dateBetween(prop("Due Date"), now(), "hours") / 24) + 1) == 1) ? "Yesterday" : (format(abs(floor(dateBetween(prop("Due Date"), now(), "hours") / 24) + 1)) + " Days ago"))) : ((dateBetween(prop("Due Date"), now(), "hours") < 24) ? "Tomorrow" : (format(abs(floor(dateBetween(prop("Due Date"), now(), "hours") / 24) + 1)) + " Days from now")))
@motionharvest
motionharvest / vs.js
Last active February 6, 2020 16:20
VectorScrolling rewrite for 2020. Only 350bytes Gzipped
/*
Copyright 2020 Aaron Sherrill
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/*
Globals are any collection of styles that are used in more than one place.
Use this file for colors, font stacks, and for
Partials use %global- to help developers guess where they are writen.
*/
.glyphicon.glyphicon-play, .columnStyle .statusIndicator.indicatorGreen, span#help1, .dropdown.accountInfoIcon .dropdown-toggle, .glyphicon.glyphicon-download-alt, #ConfirmPayment .rightArrowWhite, #PaymentConfirmReview .rightArrowWhite, #interestedInEarlyPay .rightArrowWhite, .glyphicon.glyphicon-alert, .glyphicon.glyphicon-ban-circle {
display: inline-block;
line-height: 1;
vertical-align: middle; }
@motionharvest
motionharvest / stream-reskin-output-main.min.css
Created February 6, 2019 00:44
Just a bunch of styles for a site I'm reskinning
/*
Globals are any collection of styles that are used in more than one place.
Use this file for colors, font stacks, and for
Partials use %global- to help developers guess where they are writen.
*/
.columnStyle .statusIndicator.indicatorGreen, span#help1, .dropdown.accountInfoIcon .dropdown-toggle {
display: inline-block;
line-height: 1;
vertical-align: middle; }
@motionharvest
motionharvest / js
Created May 20, 2016 02:25
Robotjs Script for moving the mouse around in a circle depending on a given degree
var Mathutils = {
//not so important
normalize: function ($value, $min, $max) {
return ($value - $min) / ($max - $min);
},
interpolate: function ($normValue, $min, $max) {
return $min + ($max - $min) * $normValue;
},
/*
@motionharvest
motionharvest / togandswit.js
Created May 8, 2015 21:03
Toggles And Switches
/**
* Toggles & Switches
* ------------------
*/
(function() {
"use strict";
// switch constructor
@motionharvest
motionharvest / sassextend.css
Last active September 6, 2017 19:09 — forked from antsa/sassextend.css
Sass Extend and Placeholder Selector Example
// =========================
// Example 1: using a @mixin
// =========================
// SCSS:
@mixin a_pink_box() {
float: left;
display: block;
color: pink;
@motionharvest
motionharvest / gist:85235f53e1d07ccdbe48
Created January 26, 2015 19:48
SVG with internal package
<svg version="1.1" id="dsvgee" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 278 278" width="278" height="278">
<!-- Super elite legit badassery for browsers that support it -->
<div id="dsvgee-component">
<img src="/images/smileys/shade_smile.gif"/>
<div id="success">
This is a big test
</div>
<script>
(function(){
if(!test) return;
@motionharvest
motionharvest / Data-dump.js
Created November 10, 2014 19:17
Data After Interior Step
{
"Active": {
"shell": {},
"legs": {
"catid": 1,
"legid": 0,
"shortName": "Castor",
"height": 5,
"image": "img/legs/castor_80.png"
},