Skip to content

Instantly share code, notes, and snippets.

David Bruant DavidBruant

Block or report user

Report or block DavidBruant

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:245e54eab11a393b12e48f15b6fee0b7
### Keybase proof
I hereby claim:
* I am davidbruant on github.
* I am davidbruant (https://keybase.io/davidbruant) on keybase.
* I have a public key ASDRtwtQ7KodaLuXjvmeKe3ZfuK4e1n8JHa0oTbq2LbgYgo
To claim this, I am signing this object:
@DavidBruant
DavidBruant / yo.md
Created Oct 29, 2018
Github issue as problems
View yo.md

Github issues should be the description of a problem + optionnally a solution suggestion ( ^ this is the description of a solution. To which problem? ^ )

Only if someone else agrees on the problem a solution should be worked on

If an issue isn't a problem, someone helps reformulate the issue until :

  • it's the description of a problem
  • it's realized it's not a problem (or a duplicate problem)

Maybe nobody wants to spend time help reformulate

View topics.md

Potential topics to talk about at Seneca

  • Contributing in standards
    • ECMAScript 2015 and es-discuss
    • WHATWG, making @sandbox parallelizable
  • Contributing to the JS doc of MDN
  • Finance Transparence in Gironde
    • Front-end makes deployment easier
    • The complicated entrance of Open source and Open data in France Public Service
  • Open source in not enough: applying the code to all local administration
@DavidBruant
DavidBruant / g.sh
Created Dec 25, 2017
Installing gnome-calculator from source
View g.sh
git clone git://git.gnome.org/gnome-calculator
cd gnome-calculator/
sudo apt-get install automake
sudo apt-get install intltool
2019 sudo apt-get install autopoint
2021 sudo apt-get install libtool
2023 sudo apt-get install mpfr
2025 sudo apt-get install libmpfr4-dev
2026 sudo apt-get install libmpfr-dev
View SSH wiki for Ants.md

SSH Wiki for Ants

Basics

ssh user@192.168.20.35 // Basic ssh connection
ssh user@192.168.20.35 -p 33 // Using port 33
ssh user@192.168.20.35 -v // log more info on connection
View territoires.txt
postgres=# select * from territoires;
created_at | updated_at | id | name | description | user_id
-------------------------------+-------------------------------+--------------------------------------+----------------+---------------------+--------------------------------------
2016-07-06 11:35:33.315887+00 | 2016-07-06 11:35:33.315887+00 | 420d67eb-235b-4c0b-bf75-a7598df56b0b | cb | | a8d86ac9-89b1-4017-8760-4c61074b1f79
2016-07-06 15:40:11.201173+00 | 2016-07-06 15:40:11.201173+00 | 17b2e7f2-9a3a-4ced-9b5a-7c6fa8a7f857 | IC | IC and EE | c090d0aa-b71f-4332-b041-9985e0394a0e
2016-07-07 12:54:01.910133+00 | 2016-07-07 12:54:01.910133+00 | cea352d5-752e-4381-8de6-9b9543ab9a91 | Coeur de Forêt | | 3cf51bd6-d9dc-40a6-aabe-9ebbb8d46f3c
2016-07-08 10:15:35.118294+00 | 2016-07-08 10:15:35.118294+00 | a033691f-9bd4-482b-
View remember.js
"use strict";
function remember(...args){
const [key, value] = args;
if(args.length === 1){ // recall
return new Promise(resolve => {
setTimeout(() => {
const val = localStorage.getItem(key);
View url-application-engineering.md

Isomorphic application engineering and URLs in Node.js

A good web application will make good use of URLs and browser history. This allows users to bookmark, use their browser history, etc. However, there are a number of considerations to have in mind when trying to have good URLs

Constraints

  • Good URLs
    • Different objects should have different URLs. The level of granularity is left to the application creator
  • Consistency after a refresh
    • If a user navigate the application and hits refresh, they should see what they left or close enough
View content-blocking-list.txt
https://en.wikipedia.org/wiki/Content-control_software
http://www.wired.com/2015/09/content-blocking-apps/
https://adblockplus.org/blog/content-blocking-in-safari-9-and-ios-9-good-news-or-the-death-knell-of-ad-blocking-on-safari
http://techcrunch.com/gallery/everything-you-need-to-know-about-ios-9s-new-content-blockers/
http://www.mondaynote.com/2015/08/31/life-after-content-blocking/
https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewInSafari/Articles/Safari_9.html
http://thenextweb.com/apple/2015/08/27/content-blocking-in-ios-9-is-going-to-screw-up-way-more-than-just-ads/
https://www.hackingwithswift.com/safari-content-blocking-ios9
http://www.imore.com/ios-9-content-blocking-extensions-explained
http://murphyapps.co/blog/2015/6/24/an-hour-with-safari-content-blocker-in-ios-9
You can’t perform that action at this time.