Skip to content

Instantly share code, notes, and snippets.

View modster's full-sized avatar
🧠

EM Greeff modster

🧠
View GitHub Profile
@modster
modster / deploy.sh
Created May 30, 2022 00:17 — forked from vlucas/deploy.sh
Deploy a Static Site to Github Pages
#!/bin/bash
GIT_REPO_URL=$(git config --get remote.origin.url)
mkdir .deploy
cp -R ./* .deploy
cd .deploy
git init .
git remote add github $GIT_REPO_URL
git checkout -b gh-pages
git add .
@modster
modster / fragment.glsl
Created May 30, 2022 04:26
GLSL/JavaScript Template Literal Shader Program
"use strict";
var vs = `#version 300 es
in vec2 a_position;
uniform mat3 u_matrix;
void main() {
// Multiply the position by the matrix.
gl_Position = vec4((u_matrix * vec3(a_position, 1)).xy, 0, 1);
{
"paddingVertical": "56px",
"paddingHorizontal": "56px",
"backgroundImage": null,
"backgroundImageSelection": null,
"backgroundMode": "color",
"backgroundColor": "rgba(171, 184, 195, 1)",
"dropShadow": true,
"dropShadowOffsetY": "20px",
"dropShadowBlurRadius": "68px",
@modster
modster / handlebars-example.html
Last active October 30, 2022 22:09 — forked from dimkoug/hadlebars-example.html
Handlebars example
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js"></script>
<script type="text/javascript">
'use strict'
$(document).ready(function(){
@modster
modster / webserver.ts
Created July 12, 2022 12:32
Deno HTTP Server
import { serve } from "https://deno.land/[email protected]/http/server.ts";
const port = 8080;
const handler = (request: Request): Response => {
const body = `Your user-agent is:\n\n${
request.headers.get("user-agent") ?? "Unknown"
}`;
return new Response(body, { status: 200 });
@modster
modster / falling-fractal-snow.markdown
Created September 13, 2022 02:03
Falling Fractal Snow
@modster
modster / falling-fractal-snow.markdown
Created September 14, 2022 15:53
Falling Fractal Snow
@modster
modster / launch.json
Created September 14, 2022 16:54
Edge Tools Launch Config
{
"configurations": [
{
"type": "msedge",
"name": "Launch Microsoft Edge",
"request": "launch",
"runtimeArgs": ["--remote-debugging-port=9222"],
"url": "d:\\Projects\\example\\index.html",
"presentation": {
"hidden": true
@modster
modster / .editorconfig
Created October 23, 2022 21:00
BabylonJS Dot Files
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
[*.{js,ts}]
indent_size = 4
@modster
modster / LICENSE
Created November 9, 2022 08:04
GNU License Template
Copyright (c) 2022 by EM Greeff (https://github.com/modster)
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 portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WIT