Skip to content

Instantly share code, notes, and snippets.

View b3b00's full-sized avatar

Olivier Duhart b3b00

  • Brest, France
View GitHub Profile
@b3b00
b3b00 / App.svelte
Last active January 11, 2024 14:04
svelte filterable TreeView
<script>
import TreeView from './TreeView.svelte';
import Node from './Node.svelte';
import {selectedNode} from './teststore.js'
let name = 'world';
$selectedNode = undefined
let root = {
{"name":"Modal Dialog in Bootstrap","method":"url","files":[{"location":"./playgrounds/boostrapmodaldialog/server.js","filename":"server.js","builtin":true,"contents":"\non.get(\"/\", (request) => {\n return render(request, 'index.html')\n})\n\non.get(\"/modal\", (request) => {\n return render(request, 'modal.html')\n})\n"},{"location":"./playgrounds/boostrapmodaldialog/.playground.json","filename":".playground.json","builtin":true,"contents":"{\n \"name\": \"Modal Dialog in Bootstrap\",\n \"method\": \"url\",\n \"files\": [\n {\n \"location\": \"./playgrounds/boostrapmodaldialog/server.js\",\n \"filename\": \"server.js\",\n \"builtin\": true\n },\n {\n \"location\": \"./playgrounds/boostrapmodaldialog/.playground.json\",\n \"filename\": \".playground.json\",\n \"builtin\": true\n },\n {\n \"location\": \"./playgrounds/.loader.html\",\n \"filename\": \".loader.html\",\n
@b3b00
b3b00 / ChronoExts.cs
Last active April 26, 2023 08:37
C# chrono
using System.Collections.Generic;
using System.Diagnostics;
namespace Chrono.Ext
{
public class ChronoExts
{
public List<long> ElapsedMilliseconds { get; set; }
public IDictionary<string,long> LabeledElapsedMilliseconds { get; set; }

Multiple SSH keys for GitHub

le problème

comment jongler entre plusieurs clé SSH selon les repo github (entre perso et pro par exemple)

Créer plusieurs clés publiques

@b3b00
b3b00 / css-tournament-bracket.markdown
Created June 21, 2019 18:40
CSS Tournament Bracket
@b3b00
b3b00 / app.js
Created April 6, 2022 10:03
reactAce
‎‎​
@b3b00
b3b00 / App.svelte
Created August 8, 2019 07:11
svelte navigation / layout gist
<script>
import Box from './Box.svelte';
import C1 from './C1.svelte';
import C2 from './C2.svelte';
let display = "one";
let value = "one";
function one() {
display = "one";
value = "one";
@b3b00
b3b00 / First.svelte
Last active August 7, 2019 15:02
svelte js navigation
<script>
import { createEventDispatcher } from 'svelte';
export let v = 0;
const dispatch = createEventDispatcher();
function nxt() {
let rnd = Math.random();
rnd = Math.ceil(rnd *100)
dispatch('next',{value:rnd});
@b3b00
b3b00 / gist:26108b01db0d2e0aa829bad996243f0f
Created August 1, 2019 07:55
JavaFX : textfield editing cell with tab (shift+tab) moving to next (previous) cell
package org.pcp.tournament.infra;
import javafx.application.Platform;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.EventHandler;
import javafx.scene.control.*;
import javafx.scene.control.TextField;
import javafx.scene.input.KeyCode;
@b3b00
b3b00 / index.html
Created June 21, 2019 18:42
Tournament Bracket with Flexbox
<h1>2013 NCAA Tournament - Midwest Bracket</h1>
<main id="tournament">
<ul class="round round-1">
<li class="spacer">&nbsp;</li>
<li class="game game-top winner">Lousville <span>79</span></li>
<li class="game game-spacer">&nbsp;</li>
<li class="game game-bottom ">NC A&T <span>48</span></li>
<li class="spacer">&nbsp;</li>