Skip to content

Instantly share code, notes, and snippets.

View jchome's full-sized avatar
🕹️
Working on gamification in web app

Julien CORON jchome

🕹️
Working on gamification in web app
View GitHub Profile
@jchome
jchome / my-element.js
Last active February 22, 2024 15:14
Template for lit-element class
import { LitElement, html } from 'lit'
//import { unsafeHTML } from 'lit/directives/unsafe-html.js'
export default class MyElement extends LitElement {
static properties = {
//configuration: {type: Object},
}
static get styles() { };
@jchome
jchome / loadExcelAsDatabase-main.js
Last active October 25, 2023 09:12
Load Excel file in web page and request as a database
$(document).ready(function () {
loadData().then((database) => {
console.log(database["onglet_1"]);
var onglet = TAFFY(database["onglet_1"]);
var titre = onglet({id: "1"}).first()["titre"];
$('#main').html(titre);
});
});
@jchome
jchome / parkings.py
Last active February 27, 2023 10:29
Python version of the "Parking" exercise
from flask import Flask, request
import urllib.request
import json
import geopy.distance
app = Flask(__name__)
def parkings_Poitiers():
"""