Skip to content

Instantly share code, notes, and snippets.

View bastienrobert's full-sized avatar
🎲
728

Bastien Robert bastienrobert

🎲
728
View GitHub Profile
@bastienrobert
bastienrobert / README.md
Last active November 6, 2017 08:21
README markdown template
@bastienrobert
bastienrobert / .htaccess
Created November 29, 2017 14:32
Remove .html from HTACCESS
#example.com/page will display the contents of example.com/page.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.+)$ $1.html [L,QSA]
#301 from example.com/page.html to example.com/page
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*\.html\ HTTP/
RewriteRule ^(.*)\.html$ /$1 [R=301,L]

EDT

Bored to get a paper planning, I always forgot. So this script (gonna be better soon) allows me to transform an array to a CSV, to import it on my Calendar.

TODO

  • Form (with HTML and custom style) to enter it
  • Managing TD, TP, LV2 & Modules
  • Beautify the code
  • Set in production
  • Ask for a Google Auth (optionnal) for automatic import
@bastienrobert
bastienrobert / TECHS.md
Last active January 30, 2018 23:35
Technologies I already used

Technologies

Here are the techs I already used.

Legend

❤️ Mastered

... Doesn't mastered, but advanced utilisation

😕 Already used but doesn't mastered

Verifying my Blockstack ID is secured with the address 17fkwmZnCZpyXDDPBAsThSxGaZzPisEP6S https://explorer.blockstack.org/address/17fkwmZnCZpyXDDPBAsThSxGaZzPisEP6S
@bastienrobert
bastienrobert / CONTRIBUTING.md
Created July 5, 2018 23:52
Contributing - Inspired by Angular guide
@bastienrobert
bastienrobert / CubeGeometry.js
Created December 29, 2018 11:29
Some basics geometries
const vertices = [
// x, y, z
// FRONT
1.0, 1.0, 1.0,
-1.0, 1.0, 1.0,
-1.0, -1.0, 1.0,
1.0, -1.0, 1.0,
// RIGHT
1.0, 1.0, -1.0,
1.0, 1.0, 1.0,
@bastienrobert
bastienrobert / SPECS.md
Last active March 27, 2019 15:03
Nova experience

Nova

Nova est une expérience web utilisant React et THREE.JS.

Le but de cette expérience est de proposer à l’utilisateur de concevoir sa vision de la beauté à travers la création d’une planète en fonction des choix et des interactions qu’il découvrira tout au long d’un récit, raconté par un enfant narrateur.

Afin de rendre Nova facilement accessible et à la portée de tous, le choix d’un support web desktop est venu naturellement face au nombre et au moyen d’interagir avec l’expérience.

Introduction:

@bastienrobert
bastienrobert / rollup-plugin-rename-imports.js
Created October 19, 2019 10:59
Rollup plugin to rename imports in an ES modules
/**
* @example
* // rename 'preact' as 'https://cdn.pika.dev/preact/^8.5.2'
* // and set 'https://cdn.pika.dev/preact/^8.5.2' as external
* renameImports({ 'preact': 'https://cdn.pika.dev/preact/^8.5.2' })
*/
export default function renameImports(packages = {}) {
return {
name: 'rename-imports',
transform(code) {

js bitwise cheat sheet

var INIT = 0x1      // 0 0 0 0 1
  , PENDING = 0x2   // 0 0 0 1 0
  , DONE = 0x4      // 0 0 1 0 0
  , ERROR = 0x8     // 0 1 0 0 0
  , SUCCESS = 0x10  // 1 0 0 0 0
  , ALL = 0x1f      // 1 1 1 1 1