Skip to content

Instantly share code, notes, and snippets.

View jy95's full-sized avatar

Jacques Yakoub jy95

  • Brussels, Belgium
View GitHub Profile
@jy95
jy95 / *.py
Created September 30, 2020 17:51
generate_compilation_errors_table
def generate_compilation_errors_table(errors, allowed_sources):
msg = ""
# Don't add \r to that as it produces strange results
next_line = "\n"
indentation = 4
headers = ["File", "Line", "Error Message", "Code"]
# Headers
msg += ".. csv-table:: " + next_line
# Need a symbol that isn't in the Java
@jy95
jy95 / build-pdf.yml
Created May 7, 2020 09:43
Workflow to compile latex
name: Build LaTeX document
on: [push]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@master
name: API Breaking Changes
# Everyone is happy with breaking changes ^^
on:
pull_request:
jobs:
build-oas-artefacts:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
@jy95
jy95 / *.xml
Created November 18, 2019 13:30
Coverage exercise
?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE report PUBLIC "-//JACOCO//DTD Report 1.1//EN" "report.dtd">
<report name="JaCoCo Coverage Report">
<sessioninfo id="6ce8219d88ab-173463dd" start="1573946436059" dump="1573946436530"/>
<package name="flavour">
<class name="flavour/BigDecimal" sourcefilename="BigDecimal.java">
<method name="&lt;init&gt;" desc="()V" line="3">
<counter type="INSTRUCTION" missed="3" covered="0"/>
<counter type="LINE" missed="1" covered="0"/>
<counter type="COMPLEXITY" missed="1" covered="0"/>
@jy95
jy95 / YT2Ical.ical
Created August 17, 2018 20:11
YTscheduledVideos2Ical result as ical
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//sebbo.net//ical-generator//EN
NAME:YouTube scheduled videos to ical
X-WR-CALNAME:YouTube scheduled videos to ical
BEGIN:VEVENT
UID:[email protected]
SEQUENCE:0
DTSTAMP:20180817T130511Z
DTSTART:20190109T113000Z
@jy95
jy95 / tasks.json
Created April 5, 2018 11:47
Dans .vscode/tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"tasks": [
{
"taskName": "build",
"command": "ozc",
"windows": {
"command": "C:\\Program Files\\Mozart\\bin\\ozc.exe"
@jy95
jy95 / *.json
Created February 23, 2018 11:04
coverage/coverage-final.json
{"D:\\workspaceNodeJs\\mediaScan\\lib\\MediaScan.js": {"path":"D:\\workspaceNodeJs\\mediaScan\\lib\\MediaScan.js","statementMap":{"0":{"start":{"line":3,"column":17},"end":{"line":3,"column":61}},"1":{"start":{"line":5,"column":12},"end":{"line":5,"column":27}},"2":{"start":{"line":7,"column":14},"end":{"line":7,"column":31}},"3":{"start":{"line":9,"column":16},"end":{"line":9,"column":59}},"4":{"start":{"line":11,"column":14},"end":{"line":11,"column":31}},"5":{"start":{"line":13,"column":24},"end":{"line":13,"column":61}},"6":{"start":{"line":15,"column":23},"end":{"line":15,"column":57}},"7":{"start":{"line":19,"column":39},"end":{"line":19,"column":93}},"8":{"start":{"line":21,"column":24},"end":{"line":21,"column":328}},"9":{"start":{"line":21,"column":99},"end":{"line":21,"column":154}},"10":{"start":{"line":21,"column":133},"end":{"line":21,"column":151}},"11":{"start":{"line":21,"column":164},"end":{"line":21,"column":326}},"12":{"start":{"line":21,"column":198},"end":{"line":21,"column":323}},"13":{"
@jy95
jy95 / common-pitfalls.md
Last active January 23, 2018 17:20
Revision : helpers not compiled in custom test folder

Common Pitfalls

Translations: Français

ESLint plugin

If you use ESLint, you can install eslint-plugin-ava. It will help you use AVA correctly and avoid some common pitfalls.

AVA in Docker

@jy95
jy95 / *.sql
Created December 14, 2017 17:55
Super Cleaner
-- NOTRE MODULE
DELETE FROM student_collaboration_helprequest_skill;
DELETE FROM student_collaboration_helprequest;
DELETE FROM student_collaboration_studentcollaborator;
DELETE FROM student_collaboration_collaborativesettings;
-- TOUTE LA CRASSE D'OSCAR
DELETE FROM skills_studentskill;
DELETE FROM promotions_lesson_students;
DELETE FROM promotions_lesson_professors;
1. Dans oscar/settings.py ; s'assurer que leur worker soit ko
# CHANNEL_LAYERS = {
# "default": {
# "BACKEND": "asgiref.inmemory.ChannelLayer",
# "ROUTING": "notification.web_sockets.routing.channel_routing",
# },
# }
2. Dans templates/base.haml ; commenter le js