A Pen by Web Dev Simplified on CodePen.
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 | |
//simple class to convert number to words in php based on http://www.karlrixon.co.uk/writing/convert-numbers-to-words-with-php/ | |
if ( !class_exists('NumbersToWords') ){ | |
/** | |
* NumbersToWords | |
*/ | |
class NumbersToWords{ | |
public static $hyphen = '-'; | |
public static $conjunction = ' and '; |
Made for hackerrank code evaluation
A Pen by Guilherme Maciel on CodePen.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
height: 100%; | |
margin: 0; | |
width: 100%; | |
overflow: hidden; | |
} |
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
// src/components/Navbar.js | |
import React from 'react'; | |
const Navbar = () => { | |
return ( | |
<nav className="bg-blue-600 sticky top-0 z-50 shadow-md"> | |
<div className="max-w-7xl mx-auto px-2 sm:px-6 lg:px-8"> | |
<div className="relative flex items-center justify-between h-16"> | |
<div className="absolute inset-y-0 left-0 flex items-center sm:hidden"> |
OlderNewer