- Product manager -
- Designer -
- Developer -
- Project Sponsor -
How are things currently? What’s the problem or how could things be better? How does this impact the business? Including customer quotes or stories can make the problem easier to feel.
@* Umbraco 8 *@ | |
@inherits Umbraco.Web.Mvc.UmbracoViewPage | |
@using Articulate; | |
@using Articulate.Models; | |
@{ | |
var root = @Model.AncestorOrSelf(1); | |
// blog posts with tags that match the industry name | |
var allBlogPosts = root.ChildrenOfType("Articulate").First().ChildrenOfType("ArticulateArchive").First(); | |
ListModel archive = new ListModel(allBlogPosts); |
PS D:\test> | |
>> $results = @{} | |
>> Get-ChildItem -Path . -Recurse -Include *.* | ForEach-Object { | |
>> $count = Get-Content $_.FullName | Measure-Object -Word | |
>> $results.Add($_.FullName, $count.Words)} | |
PS D:\test> $results | |
PS D:\test> | |
>> $results = @{} | |
>> Get-ChildItem -Path . -Recurse -Include *.* | ForEach-Object { |
using System; | |
using System.Collections.Generic; | |
using System.Web.UI.WebControls; | |
using umbraco.cms.businesslogic.datatype; | |
namespace Our.Umbraco.DataTypes | |
{ | |
public class USStates : AbstractDataEditor | |
{ | |
private DropDownList m_Control = new DropDownList(); |
// create a bookmark and use this code as the URL, you can now toggle the css on/off | |
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
javascript: (function() { | |
var elements = document.body.getElementsByTagName('*'); | |
var items = []; | |
for (var i = 0; i < elements.length; i++) { | |
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) { | |
items.push(elements[i]); | |
} | |
} |
# Powershell Profile | |
# Last change: 2023-12-30 | |
# Location: | |
# > $PROFILE | |
# C:\Users\johnu\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 | |
# | |
# If you get the error: "Running scripts is disabled on this system" when loading the Profile: | |
# From a PowerShell window opened As Administrator: | |
# > Set-ExecutionPolicy RemoteSigned | |
# Select "Y"1 |
Search
Get-ChildItem -Path c:\path\*.* -recurse | Select-String -pattern "xxx"
Concatenate all the text files.
Get-Content c:\dev\*.txt | Out-File -FilePath c:\dev\output.txt2 -Encoding ASCII -Append
The ex command g
is very useful for acting on lines that match a pattern. You can use it with the d
command, to delete all lines that contain a particular pattern, or all lines that do not contain a pattern.
For example, to delete all lines containing "profile" (the first command is optional; it shows the lines that the second command will delete):
:g/profile :g/profile/d
More complex patterns can be used, such as deleting all lines that are empty or that contain only whitespace:
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
# User-specific files | |
*.suo | |
*.user | |
*.userosscache | |
*.sln.docstates | |
app.config | |
web.config |