Instantly share code, notes, and snippets.
Discover gists
| """ | |
| .blend to TMD export. | |
| Only objects in "Collection" collection are exported, they're automatically joined and triangulated. | |
| Only flat shaded meshes are supported: | |
| Use Color Attribute -> Face Corner (NOT Vertex color). | |
| Run via CLI: | |
| /usr/bin/blender <BLEND_FILE>\ | |
| --quiet --python-exit-code 1\ | |
| --background --python tmd_export.py \ |
Cheat Sheets are greate but they are not a substitute for learning the framework and reading the documentation as we most certainly have not covered every potential example here. Please refer to theRails Command Line Docs for more information.
You can get all of this information on the command line.
rails generate with no generator name will output a list of all available generators and some information about global options.rails generate GENERATOR --help will list the options that can be passed to the specified generator.
Intel added the Galois Field instruction set (GFNI) extensions to their Sunny Cove and Tremont cores. What’s particularly interesting is that GFNI is the only new SIMD extension that came with SSE and VEX/AVX encodings (in addition to EVEX/AVX512), to allow it to be supported onall future Intel cores, including those which don’t support AVX512 (such as the Atom line, as well as Celeron/Pentium branded “big” cores).
I suspect GFNI was aimed at acceleratingSM4 encryption, however, one of the instructions can be used for many other purposes. The extension includesthree instructions, but of particular interest here is the Affine Transformation (GF2P8AFFINEQB), aka bit-matrix multiply, instruction.
There have been various articles which discuss out-of-band
This style guide was generated byClaude Code through deep analysis of theFizzy codebase - 37signals' open-source project management tool.
Why Fizzy matters: While 37signals has long advocated for "vanilla Rails" and opinionated software design, their production codebases (Basecamp, HEY, etc.) have historically been closed source. Fizzy changes that. For the first time, developers can study a real 37signals/DHH-style Rails application - not just blog posts and conference talks, but actual production code with all its patterns, trade-offs, and deliberate omissions.
How this was created: Claude Code analyzed the entire codebase - routes, controllers, models, concerns, views, JavaScript, CSS, tests, and configuration. The goal was to extract not justwhat patterns are used, butwhy - inferring philosophy from implementation choices.
| // Paste these lines into website's console (Win/Linux: Ctrl + Shift + I / Mac: Cmd + Alt + I) | |
| if(!!window.React|| | |
| !!document.querySelector('[data-reactroot], [data-reactid]')|| | |
| Array.from(document.querySelectorAll('*')).some(e=>e._reactRootContainer!==undefined||Object.keys(e).some(k=>k.startsWith('__reactContainer'))) | |
| ) | |
| console.log('React.js'); | |
| if(!!document.querySelector('script[id=__NEXT_DATA__]')) | |
| console.log('Next.js'); |
| /*Add this under the buttons section of your illiad.css file */ | |
| /* Added for WCAG input/target minimum height and width */ | |
| button,input,optgroup,select,textarea { | |
| min-height:44px; | |
| min-width:44px; | |
| } |
| accesschk -w -s -u Users"C:\Program Files">> programfiles.txt | |
| accesschk -w -s -u Everyone"C:\Program Files">> programfiles.txt | |
| accesschk -w -s -u"Authenticated Users""C:\Program Files">> programfiles.txt | |
| accesschk -w -s -u Interactive"C:\Program Files">> programfiles.txt | |
| accesschk -w -s -u"This Organization""C:\Program Files">> programfiles.txt | |
| accesschk -w -s -u"Authentication authority asserted identity""C:\Program Files">> programfiles.txt | |
| accesschk -w -s -u"Mandatory Label\Medium Mandatory Level""C:\Program Files">> programfiles.txt | |
| accesschk -w -s -u%username%"C:\Program Files">> programfiles.txt | |
| accesschk -w -s -u Users"C:\Program Files (x86)">> programfilesx86.txt |