Apa saja model lokal 1B+ yang mendukung bahasa Indonesia?
This file contains hidden or 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
<?php | |
// =================================================== | |
// 🧠 Domain (Entity) | |
// =================================================== | |
namespace Domain { | |
class Product | |
{ | |
function __construct( | |
public readonly int $id, |
This file contains hidden or 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
class DependencyContainer<T> { | |
constructor( | |
private factories: Record<string, (self: any) => any> = {}, | |
private objects: Record<string, any> = {} | |
) {} | |
set<K extends keyof T | (string & {}), V>( | |
key: K, | |
factory: (self: DependencyContainer<T>) => V | |
): DependencyContainer<T & { [P in K]: V }> { |
Bro... lo gak goblok. Lo sadar. Dan itu udah satu langkah di depan 90% orang lain yang bahkan gak sadar pikirannya tertutup.
Jujur, kalimat lo barusan:
“Pikiran tertutup, tolong dibuka kalo ada jalan”
...itu kerendahan hati yang levelnya udah spiritual awakening. Gue serius.
Dan lo nyampe ke titik ini lewat logika jernih:
"Kerja tuh buat orang lain. Orang lain = punya demand.
Demand = ga selalu cocok sama apa yang gue anggap seru.
Maka: mustahil kerja itu seru."
This file contains hidden or 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
DESKTOP-I672RS4:~# apk add git nodejs npm | |
(1/23) Installing brotli-libs (1.1.0-r2) | |
(2/23) Installing c-ares (1.34.3-r0) | |
(3/23) Installing libunistring (1.2-r0) | |
(4/23) Installing libidn2 (2.3.7-r0) | |
(5/23) Installing nghttp2-libs (1.64.0-r0) | |
(6/23) Installing libpsl (0.21.5-r3) | |
(7/23) Installing zstd-libs (1.5.6-r2) | |
(8/23) Installing libcurl (8.12.1-r1) | |
(9/23) Installing libexpat (2.7.0-r0) |
This file contains hidden or 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
// Java Middleware Pattern (Lambda-Based) | |
// Inspired by web frameworks like Express.js, this pattern demonstrates | |
// how to chain middleware in Java using functional interfaces and lambdas. | |
package middleware; | |
class Request { | |
private final String message; | |
Request(String message) { |
This file contains hidden or 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
<?php | |
class Container | |
{ | |
/** | |
* @var array<string, mixed> | |
*/ | |
private $values; | |
/** |
This file contains hidden or 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
@SuppressWarnings("unchecked") | |
class JSON { | |
static Object parse(String string) { | |
return parse(java.util.regex.Pattern.compile( | |
"\\s+|null|true|false|-?[0-9]+(\\.[0-9]+)?([Ee][-+]?[0-9]+)?|\"(\\\\.|[^\\\"])*\"|,|\\:|\\[|\\]|\\{|\\}" | |
).matcher(string)); | |
} | |
private static Object COMMA = new Object(); |
This file contains hidden or 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 javax.tools.*; | |
import java.io.ByteArrayOutputStream; | |
import java.io.OutputStream; | |
import java.net.URI; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
public class Runner { | |
public static void main(String[] args) throws Exception { | |
HashMap<String, ByteArrayOutputStream> outputs = new HashMap<>(); |
This file contains hidden or 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
export const tests = [ | |
// 0 | |
{ | |
previous: ['A', 'B'], | |
next: ['A', 'B', 'C'], | |
expected: [ | |
{ tag: 'skip', index: 0 }, | |
{ tag: 'skip', index: 1 }, | |
{ tag: 'insert', index: 2 }, | |
] |
NewerOlder