Skip to content

Instantly share code, notes, and snippets.

View destpat's full-sized avatar
🏠
Working from home

YV destpat

🏠
Working from home
View GitHub Profile
var __INHOUSE_BASE_URL = "https://core-stage.inhouse.app";
var __INHOUSE_LOAD_INTERVAL = 2000;
var axiosScript = document.createElement("script");
const openModal = (pickupPointWidgetUrl) => {
document.getElementById("main-header").innerHTML = `
<div id="sympl_modal_pickup_point" style="position: fixed; overflow: hidden; top: 0; left: 0; z-index: 2147483647; width: 100%; height: 100%; overflow: auto; background-color: rgb(0,0,0); background-color: rgba(0,0,0,0.4);">
<iframe
id="pickupPointIframe"
title="Pickup Point"
@destpat
destpat / shopify.js
Last active January 8, 2022 17:38
test-shopify-script
console.log('hello')
bonjour tous le monde
console.log('hello')
@destpat
destpat / index.js
Created October 16, 2020 16:59
Create custom legend buttons for React Highcharts stacked bar chart component
import React, { useState } from 'react';
import { Box, Checkbox, FormControlLabel, FormGroup } from '@material-ui/core';
import Highcharts from 'highcharts';
import HighchartsReact from 'highcharts-react-official';
import configObj from '../utils/configObj';
export const StackedBarChart = () => {
const [scopeButton, setScopeButton] = useState(<div />);
const highchartsCallback = chart => {
chart.series.forEach((item, index) => {
@destpat
destpat / generate pdf
Last active October 21, 2019 15:43
Generate pdf label
/**
* Use this website for generate pdf label http://raw.githack.com/MrRio/jsPDF/master/
* copy / past the code
**/
var doc = new jsPDF('l', 'mm', [70,24]);
doc.setFontSize(15);
var i;
@destpat
destpat / gist:115c60cf63af19d5c461
Created February 25, 2016 14:52
mon_historique.log
956 cd Bureau/
957 ls
958 cd clmystery/
959 ls
960 cat hint1
961 cat hint2
962 cat hint3
963 cat hint4
964 cat hint5
965 cat hint6
puts "My first doc"
puts "My first doc"