Skip to content

Instantly share code, notes, and snippets.

@koenbok
koenbok / store.ts
Last active November 10, 2023 00:17
import * as React from "react";
/**
A hook to simply use state between components
Warning: this only works with function components (like any hook)
Usage:
// You can put this in an central file and import it too
const useStore = createStore({ count: 0 })
@assassinave
assassinave / local-img-video.tsx
Last active September 27, 2020 01:22
Framer X - Display local image or video sources in Code Component
// If you want to place local images or videos to your Framer
// Example (not full code)
// Add this at top of .tsx file you're needing to add local images/videos
import { url } from "framer/resource";
// When adding them into your
@brandonkelly
brandonkelly / templating.md
Last active February 7, 2024 15:20
Templating in EE vs. Craft
@kenzie
kenzie / craft.conf
Last active May 17, 2018 17:48
Nginx virtual host configuration for Craft CMS, PHP5-FPM, NGINX 1.2.1 and craft/config/general.php for friendly URLs.
server {
listen 80;
root /var/www/craft.dev/public;
index index.php index.html index.htm;
server_name craft.dev;
location / {
try_files $uri $uri/ @rewrites;