Skip to content

Instantly share code, notes, and snippets.

View Frankie-B's full-sized avatar
💭
New Day New Code

Frankie Bukenya Frankie-B

💭
New Day New Code
  • The Netherlands
View GitHub Profile
@Frankie-B
Frankie-B / .gitignore
Created March 13, 2023 06:41 — forked from markbrouch/.gitignore
.gitignore file for front-end projects
# Created by https://www.gitignore.io/api/node,bower,osx,linux,windows,dropbox,sass,less,grunt,sublimetext,code
### Node ###
# Logs
logs
*.log
npm-debug.log*
# Runtime data
@Frankie-B
Frankie-B / .gitignore
Created March 13, 2023 06:39 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
float circ(vec2 p){
return length(p) - 0.5;
}
// http://www.iquilezles.org/www/articles/palettes/palettes.htm
// As t runs from 0 to 1 (our normalized palette index or domain),
//the cosine oscilates c times with a phase of d.
//The result is scaled and biased by a and b to meet the desired constrast and brightness.
vec3 cosPalette( float t, vec3 a, vec3 b, vec3 c, vec3 d )
{
@Frankie-B
Frankie-B / main.js
Created March 12, 2023 16:33 — forked from kdzwinel/main.js
List all undefined CSS classes
/*
This script attempts to identify all CSS classes mentioned in HTML but not defined in the stylesheets.
In order to use it, just run it in the DevTools console (or add it to DevTools Snippets and run it from there).
Note that this script requires browser to support `fetch` and some ES6 features (fat arrow, Promises, Array.from, Set). You can transpile it to ES5 here: https://babeljs.io/repl/ .
Known limitations:
- it won't be able to take into account some external stylesheets (if CORS isn't set up)
- it will produce false negatives for classes that are mentioned in the comments.
@Frankie-B
Frankie-B / webgl-debug.js
Created March 12, 2023 00:22 — forked from markbrouch/webgl-debug.js
WebGL debug info
const webgl = document.createElement('canvas').getContext('webgl');
const webgl2 = document.createElement('canvas').getContext('webgl2');
const contexts = [webgl, webgl2];
contexts.forEach(gl => {
const debugRendererInfo = gl.getExtension('WEBGL_debug_renderer_info');
console.log('renderer:', gl.getParameter(debugRendererInfo.UNMASKED_RENDERER_WEBGL));
console.log('vendor:', gl.getParameter(debugRendererInfo.UNMASKED_VENDOR_WEBGL));
@Frankie-B
Frankie-B / .editorconfig
Created March 12, 2023 00:21 — forked from markbrouch/.editorconfig
Base editorconfig for new projects
# Base editorconfig for new projects
root = true
[*]
end_of_line = lf
indent_style = space
tab_width = 4
charset = utf-8
trim_trailing_whitespace = true
@Frankie-B
Frankie-B / resources.md
Created March 12, 2023 00:21 — forked from markbrouch/resources.md
The Doctor Will See You Now: Machine Learning for Telehealth - JSConf Budapest 2022 - Resources
@Frankie-B
Frankie-B / settings.json
Created March 11, 2023 18:14
My current vscode settings based on Kent C Dodds's
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.detectIndentation": true,
"editor.lightbulb.enabled": false,
"editor.fontFamily": "Operator Mono, Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": false,
"editor.rulers": [80],
"editor.snippetSuggestions": "top",
"editor.wordBasedSuggestions": false,