- Feb 2023
-
www.code-snippets.dev www.code-snippets.dev
-
- Dec 2022
-
devblogs.microsoft.com devblogs.microsoft.com
-
PS C:\> Get-CimInstance win32_POINTINGDEVICE | select hardwaretype
Command for getting hardware type of mouse via Windows PowerShell.
-
- Nov 2022
-
stackoverflow.com stackoverflow.com
-
Use the Get-ChildItem cmdlet with the -Recurse switch: Get-ChildItem -Path V:\Myfolder -Filter CopyForbuild.bat -Recurse -ErrorAction SilentlyContinue -Force
Useful PowerShell command to do recursive file search in Windows through PowerShell.
-
-
www.youtube.com www.youtube.com
-
Louis Burki 6 months ago (edited) I have make some changes to make it work, because I had a similar error. First, I have add a ":" before the "=" in the Text variable at the beginning of the script. Now it looks like that: "Text:=". Then I have put double quotes around (**your snippets**) so now it looks like this "(***your snippets***)". Then, I also changed the sort line to make it look that: Text:= sort(Text). And now it works as intended. Also, be careful not to remove the pipe symbol in your snippets.
Someone giving a troubleshooting solution to using Joe Glines' Auto Hotkey script that inserts text from a list of the user's choosing. The problem another user had was including it in their main script file, but this was resolved with Louis Burki's answer
-
-
github.com github.com
-
An open issue on the Obsidian Hypothes.is plugin about edits in annotations not being added to Obsidian. A proposed solution is given; change the settings script with the code provided.
-
-
github.com github.com
-
Template: <%* const id = tp.file.creation_date("YYYYMMDDHHmmss"); await tp.file.rename(`${id} ${tp.file.title}`); %>
Templater code snippet that renames current file to add date & time creation to title of note.
-
-
www.reddit.com www.reddit.com
-
Run in WSL to return current total "word count": find /mnt/c/path/to/obsidian -type f -name "*.md" -exec cat '{}' \+ | wcThis will also count words in syntax - like the word "query" in an embedded query. In fact it probably counts anything separated by whitespace as separate words. But you could do some preprocessing between the cat and the wc if you like.
Linux command for WSL to count all lines, words count, & character count. OP states at end -wc restricts to word count only
-
- Aug 2022
-
stackoverflow.com stackoverflow.com
-
Check out GistBox. It supports searching, editing and labels. Here's a screenshot:
现在叫cacher
-
- Apr 2022
-
-
https://github.com/deathau/obsidian-snippets
Some code and clever hacks for Obsidian
-
- Jun 2021
-
stackoverflow.com stackoverflow.com
-
One of the consequences (although arguably not the primary motivation) of DRY is that you tend to end up with chunks of complex code expressed once, with simpler code referencing it throughout the codebase. I can't speak for anyone else, but I consider it a win if I can reduce repetition and tuck it away in some framework or initialisation code. Having a single accessor definition for a commonly used accessor makes me happy - and the new Object class code can be tested to hell and back. The upshot is more beautiful, readable code.
new tag?:
- extract reusable functions to reduce duplication / allow elegant patterns elsewhere
-
- Oct 2020
-
-
Yes, you can embed loops in it and compose lots of small repeated JSX snippets, but that almost never happens in practice because mixing the turing complete of javascript with the markup of HTML eliminates the readability of JSX so that it is actually harder to parse than a solution like hyperscript (the syntactical approach taken by virtual-dom).
-
- Dec 2019
-
-
┊
First sighting. First time I've seen a literal, non-whitespace character (┊) used to show indentation. Looks pretty nice. But breaks copy-and-pastability.
-