Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| // .vscode/settings.json | |
| { | |
| "tailwindCSS.experimental.classRegex": [ | |
| ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], | |
| ["cn\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"], | |
| ["styled\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] | |
| ], | |
| } |
| import { useEffect, useState } from "react"; | |
| type UseTextSelectionReturn = { | |
| text: string; | |
| rects: DOMRect[]; | |
| ranges: Range[]; | |
| selection: Selection | null; | |
| }; | |
| const getRangesFromSelection = (selection: Selection): Range[] => { |
| // https://github.com/tobspr/GLSL-Color-Spaces/blob/master/ColorSpaces.inc.glsl | |
| /* | |
| GLSL Color Space Utility Functions | |
| (c) 2015 tobspr | |
| ------------------------------------------------------------------------------- | |
| The MIT License (MIT) | |
| Copyright (c) 2015 |
This is a simple Tailwind plugin to expose all of Tailwind's colors, including any custom ones, as custom css properties on the :root element.
There are a couple of main reasons this is helpful:
See the Tailwind Plugins for more info on plugins.
| https://rpgreen.wordpress.com/2016/02/23/a-mapping-template-to-send-everything-to-your-backend-integration/ | |
| location/cookie headers: | |
| https://stackoverflow.com/questions/35595672/aws-api-gateway-use-302-redirect-and-set-cookie-header | |
| https://blog.hiramsoftware.com/blog/day-one-aws-api-gateway/ |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)