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
/** | |
* Fix any type to index | |
* | |
* @param name | |
*/ | |
const getKeyFromAnyType = (name: any) => { | |
const str: keyof Element = name | |
return str; | |
} |
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
<template> | |
<div> | |
<div v-for="(photo, index) in photos" class="row my-3 border"> | |
<div class="form-group my-3 col-lg-6 col-12"> | |
<div class="custom-file"> | |
<input type="file" class="custom-file-input" name="uploadFile" | |
id="customFile" | |
accept='image/*' | |
@change="handleFile($event, index)"> | |
<label class="custom-file-label" |
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
class CheckIfUserIsAdmin | |
{ | |
/** | |
* Check if user is admin | |
* | |
* @param \Illuminate\Http\Request $request | |
* @param \Closure $next | |
* @return mixed | |
*/ | |
public function handle($request, Closure $next) |
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
// Greek Social Security Number Validation (AMKA) | |
// Αλγόριθμος ορθότητας ΑΜΚΑ | |
function validateAMKA(amka) { | |
if (!amka.match(/^\d{11}$/) || amka == '00000000000') | |
return false; | |
var iSum = 0; | |
for (var i = 1; i <= amka.length; i++) { | |
var iDigit = parseInt(amka.charAt(i - 1), 10); | |
if (i % 2 === 0) { |
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
<template> | |
<table class="table table-responsive"> | |
<thead> | |
<tr> | |
<th></th> | |
<th v-for="tooth in teeth" :key="tooth.id" | |
class="text-center tooth-label"> | |
<img :src="imagePath(tooth.number)" class="toothImage"> |
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
/** | |
* Get all the dates, without duplicates | |
* | |
* @returns {*[]} | |
*/ | |
getDates () | |
{ | |
// Get only the dates from array | |
let dates = []; |
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
#EXTM3U | |
#EXTINF:0,095.20 | Athens Deejay FM, Athens (Mainstream Pop, Top Hits) - 95.2 Athens DeeJay | |
http://94.23.0.114:41972 | |
#EXTINF:0,089.20 | Music, Athens (Mainstream Pop, Top Hits) - Music 89.2 | |
http://ample-02.radiojar.com/k0hua7u1yk5tv | |
#EXTINF:0,104.60 | Hot FM, Athens (Mainstream Pop, Top Hits) - Hot 104.6 | |
http://hotfm.live24.gr:80/hotfm | |
#EXTINF:0,101.60 | Radio Paradise, Poros (Mainstream Pop, Top Hits) - Netcast | |
http://213.239.206.179:8850 | |
#EXTINF:0,088.90 | Hit, Athens (Pop, Top Hits) - HIT 889 radio |
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
/** | |
* Clean a collection from duplicate entries | |
* | |
* @param $collection | |
* @param $field | |
* @return mixed | |
*/ | |
protected function cleanCollection($collection, $field) | |
{ | |
// Group collection by field and then return only the unique items |
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
<template functional> | |
<div> | |
<table class="table"> | |
<thead> | |
<tr> | |
<th scope="col"></th> | |
<th scope="col">#</th> | |
<th scope="col">Όνομα</th> | |
<th scope="col">Επώνυμο</th> |