Skip to content

Instantly share code, notes, and snippets.

View madmax124's full-sized avatar
🎱

Syed Saad madmax124

🎱
View GitHub Profile
@argyleink
argyleink / caption-color-hint.css
Created March 2, 2021 06:24
CSS gradient <color-hint> or <transition-hint> example
figcaption {
background: linear-gradient(to top,
hsla(0 0% 0% / 90%),
75%, /* <color-hint> */
hsla(0 0% 0% / 0)
);
}
<!DOCTYPE html>
<html>
<head>
<title>Accordions</title>
<style type="text/css">
body {
margin: 0 auto;
max-width: 40em;
width: 88%;
@DreaMinder
DreaMinder / A Nuxt.js VPS production deployment.md
Last active February 7, 2026 12:23
Deployment manual for a real-world project built with nuxt.js + koa + nginx + pm2

Example of deployment process which I use in my Nuxt.js projects. I usually have 3 components running per project: admin-panel SPA, nuxt.js renderer and JSON API.

This manual is relevant for VPS such as DigitalOcean.com or Vultr.com. It's easier to use things like Now for deployment but for most cases VPS gives more flexebillity needed for projects bigger than a landing page.

UPD: This manual now compatible with nuxt@2.3. For older versions deployment, see revision history.


Let's assume that you have entered fresh installation of Ubuntu instance via SSH. Let's rock:

@travist
travist / ajax.js
Created August 31, 2016 21:30
Submitting Form.io Form using jQuery ajax
var submission = {
data: {
firstName: 'Test',
lastName: 'Person',
email: 'test@example.com',
phoneNumber: '123123123123'
}
};
var settings = {
"async": true,
@wh1tney
wh1tney / deploy-static-site-heroku.md
Last active February 24, 2025 17:33
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions