Skip to content

Instantly share code, notes, and snippets.

View bqst's full-sized avatar
:shipit:

Bastien bqst

:shipit:
View GitHub Profile
@bqst
bqst / jquery.plugin.colissimo.js
Created November 14, 2023 18:55
Colissimo jQuery Plugin
jQuery.extend(jQuery.fn, {
frameColissimoOpen: function (s) {
var i = jQuery.noConflict(),
o = [];
o.push('<div class="couleur1" id="widget_colissimo_couleur1" style="display : none;" ></div>'),
o.push('<div class="couleur2" id="widget_colissimo_couleur2" style="display : none;" ></div>'),
o.push('<div class="police" id="widget_colissimo_police" style="display : none;" ></div>'),
(conteneur_widget_colissimo = this).html(o.join("\n")),
null == s.couleur1
? null != i(".couleur1").css("color") && null != i(".couleur1").css("color") && "" != i(".couleur1").css("color") && "rgb(0, 0, 0)" != i(".couleur1").css("color")
@bqst
bqst / ColissimoPickupWidget.js
Created November 14, 2023 18:54
Colissimo Pickup Widget React Component Integration
import React, { Component } from 'react';
class ColissimoWidget extends Component {
componentDidMount() {
this.loadScript('https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.js', () => {
this.loadScript('https://api.mapbox.com/mapbox-gl-js/v2.6.1/mapbox-gl.js', () => {
this.loadScript('https://ws.colissimo.fr/widget-colissimo/js/jquery.plugin.colissimo.min.js', this.initializeWidget);
});
});
this.loadStyle('https://api.mapbox.com/mapbox-gl-js/v2.6.1/mapbox-gl.css');
### Keybase proof
I hereby claim:
* I am bqst on github.
* I am bqst (https://keybase.io/bqst) on keybase.
* I have a public key ASBcpCnHtFNNaFepOs_DDH2kK7slNFVHvBe1-WiEPezJuAo
To claim this, I am signing this object:
@bqst
bqst / article.html
Created June 8, 2021 09:34
Exemple Schema Article
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Microdata example - blog article</title>
</head>
<body itemscope itemtype="https://schema.org/WebPage">
<!-- Accessibility levels -->
@bqst
bqst / industries.json
Created November 24, 2020 09:53
Industries
[{:value=>"accounting", :text=>"Comptabilité"}, {:value=>"airlines-aviation", :text=>"Aviation/transport aérien"}, {:value=>"alternative-medicine", :text=>"Médecines alternatives"}, {:value=>"animation", :text=>"Animation"}, {:value=>"architecture-planning", :text=>"Architecture et planification"}, {:value=>"arts-and-crafts", :text=>"Art et loisirs"}, {:value=>"automotive", :text=>"Automobile"}, {:value=>"aviation-aerospace", :text=>"Aviation/aéronautique"}, {:value=>"banking", :text=>"Banque"}, {:value=>"broadcast-media", :text=>"Médias audiovisuels"}, {:value=>"building-materials", :text=>"Matériaux de construction"}, {:value=>"capital-markets", :text=>"Marchés de capitaux"}, {:value=>"civic-social-organization", :text=>"Organisations citoyennes et sociales"}, {:value=>"commercial-real-estate", :text=>"Immobilier commercial"}, {:value=>"computer-network-security", :text=>"Sécurité informatique et réseau"}, {:value=>"computer-hardware", :text=>"Matériel informatique"}, {:value=>"computer-networking", :text=>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bqst
bqst / notifications.js.coffee
Created October 1, 2019 14:27
notifications.js.coffee
# app/assets/javascripts/notifications.coffee
class Notifications
constructor: ->
@getNewNotifications()
@notifications = $("[data-behavior='notifications']")
if @notifications.length > 0
@handleSuccess @notifications.data('notifications')
$("[data-behavior='notifications-link']").on "click", @handleClick
@bqst
bqst / webpacker_rails.md
Created September 5, 2019 13:19 — forked from maxivak/webpacker_rails.md
Webpack, Yarn, Npm in Rails