Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.
| ## Stack: | |
| ## Tanstack Start | |
| ## Infra: Alchemy / Cloudflare | |
| ## UI: Shadcn | |
| ## Store: Zustand | |
| ## DB Drizzle | |
| ## Commands | |
| - Dev Server: pnpm dev (runs Alchemy dev with hot-reload; uses .env.dev) |
| javascript:(function(){try{navigator.clipboard.readText().then(function(t){if(t){var e=window.open("","_blank","width=800,height=600");e.document.open(),e.document.write(t),e.document.close()}else alert("Clipboard is empty. Please copy some text to the clipboard first.")}).catch(function(t){console.error("Failed to read clipboard contents: ",t),alert("An error occurred while trying to access the clipboard. Please ensure your browser allows clipboard access.")})}catch(t){console.error("An error occurred:",t),alert("An error occurred while trying to open the new window with the clipboard content.")}})();//bookmarklet_title: HTML Preview from Clipboard |
| REM Delete eval folder with licence key and options.xml which contains a reference to it | |
| for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do ( | |
| for /d %%a in ("%USERPROFILE%\.%%I*") do ( | |
| rd /s /q "%%a/config/eval" | |
| del /q "%%a\config\options\other.xml" | |
| ) | |
| ) | |
| REM Delete registry key and jetbrains folder (not sure if needet but however) | |
| rmdir /s /q "%APPDATA%\JetBrains" |
| import getFirebase from "./firebase.js"; | |
| function MyApp() { | |
| // Example function that wraps some firebase logic | |
| const onSignup = async (email, password) => { | |
| // Use await to ensure firebase library is loaded | |
| const firebase = await getFirebase(); | |
| // Call firebase methods as you normally would | |
| const { user } = await firebase.auth() | |
| .createUserWithEmailAndPassword(email, password); |
| # Example usage: | |
| # NOTE: Please mind the trailing slashes at the end of the path names!!! | |
| # Supports multiple files per attribute (pass them after a space - see `--add` example below: | |
| # Examples: | |
| # Adding: `python setFavorites.py --add file:///Users/your_username/your/path/ file:///Users/your_username/your/another_path/` | |
| # Removing: `python setFavorites.py --remove file:///Users/your_username/your/path/` | |
| #!/usr/bin/python | |
| import os |
React.js
- Official documentation - https://reactjs.org/docs/hello-world.html
- React.js course by Kent C. Dodds - https://egghead.io/courses/the-beginner-s-guide-to-reactjs
- React Holiday - https://react.holiday/
- React Englightment - https://www.reactenlightenment.com/
- Learn React by Michael Chan - https://learnreact.com/
- 30 days of React - https://www.fullstackreact.com/30-days-of-react/
- The road to learn React - https://www.robinwieruch.de/the-road-to-learn-react/
- React Patterns - https://reactpatterns.com/
- React bits - https://github.com/vasanthk/react-bits
Custom recipe to get OS X 10.11 El Capitan running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.10 Yosemite setup recipe (as found on this gist https://gist.github.com/kevinelliott/0726211d17020a6abc1f). Note that I expect this to change significantly as I install El Capitan several times.
I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
| package lan.dk.podcastserver.utils.multipart; | |
| import lan.dk.podcastserver.utils.MimeTypeUtils; | |
| import org.apache.commons.lang3.StringUtils; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import javax.servlet.ServletOutputStream; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletResponse; |
