This file contains 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
DELIMITER $$ | |
CREATE OR REPLACE FUNCTION ET__CALCULATE_R(IN date DATE) | |
RETURNS INT UNSIGNED | |
DETERMINISTIC | |
BEGIN | |
DECLARE jdn INT UNSIGNED; | |
SET jdn = TO_DAYS(date) + 1721060; | |
RETURN (jdn - 1723856) % 1461; |
This file contains 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 | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Password Reset Language Lines | |
|-------------------------------------------------------------------------- | |
| | |
| The following language lines are the default lines which match reasons |
This file contains 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 | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Authentication Language Lines | |
|-------------------------------------------------------------------------- | |
| | |
| The following language lines are used during authentication for various |
This file contains 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
def JosephusProblemSimulator(n, debug=False): | |
people = list(range(1, n+1)) | |
person = 1 | |
kill = False | |
while len(people) > 1: | |
if people.index(person) + 1 > len(people) - 1: | |
nxtPerson = people[0] |
This file contains 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 | |
/** | |
* Return a true if the year is a leap year based on the ethiopian calendar. | |
* | |
* @param int $year the ethiopian date to be checked | |
* | |
* @return bool | |
*/ | |
function ethiopian_is_leap_year($year) |
This file contains 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> | |
<meta charset="UTF-8"> | |
<title>SVG Example: Analog Clock</title> | |
<meta name="author" content="Sam As End <4sam21{guess}gmail.com>"/> | |
<style> | |
svg#plate { | |
height: 500px; | |
width: 500px; |
This file contains 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 lang="en"> | |
<meta charset="UTF-8"> | |
<title>Multi Media Class</title> | |
<style> | |
canvas { | |
border: 1px #000 solid; | |
margin: 50px auto; | |
display: block; |