Skip to content

Instantly share code, notes, and snippets.

View daniandl's full-sized avatar
🥑
Developing

Danian daniandl

🥑
Developing
View GitHub Profile
@danharper
danharper / 1-sleep-es7.js
Created February 8, 2015 16:55
ES7's async/await syntax.
// ES7, async/await
function sleep(ms = 0) {
return new Promise(r => setTimeout(r, ms));
}
(async () => {
console.log('a');
await sleep(1000);
console.log('b');
})()
@troyharvey
troyharvey / deployment.yml
Last active July 20, 2024 10:05
Using Kubernetes envFrom for environment variables
# Use envFrom to load Secrets and ConfigMaps into environment variables
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: mans-not-hot
labels:
app: mans-not-hot
spec:
replicas: 1
@cedricium
cedricium / deploying.md
Created February 27, 2018 07:31
How to Deploy `codyseibert/tab-tracker` (Vue / Express Fullstack Web App)

How to Deploy tab-tracker

Heroku:

Prerequisites:

The following will need to be known / obtained before getting started:

  • Node.js and npm
  • command-line (cli) / terminal
  • Heroku account
  • Heroku CLI installed and setup with your Heroku account
@BayBreezy
BayBreezy / Vuetify Custom Icon with Nuxt 3 (Nuxt Icon by Atinux).ts
Last active April 20, 2023 23:17
Code used to add custom icon to vuetify plugin in NuxtJS3 with Vuetify 3
// This file is the custom.ts
import { h } from "vue";
import type { IconSet, IconAliases, IconProps } from "vuetify";
// Custom icon component create
// I am extending the Icon module created by Atinus -> https://github.com/nuxt-modules/icon
import MIcon from "~~/components/MIcon.vue";
/**
* Code for the icon component looks like this
*