Skip to content

Instantly share code, notes, and snippets.

View CarlosRofts's full-sized avatar
🎯
Focusing

CarlosRofts

🎯
Focusing
View GitHub Profile
@akella
akella / noise.glsl
Created June 19, 2022 07:43
noise.glsl
//
// GLSL textureless classic 3D noise "cnoise",
// with an RSL-style periodic variant "pnoise".
// Author: Stefan Gustavson (stefan.gustavson@liu.se)
// Version: 2011-10-11
//
// Many thanks to Ian McEwan of Ashima Arts for the
// ideas for permutation and gradient selection.
//
// Copyright (c) 2011 Stefan Gustavson. All rights reserved.
@bradtraversy
bradtraversy / tailwind-webpack-setup.md
Last active January 16, 2026 17:31
Setup Webpack with Tailwind CSS

Webpack & Tailwind CSS Setup

Create your package.json

npm init -y

Create your src folder

Create a folder called src and add an empty index.js file. The code that webpack compiles goes in here including any Javascript modules and the main Tailwind file.

@jpenney1
jpenney1 / Flux Architecture Base (Vanilla JS)
Created April 16, 2018 05:02
Vanilla Javascript flux implementation. Easy to understand and copy into your own project, modifying and extending as necessary.
const createStore = (reducer, initialState) => {
const subscribers = [];
let currentState = initialState;
return {
getState: () => currentState,
subscribe: fn => {
subscribers.push(fn);
fn(currentState);
},