A public shelf for working code
Methods, classes, and the notes beside them.
Read what other developers marked public. Sign in with Google to keep your own notebook and choose what to share.
| Title | Language | Platform | Scope | Description | Updated |
|---|---|---|---|---|---|
| v4 application event log for console app | VB.net | ASP.net | Method | VB.net code to write a message to the Windows Application Event Log from a console application. | 11/12/2026 |
| v2 Link: Claw AI | C# | ASP.net | Method | 10/21/2026 | |
| v1 HTML 5 Required Argument | HTML | ASP.net | Snippet | An HTML form using the required attribute so the browser prevents submission until all required fields are filled in. | 10/19/2026 |
| v1 Create Table | SQL | ASP.net | Snippet | A SQL CREATE TABLE script — a starting template for creating a new database table. | 10/19/2026 |
| v1 Create Stored Procedure | C# | ASP.net | Method | A SQL stored procedure (spDates) and C# code to call it — a starting template for date-related calculations. | 10/19/2026 |
| v1 No Cache Server and Cliet | Javascript | ASP.net | Snippet | Code to tell both the server and the browser not to cache a page, so users always get the newest version. | 10/19/2026 |
| v1 Random Password | Javascript | ASP.net | Method | A JavaScript function (randomPassword) that generates a random password string. | 10/19/2026 |
| v1 Local Host | VB.net | ASP.net | Snippet | VB.net code to check whether the application is running on the local machine (localhost). | 10/19/2026 |
| v2 Credentials Google Authentication | HTML | ASP.net | Method | HTML and JavaScript to wire up Google OAuth sign-in on an ASP.NET page. | 10/19/2026 |
| v1 JS QueryString class, get and set | Javascript | ASP.net | Class | A JavaScript class (QueryString) to read a query parameter from the URL and update it without reloading the page. | 10/15/2026 |
| v1 JS Validate class, email phone required number | Javascript | ASP.net | Class | A JavaScript class (Validate) with simple checks you can call before saving a form: required, email, phone, and whole number. | 10/15/2026 |
| v1 viewport meta, mobile width | HTML | ASP.net | Snippet | The HTML viewport meta tag that tells mobile phones to use the actual screen width instead of pretending the page is a wide desktop. | 10/15/2026 |
| v1 position sticky table header | CSS | ASP.net | Snippet | CSS to keep a table header row sticky at the top while the body rows scroll underneath it. | 10/15/2026 |
| v1 Nothing vs empty string | VB.net | ASP.net | Snippet | VB.net: the difference between Nothing (no string at all) and an empty string (''). | 10/15/2026 |
| v1 Regex match timeout, stop a runaway pattern | C# | ASP.net | Method | C# code to run a regular expression with a time limit so a bad pattern on a long input does not freeze the request. | 10/15/2026 |
| v1 Cache insert with an absolute expiration | C# | ASP.net | Method | C# code to store an object in ASP.NET's server-side cache until a specific clock time expires. | 10/15/2026 |
| v1 HtmlEncode before writing text that came from a user | C# | ASP.net | Method | C# code to HTML-encode text before writing it to a web page, so user-typed content cannot break the page or inject scripts. | 10/15/2026 |
| v1 The Raven | HTML | ASP.net | Snippet | The full text of 'The Raven' by Edgar Allan Poe, used to test how web apps handle very long blocks of text. | 11/01/2023 |
| v1 shift click event | Javascript | ASP.net | Snippet | JavaScript code that detects when the user holds Shift and clicks at the same time. | 10/28/2022 |
| v1 JSON Sort Method | Javascript | ASP.net | Method | A JavaScript function to sort an array of objects by any property name you choose. | 09/07/2022 |