Injecting jQuery – the right version
Do you need to inject jQuery or are you writing a bookmarklet? This script will inject the right version, taking IE8 and lower into account.
Read the article Injecting jQuery – the right versionDo you need to inject jQuery or are you writing a bookmarklet? This script will inject the right version, taking IE8 and lower into account.
Read the article Injecting jQuery – the right versionAutomatically persist Knockout observables in localStorage, sessionStorage, or even the query string, then restore them when initializing a model.
Read the article Automatic Knockout model persistenceYesterday I was working on a bit of code that had to read the XMP meta data from a file. It is not located at a certain position, so I had to scan the file. XMP, being plain XML, can be found by simple string matching. After some searching I’ve found many solutions that read the entire file into memory and perform a regular expression search or a string comparison. That’s not going to work for me, because I have files that are +100MB! So I wrote some code that does a search that performs.
Read the article Seek Position of a String in a StreamPowerShell runs on .NET and uses the .NET regex engine, but PowerShell adds its own string semantics. Two independent failures can break a capture-group replacement: multiline matching and PowerShell interpolating `$1` before it reaches the regex engine.
Read the article Regex Capture-Group Replacement in PowerShell (for .NET Developers)As a developer, I love solving common string problems with regular expressions. Sure, they are sometimes hard to read, but you can do so much with such a small expression! It is nice that many languages support them, although it sometimes feels like every language creates its own dialect. Let’s look at the differences between regular expression groups in .NET and JavaScript.
Read the article Regular Expression Groups: .NET vs JavaScript