Skip to content

Instantly share code, notes, and snippets.

bin/mysql -u dbeaver -p -e "CREATE DATABASE eoffice CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"
bin/mysql -u dbeaver -p eoffice < /home/sumberwaras/Downloads/eoffice_db1.sql
select name from employees
where id not in(select managerId from employees where managerId is not null)
select count(*)as nama from students
where firstname="John"
<?php
class Pipeline
{
public static function make_pipeline(...$funcs)
{
return function($arg) use ($funcs)
{
foreach ($funcs as $func){
$arg = $func($arg);
}
<?php
class Palindrome
{
public static function isPalindrome($word)
{
$word = strtolower($word);
$word2 = strlen($word);
for($a = 0; $a < $word2; $a++)