Skip to content

Instantly share code, notes, and snippets.

Avatar

Cecile Muller cecilemuller

View GitHub Profile
@cecilemuller
cecilemuller / example.scss
Created Jan 18, 2022
Animated CSS Custom Property
View example.scss
// Static value by default:
// https://caniuse.com/css-variables
:root {
--example: 0deg;
}
.myclass {
background-image: linear-gradient( var(--example), red, green 50%, blue );
}
// Animated value where supported:
@cecilemuller
cecilemuller / transition1.frag
Last active Jan 2, 2022
Marmoset Toolbag 4: Albedo Transition
View transition1.frag
#include "../state.frag"
#include "../other/customExtras.sh"
#define MARGIN 0.05
#define RANGE 1.05
uniform float uStartTime; // name "Start time (in seconds)" min 0 max 60 default 0
uniform float uDurationTime; // name "Duration (in seconds)" min 0 max 60 default 10
USE_TEXTURE2D(tTransitionMap); // name "Transition"
USE_TEXTURE2D(tAlbedoMap2); // name "Albedo"
@cecilemuller
cecilemuller / gist:0758de2ecfb461b362b0c1abfa836e51
Created Jul 8, 2021
Generate the CSR value for Finalize Order (ACME v2)
View gist:0758de2ecfb461b362b0c1abfa836e51
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out domain.pem
openssl req -new -sha256 -key domain.pem -subj "/" -addext "subjectAltName=DNS:example.com,DNS:www.example.com" -outform DER | base64 -w 0 | sed 's/+/-/g' | sed 's/\//_/g' | sed 's/=*$//g' > CSR.txt
View nimlot_hair_to_poly.mcr
macroScript nimlot_hair_to_poly
category:"Nimlot"
tooltip:"Hair to Poly"
(
disableSceneRedraw()
local collapsed = Editable_Mesh name:(uniquename "HairGeometry")
convertToPoly collapsed
collapsed.wirecolor = [140, 255, 25]
@cecilemuller
cecilemuller / main.ts
Last active Oct 14, 2021
Typescript Webworker
View main.ts
/* eslint-env browser */
import type {IRequestWorker} from "./worker.ts";
const worker = new Worker(new URL("./worker.ts", import.meta.url)) as IRequestWorker;
// Receive from the worker
worker.onmessage = ({data: {myresponse}}) => {
console.log(myresponse);
};
@cecilemuller
cecilemuller / example.yml
Created Oct 20, 2020
Run Docker Compose + in Github Action
View example.yml
name: Test
on:
push:
branches:
- main
- features/**
- dependabot/**
pull_request:
branches:
@cecilemuller
cecilemuller / launch.json
Created Jun 16, 2020
Run nodemon in the VSCode debugger
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Nodemon for Typescript",
"type": "node",
"request": "launch",
"runtimeExecutable": "nodemon",
"cwd": "${workspaceFolder}",
@cecilemuller
cecilemuller / now.newer-properties.json
Last active Mar 17, 2020
Zeit Now: Long expiration date for static assets
View now.newer-properties.json
{
"version": 2,
"trailingSlash": true,
"headers": [
{
"source": "/(.*)\\.(js|css|map|json|ico)",
"headers" : [
{
"key" : "Cache-Control",
"value" : "public, max-age=31536000, immutable"
@cecilemuller
cecilemuller / tasks.json
Last active Jul 14, 2019
VSCode: Compile Typescript on file save
View tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "Delete Output Folder",
"type": "shell",
"options": {
"cwd": "${workspaceRoot}"