Skip to content

Instantly share code, notes, and snippets.

Avatar

Jacques Yakoub jy95

  • Brussels, Belgium
View GitHub Profile
@jy95
jy95 / *.py
Created Sep 30, 2020
generate_compilation_errors_table
View *.py
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
Workflow to compile latex
View build-pdf.yml
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
View documentation-changes.yml
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 Nov 18, 2019
Coverage exercise
View *.xml
?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 Aug 17, 2018
YTscheduledVideos2Ical result as ical
View YT2Ical.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:zodj@youtube.com
SEQUENCE:0
DTSTAMP:20180817T130511Z
DTSTART:20190109T113000Z
@jy95
jy95 / tasks.json
Created Apr 5, 2018
Dans .vscode/tasks.json
View 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 Feb 23, 2018
coverage/coverage-final.json
View *.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 Jan 23, 2018
Revision : helpers not compiled in custom test folder
View common-pitfalls.md

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 Dec 14, 2017
Super Cleaner
View *.sql
-- 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;
View gist:4289bc5cd04778198c81008986d6debc
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