Skip to content

Instantly share code, notes, and snippets.

View peshala-prabhapoorna's full-sized avatar

Peshala Prabhapoorna peshala-prabhapoorna

View GitHub Profile
@aradalvand
aradalvand / DockerfileForSvelteKit.md
Last active July 10, 2025 14:09
Dockerfile and .dockerignore for SvelteKit:

*This Dockerfile is intended for SvelteKit applications that use adapter-node. So, the Dockerfile below assumes that you have already installed and configured the adapter.

Dockerfile:

FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json .
RUN npm ci
COPY . .
RUN npm run build
@tatsumoto-ren
tatsumoto-ren / subs.md
Last active July 20, 2025 22:14
Japanese Subtitles
@zastrow
zastrow / Unbuttonize Mixin.scss
Last active May 15, 2025 22:06
Remove Default Button Styles
@mixin unbuttonize {
// This removes styles added by default to button elements.
// For when something should semantically be a button,
// but isn't buttony in appearance.
background-color: transparent;
border: none;
margin: 0;
padding: 0;
text-align: inherit;
font: inherit;
@airyboy
airyboy / console.log.js
Last active January 17, 2025 13:13
Redirecting console.log output to a webpage
<pre id="log"></pre>
(function(){
var oldLog = console.log;
console.log = function (message) {
const logger = document.getElementById('log');
logger.innerHTML += `> ${message}\n`;
oldLog.apply(console, arguments);
};