Skip to content

Instantly share code, notes, and snippets.

View tomudding's full-sized avatar

Tom Udding tomudding

View GitHub Profile
{
"elements": {
"nodes": [
{
"data": {
"name": "closed",
"id": "closed",
"type": 1
}
},
@tomudding
tomudding / calendar.js
Last active January 29, 2022 15:21
Modified version of Serhioromano/bootstrap-calendar:js/calendar.js to prevent issues with synchronous AJAX requests
/**
* Bootstrap based calendar full view.
*
* https://github.com/Serhioromano/bootstrap-calendar
*
* User: Sergey Romanov <serg4172@mail.ru>
*/
"use strict";
Date.prototype.getWeek = function(iso8601) {
@tomudding
tomudding / output.txt
Created February 24, 2021 17:40
GEWIS/gewisweb Coding Style Issues
Legend: ?-unknown, I-invalid file syntax (file ignored), S-skipped (cached or empty file), .-no changes, F-fixed, E-error
1) /code/module/Activity/src/Activity/Controller/ActivityCalendarController.php (braces)
2) /code/module/Activity/src/Activity/Controller/ActivityController.php (braces)
3) /code/module/Activity/src/Activity/Mapper/ActivityOption.php (no_trailing_whitespace_in_comment, single_blank_line_at_eof)
4) /code/module/Activity/src/Activity/Mapper/ActivityFieldValue.php (no_trailing_whitespace, no_trailing_whitespace_in_comment, single_blank_line_at_eof)
5) /code/module/Activity/src/Activity/Mapper/Activity.php (braces)
6) /code/module/Activity/src/Activity/Model/ActivityTranslation.php (braces, single_blank_line_at_eof)
7) /code/module/Activity/src/Activity/Model/ActivityOptionTranslation.php (blank_line_after_namespace, single_blank_line_at_eof)
8) /code/module/Activity/src/Activity/Model/ActivityFieldTranslation.php (blank_line_after_namespace)
9) /code/module/Activity
@tomudding
tomudding / tue_osiris_all_courses_fetcher.js
Last active January 2, 2021 20:49
TU/e OSIRIS Course Information Retrieval
await fetch("https://tue.osiris-student.nl/student/osiris/student/cursussen/zoeken", {
"credentials": "include",
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0",
"Accept": "application/json, text/plain, */*",
"Accept-Language": "en-GB",
"Authorization": "Bearer [BEARER_TOKEN]",
"taal": "EN",
"Cache-Control": "no-cache, no-store, must-revalidate, private",
"Pragma": "no-cache",
@tomudding
tomudding / override_ans.app_style.css
Last active September 19, 2020 18:48
Ans* shitty darkmode TU/e
a {
color: #D9D9D9 !important;
}
a.ml-4.center-align {
color: #C72125 !important;
font-weight: bold !important;
text-decoration: underline !important;
}
This file has been truncated, but you can view the full file.
50
1507671
1277
544021602
1509587
1431525283
-1975938332
1574076392
-945883542
50770
@tomudding
tomudding / MobyLinux.ps1
Last active May 17, 2020 13:59
Modified version of Docker Desktop's MobyLinux.ps1. This modified version allows computers on a network domain to run Docker Desktop (2.2.0.5) using Linux Containers.
<#
.SYNOPSIS
Manages a MobyLinux VM to run Linux Docker on Hyper-V
.DESCRIPTION
Creates/Destroys/Starts/Stops A MobyLinux VM to run Docker on Hyper-V
.PARAMETER VmName
If passed, use this name for the MobyLinux VM, otherwise 'MobyLinuxVM'
@tomudding
tomudding / code.md
Last active May 15, 2017 17:07
A list of responses to questions asked on Stack Overflow

Stack Overflow is not a free code writing service. You are expected to try to write the code yourself. After doing more research if you have a problem you can post what you've tried with a clear explanation of what isn't working and providing a Minimal, Complete, and Verifiable example. I suggest reading How to Ask a good question and the perfect question. Also, be sure to take the tour.

`Stack Overflow is not a free code writing service. You are expected to try to write the code yourself. After doing more research if you have a problem you can post what you've tried with a clear explanation of what isn't working and providing a

Keybase proof

I hereby claim:

  • I am tomudding on github.
  • I am tomudding (https://keybase.io/tomudding) on keybase.
  • I have a public key ASC8EW-LWjBqtvWuORuGf1hcZ9Y6jtIzE7A6QZd0W0x5YQo

To claim this, I am signing this object: