Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

OmarMakled

🎯
Focusing
  • Cairo
View GitHub Profile
View Palindrome.md
function palindrome(str) {
 return str.split('').every((char, i) => {
   return char === str[str.length - i - 1]
 })
};
console.log(palindrome("abba"))
@OmarMakled
OmarMakled / isEvenOdd.php
Last active May 24, 2017
function that takes an integer as an argument and returns "Even" for even numbers or "Odd" for odd numbers
View isEvenOdd.php
if (! function_exists('isEvenOdd')) {
/**
* Determine if given number even or odd
*
* @param float|int $number
*
* @return string|InvalidArgumentException
*/
function isEvenOdd($number)
View mongodb_cheat_sheet.md

Mongodb Cheat Sheet

Insert

Insert one

db.users.insert(
    {_id: 1, name: 'alex'}
)
You can’t perform that action at this time.