Skip to content

Instantly share code, notes, and snippets.

@bussiere
bussiere / citations
Created December 24, 2010 10:16
citations quote informatic informatique quotes computer science
“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill
“In order to understand recursion, one must first understand recursion.” – Author Unknown
“I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone.” – Bjarne Stroustrup
“A computer lets you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila.” – Mitch Ratcliffe
“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.” -C.A.R. Hoare
“The gap between theory and practice is not as wide in theory as it is in practice.” – Author Unknown
“If builders built buildings the way progra
@bussiere
bussiere / xor.js
Created March 14, 2017 05:21
xor encrypt javascript
// xorEncode.js - Topcat Software LLC. 2011
// bitwise XOR cipher for javascript
// http://www.topcat.hypermart.net/index.html
//
// referencing the script in your HTML:
//
// <html>
// <head>
// <script type="text/javascript" src="xorEncode.js"></script>
// </head>
@bussiere
bussiere / compress.go
Created December 22, 2016 01:16
compress uncompress a string in golang
package main
import (
"bytes"
"compress/gzip"
"fmt"
"encoding/base64"
"io/ioutil"
)
@bussiere
bussiere / DND1.basic
Created April 21, 2014 09:28
The code source of DND1 by RIchard Garriott Copyright himself.
DND
-
1
1500 lines
(C)
1977
-
2014 Richard Garriott
79/02/28. 19.27.34.
import { Module } from '@nestjs/common';
import { ServeStaticModule } from '@nestjs/serve-static';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { join } from 'path';
// we serve the static content from the html folder
https://fr.camelcamelcamel.com/ <- extension pour avoir l'historique des prix
https://keepa.com/ <- pareil pour historique
https://www.idealo.fr/ - <-comparateur de prix
https://www.dealabs.com/ <- site qui repertorie des deals
@bussiere
bussiere / one_flask.py
Created May 5, 2021 10:37 — forked from mikefromit/one_flask.py
a one file flask app for trying stuff
# THIS PROJECT IS AN EXAMPLE APP. SOME CODE MAY NOT BE ACTUALLY USEFUL
# FOR DEMONSTRATION PURPOSES ONLY
# YOUR MILEAGE MAY VARY
# Requirements are Flask, Flask-WTF, Flask-SQLAlchemy
import os
from flask import (Flask,
Blueprint,
redirect,
@bussiere
bussiere / autocomplete-group-results-trevoreyre-autocomplete-js.markdown
Created April 14, 2021 09:13
Autocomplete group results - @trevoreyre/autocomplete-js

Autocomplete group results - @trevoreyre/autocomplete-js

Example of an autocomplete component using a custom renderResult function to control of rendering of items in the results list, and grouping the results into groups of 3. Using the @trevoreyre/autocomplete-js package from npm.

A Pen by Trevor Eyre on CodePen.

License.

@bussiere
bussiere / srd_5e_monsters.json
Created January 14, 2021 21:44 — forked from tkfu/srd_5e_monsters.json
A JSON file with all the D&D 5e SRD monster data
[
{
"name": "Aboleth",
"meta": "Large aberration, lawful evil",
"Armor Class": "17 (Natural Armor)",
"Hit Points": "135 (18d10 + 36)",
"Speed": "10 ft., swim 40 ft. ",
"STR": "21",
"STR_mod": "(+5)",
"DEX": "9",
@bussiere
bussiere / config.go
Created December 18, 2020 20:49 — forked from chazcheadle/config.go
Golang Viper config read into struct
package main
import (
"fmt"
"github.com/spf13/viper"
)
// Create private data struct to hold config options.
type config struct {