Skip to content

Instantly share code, notes, and snippets.

View sTiKyt's full-sized avatar
🏢

sTiKyt

🏢
View GitHub Profile
((async (startPage = 0, autoClearConsole = true) => {
const getCookie = (name) => {
const value = `; ${document.cookie}`;
const parts = value.split(`; ${name}=`);
if (parts.length === 2) return parts.pop().split(';').shift();
};
const callCacheApi = async (params = {}) => {
const defaultParams = {
@modelmat
modelmat / _classes_output.json
Last active July 22, 2024 09:19
A simple API for My Study Life application
{
"academic_years":[
{
"created_at":"2018-08-11T11:35:29",
"deleted_at":null,
"end_date":"2018-12-19",
"guid":"2adeab27-b77d-40e8-b5c6-48ff699833ef",
"holidays":[
],