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
function isValueNaN(value) { | |
if(typeof value === "string") { | |
value = String(value).trim().length < 1 ? NaN : value; | |
} | |
// Coerce to number (same as global isNaN behavior) | |
const num = Number(value); | |
// NaN is the only value not equal to itself | |
return num !== num; | |
} |
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
// Online Java Compiler | |
// Use this editor to write, compile and run your Java code online | |
import java.util.Scanner; | |
class LLStack { | |
class Node { | |
public String data; | |
public Node next; | |
} | |
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 | |
use Illuminate\Database\Query\Builder; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Support\Facades\Schema; | |
/** | |
* Handle DataTable backend (for Laravel) | |
* | |
* @param string $table Name of the table. |
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 | |
$array = array( | |
array( | |
'kode' => 'FIS15101', | |
'nama' => 'Fisika Dasar', | |
'sks' => '2', | |
'nilai' => '4', | |
'ak' => '8', | |
), | |
array( |
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 'dart:io'; | |
class User { | |
String nama, pin; | |
int saldo; | |
User(String nama, String pin, int saldo) { | |
this.nama = nama; | |
this.pin = pin; | |
this.saldo = saldo; |