Skip to content

Instantly share code, notes, and snippets.

<?php
function isJewishLeapYear($year) {
if ($year % 19 == 0 || $year % 19 == 3 || $year % 19 == 6 ||
$year % 19 == 8 || $year % 19 == 11 || $year % 19 == 14 ||
$year % 19 == 17)
return true;
else
return false;
}
import React, { Component, Fragment } from 'react'
import { CKEditor } from '@ckeditor/ckeditor5-react'
import ClassicEditor from '@ckeditor/ckeditor5-build-classic'
import { ENV } from '../constants/variables'
import { getToken } from "../services/auth"
class TextEditor extends Component{
render(){
const { value, onChange } = this.props // <- Dont mind this, just handling objects from props because Im using this as a shared component.