Skip to content

Instantly share code, notes, and snippets.

View BasketCase808's full-sized avatar
🙈
Clickin around and what not

Moores BasketCase808

🙈
Clickin around and what not
  • Manchester
View GitHub Profile
@BasketCase808
BasketCase808 / datepicker.component.js
Created November 10, 2023 05:29 — forked from mikermcneil/datepicker.component.js
A datepicker component for Vue/parasails, assuming you're using the "Web App" template (aka parasails). _Note: this code was pasted here as of Mon Aug 20, 2018 -- note that this may have been updated or changed in the mean time._
// This goes in `assets/js/components/datepicker.component.js`
// ^^Remove this comment
/**
* <datepicker>
* -----------------------------------------------------------------------------
* A wrapper for the jQuery UI datepicker, which falls back to a date input on mobile.
*
* @type {Component}
*
* @event input [emitted when the value is changed privately]
@BasketCase808
BasketCase808 / stripe-card-element.component.js
Created November 10, 2023 05:24 — forked from mikermcneil/stripe-card-element.component.js
An example of a component for using Stripe Elements with parasails / Vue.js (`<stripe-card-element>`)
/**
* <stripe-card-element>
* -----------------------------------------------------------------------------
* A wrapper for the Stripe Elements "card" component (https://stripe.com/elements)
*
* Example usage:
* ```
* <stripe-card-element stripePublishableKey="…" v-model="formData.cardInfo"></stripe-card-element>
* ```
*
@BasketCase808
BasketCase808 / js-timestamp.component.js
Created November 10, 2023 05:24 — forked from mikermcneil/js-timestamp.component.js
<js-timestamp>: A Parasails/Vue.js component for live-updating timestamps built on moment.js (relies on `moment` already being available to your frontend code-- eg. by putting it in assets/dependencies/moment.js).
/**
* <js-timestamp>
* (assets/js/components/js-timestamp.component.js)
* -----------------------------------------------------------------------------
* A human-readable, self-updating "timeago" timestamp, with some special rules:
*
* • Within 24 hours, displays in "timeago" format.
* • Within a month, displays month, day, and time of day.
* • Within a year, displays just the month and day.
* • Older/newer than that, displays the month and day with the full year.
@BasketCase808
BasketCase808 / cms.md
Created November 9, 2023 11:41 — forked from 181192/cms.md
Oversikt over forskjellige CMS, eCommerce og rammeverk i forskjellige språk

CMS

Drag'n drop

  • Wordpress
  • Weebly
  • Squarespace $
  • Magnolia $
  • Wix $
  • Bynder $
@BasketCase808
BasketCase808 / ubuntu_install.sh
Created September 27, 2023 02:28 — forked from nginx-gists/ubuntu_install.sh
Automating Installation of WordPress with NGINX Unit on Ubuntu
#!/usr/bin/env bash
if [ "$EUID" -ne 0 ];then
>&2 echo "This script requires root level access to run"
exit 1
fi
if [ -z "${WORDPRESS_DB_PASSWORD}" ]; then
>&2 echo "WORDPRESS_DB_PASSWORD must be set"
>&2 echo "Here is a random one that you can paste:"