Skip to content

Instantly share code, notes, and snippets.

@salmedina
Last active April 6, 2024 10:19
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save salmedina/ad8bea4f46de97ea132f71b0bca73663 to your computer and use it in GitHub Desktop.
Save salmedina/ad8bea4f46de97ea132f71b0bca73663 to your computer and use it in GitHub Desktop.
public class Hello
{
   public static void Main()
   {
-      System.Console.WriteLine("Hello, World!");
+      System.Console.WriteLine("Rock all night long!");
   }
}
@jessiewestlake
Copy link

diff --git a/HITSServiceNow/Public/Set-RemedyAsset.ps1 b/HITSServiceNow/Public/Set-RemedyAsset.ps1
index 2d9091cedadbe7526600160c9ffbdb8815007bb8..b6f9f5b9cddc33cfdda1d1c8b87cb6ac44d93f8d 100644
--- a/HITSServiceNow/Public/Set-RemedyAsset.ps1
+++ b/HITSServiceNow/Public/Set-RemedyAsset.ps1
@@ -72,8 +72,8 @@ Function Set-RemedyAsset
         $Headers = @{'X-no-response-body'=(-NOT $PassThru)}
     }
     Process
-    {        
-        $Body += switch ($PSBoundParameters.Keys)
+    {
+        [array]$Body += switch ($PSBoundParameters.Keys)
         {
             'Name'            { @{'u_asset_name'=$Name} }
             'OperatingSystem' { @{'u_operating_system'=$OperatingSystem} }

@bob-zs
Copy link

bob-zs commented Oct 15, 2022

- wow
+ nice

@hakeemsalman
Copy link

How to keep language syntax intact too?

Does anyone know if this is possible?

+1

@kamontat
Copy link

    test
    hello
+   add-1
  + add-1
   +add-1
-   remove-1
  - remove-1
   -remove-1

@ReDestroyDeR
Copy link

object HelloWorld extends App {
-   println("Goodbye, World...")
+   println("Hello, World!")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment