🧔♂️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace Minecraft | |
{ | |
public class MinecraftServerInfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.grep($(':visible'), function(x) { return getComputedStyle(x).getPropertyValue('display') == 'flex' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-19 | |
+2 | |
+18 | |
+14 | |
-3 | |
-16 | |
+18 | |
-16 | |
-7 | |
-11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get all .config files in the current folder | |
Get-ChildItem "./" -Filter *.config | | |
Foreach-Object { | |
[xml]$xml = Get-Content $_.FullName | |
# Add Key attribute | |
$macroNode = $xml.SelectSingleNode("macro") | |
$macroNode.SetAttribute("Key", $xml.macro.Key) | |
# Remove Key node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Set language ID for variant properties where the CMS has not already updated them | |
BEGIN TRAN; | |
DECLARE @lang int; | |
SELECT TOP 1 @lang = id FROM umbracoLanguage; | |
UPDATE umbracoPropertyData | |
SET languageId = @lang | |
WHERE id IN | |
(SELECT id FROM ( | |
SELECT pd.versionId, pd.propertyTypeId, MAX(pd.languageId) as lang, MAX(pd.id) as id FROM umbracoPropertyData pd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: Joe Glombek | |
Version: 1.1 | |
Description: | |
Test script | |
Mark files in the ideal file format we expect. | |
*/ | |
/// Return the one you want from the complete set of duplicates | |
function processGroup(currentSet) { |