Copy-Paste Instructions for Optimal AI Interaction
⸻
I am [Your Name/Role], focused on:
Decompiled DLL with ILSpy to identify various commands.
Most commands can be found in DDM2._0_UX.CmdBackground.cmdService_DoWork
Write commands can be prefixed with int:command to specify which monitor to send the command to.
.\DDM.exe /0:writebrightnesslevel 50
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
| // knockout 3.4.0rc | |
| ko.utils.addOrRemoveItem = function (array, value, included) { /* .. */ } | |
| ko.utils.anyDomNodeIsAttachedToDocument = function (nodes) { /* .. */ } | |
| ko.utils.arrayFilter = function (array, predicate) { /* .. */ } | |
| ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ } |
| // knockout 3.4.0 | |
| ko.utils.addOrRemoveItem = function (array, value, included) { /* .. */ } | |
| ko.utils.anyDomNodeIsAttachedToDocument = function (nodes) { /* .. */ } | |
| ko.utils.arrayFilter = function (array, predicate) { /* .. */ } | |
| ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ } |
| <# | |
| .SYNOPSIS | |
| Generates an HTML5 offline app cache manifest file | |
| .DESCRIPTION | |
| Generates an offline app cache manifest file according to file paths specified | |
| and outputs with MD5 checksums so manifest only changes when dependent files change. |
| SET STATISTICS IO OFF | |
| SET NOCOUNT ON | |
| -- ============================================= | |
| -- Author: Shawn Dube, twitter: @shawndube | |
| -- Create date: 4/24/15 | |
| -- Based on work by Alex Aza: http://stackoverflow.com/a/5873231/331937 | |
| -- Uses: Initial use was to create C# Classes | |
| -- from an existing database table schema. | |
| -- May be able to do other templating type |
| // this is now a module: | |
| // https://github.com/WebReflection/backtick-template#es2015-backticks-for-es3-engines-- | |
| var template = require('backtick-template'); | |
| // just string | |
| const info = 'template'; | |
| `some ${info}` === template('some ${info}', {info}); |
| # Usage: .\DisableNuGetPackageRestore.ps1 C:\Path\To\Solution.sln | |
| # Get the path that the user specified when calling the script | |
| $solution = $args[0] | |
| $solutionPath = Split-Path $solution -Parent | |
| $solutionName = Split-Path $solution -Leaf | |
| # Delete the .nuget directory and all contents | |
| Remove-Item (Join-Path $solutionPath ".nuget") -Force -Recurse -ErrorAction 0 |
| (function () { | |
| // IndexedDB | |
| function BrowserType() { | |
| var n = navigator.appName; | |
| var ua = navigator.userAgent; | |
| var tem; | |
| var m = ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); | |
| if (m && (tem = ua.match(/version\/([\.\d]+)/i)) != null) m[2] = tem[1]; | |
| m = m ? [m[1], m[2]] : [n, navigator.appVersion, '-?']; |