Skip to content

Instantly share code, notes, and snippets.

View atyahyde's full-sized avatar

Tyan Andriansyah atyahyde

View GitHub Profile
-- Write only the SQL statement that solves the problem and nothing else.
SELECT name from employees WHERE (id NOT IN (SELECT managerId FROM employees WHERE (managerId IS NOT NULL)))
-- Write only the SQL statement that solves the problem and nothing else.
SELECT count(firstname) as total from Students WHERE firstName = "John"
<?php
class Palindrome
{
public static function isPalindrome($word)
{
$temp = strtolower(preg_replace("/[^A-Za-z0-9 ]/", '', $word));
if(strrev($temp)==$temp)
return TRUE;
else
return FALSE;
<?php
class Pipeline
{
public static function make_pipeline()
{
$func_list = func_get_args();
$result = function($arg) use ($func_list)
{
foreach($func_list as $funcs)