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
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
) |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
) | |
func main() { |
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
{ | |
"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, |
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
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 {...} |
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
public class Message { | |
| |
private final String message; | |
private final long dimensionl; | |
| |
Message(String message, long dimensionl) { | |
this.message = message; | |
this.dimensionl = dimensionl; | |
} | |
|
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
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) { | |
|
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
String query = """ | |
SELECT "EMP_ID", "LAST_NAME" FROM "EMPLOYEE_TB" | |
WHERE "CITY" = 'INDIANAPOLIS' | |
ORDER BY "EMP_ID", "LAST_NAME"; | |
"""; |
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
String query = "SELECT \"EMP_ID\", \"LAST_NAME\" FROM \"EMPLOYEE_TB\"\n" + | |
"WHERE \"CITY\" = 'INDIANAPOLIS'\n" + | |
"ORDER BY \"EMP_ID\", \"LAST_NAME\";\n"; |
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
String html = """ | |
<html> | |
<body> | |
<p>Hello, world</p> | |
</body> | |
</html> | |
"""; |
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
String html = "<html>\n" + | |
" <body>\n" + | |
" <p>Hello, world</p>\n" + | |
" </body>\n" + | |
"</html>\n"; |
NewerOlder