Skip to content

Instantly share code, notes, and snippets.

View rockey5520's full-sized avatar

Rakesh Mothukuri rockey5520

View GitHub Profile
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
)
package main
import (
"fmt"
"io"
"log"
"net/http"
)
func main() {
{
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"git.allowForcePush": true,
"git.autofetch": true,
"git.autoStash": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"files.exclude": {
"**/.classpath": true,
package com.example.expression;
public sealed interface Expr
permits ConstantExpr, PlusExpr, TimesExpr, NegExpr {...}
public record ConstantExpr(int i) implements Expr {...}
public record PlusExpr(Expr a, Expr b) implements Expr {...}
public record TimesExpr(Expr a, Expr b) implements Expr {...}
public record NegExpr(Expr e) implements Expr {...}
public class Message {
private final String message;
private final long dimensionl;
Message(String message, long dimensionl) {
this.message = message;
this.dimensionl = dimensionl;
}
import jdk.incubator.foreign.MemoryAddress;
import java.lang.invoke.VarHandle;
import jdk.incubator.foreign.MemoryHandles;
import java.nio.ByteOrder;
import jdk.incubator.foreign.MemorySegment;
public class ForeignMemoryAccess {
public static void main(String[] args) {
String query = """
SELECT "EMP_ID", "LAST_NAME" FROM "EMPLOYEE_TB"
WHERE "CITY" = 'INDIANAPOLIS'
ORDER BY "EMP_ID", "LAST_NAME";
""";
String query = "SELECT \"EMP_ID\", \"LAST_NAME\" FROM \"EMPLOYEE_TB\"\n" +
"WHERE \"CITY\" = 'INDIANAPOLIS'\n" +
"ORDER BY \"EMP_ID\", \"LAST_NAME\";\n";
String html = """
<html>
<body>
<p>Hello, world</p>
</body>
</html>
""";
String html = "<html>\n" +
" <body>\n" +
" <p>Hello, world</p>\n" +
" </body>\n" +
"</html>\n";