Skip to content

Instantly share code, notes, and snippets.

View SamAsEnd's full-sized avatar

Samson Endale SamAsEnd

View GitHub Profile
@SamAsEnd
SamAsEnd / ethiopic.php
Created September 2, 2016 19:34
Ethiopian Date conversion(based on JDN)
<?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)
@SamAsEnd
SamAsEnd / passwords.php
Created October 18, 2018 12:13
Laravel am
<?php
return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
@SamAsEnd
SamAsEnd / auth.php
Created October 18, 2018 12:12
Laravel am language
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
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]
@SamAsEnd
SamAsEnd / index.html
Created April 12, 2016 13:49
Canvas Example: Ethiopian flag ... kinda
<!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;
@SamAsEnd
SamAsEnd / clock.html
Last active April 17, 2016 11:14
SVG Example: Analog Clock
<!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;