Skip to content

Instantly share code, notes, and snippets.

View Exilz's full-sized avatar
🙃

Maxime Bertonnier Exilz

🙃
View GitHub Profile
@ModPhoenix
ModPhoenix / axios-interceptors-refresh-token.js
Last active June 12, 2024 08:12
Axios interceptors token refresh for few async requests. ES6
import axios from "axios";
import { settings } from "../settings";
import { authAPI } from ".";
const request = axios.create({
baseURL: settings.apiV1,
});
request.interceptors.request.use(
(config) => {
@william8th
william8th / .tmux.conf
Last active July 28, 2024 06:21
Tmux open new pane in same directory
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B)
set -g prefix C-space
unbind-key C-b
bind-key C-space send-prefix
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
@comigor
comigor / crosswalk.patch
Last active August 29, 2015 14:24
Crosswalk patch for Meteor devel branch, based on https://github.com/copleykj/meteor/tree/cordova5-update
From aeb068a26dbedafea956c9abf5ebd41dc2ee79f1 Mon Sep 17 00:00:00 2001
From: Igor Borges <igor@borges.me>
Date: Thu, 9 Jul 2015 03:14:02 -0300
Subject: [PATCH] Crosswalk patch
---
packages/autoupdate/package.js | 2 +-
packages/coffeescript/package.js | 2 +-
packages/crosswalk/package.js | 9 +++++++++
packages/ddp/package.js | 2 +-
@robertjpayne
robertjpayne / RCTSwiftBridgeModule.h
Last active January 17, 2024 11:43
React Native - Swift Native Modules
#import <Foundation/Foundation.h>
#import "RCTBridgeModule.h"
#define RCT_EXTERN_MODULE(objc_name, objc_supername) \
RCT_EXTERN_REMAP_MODULE(objc_name, objc_name, objc_supername)
#define RCT_EXTERN_REMAP_MODULE(js_name, objc_name, objc_supername) \
objc_name : objc_supername \
@end \
@interface objc_name (RCTExternModule) <RCTBridgeModule> \
@outadoc
outadoc / Keolis-API.md
Last active April 20, 2024 15:04
Keolis Real-time API

Keolis "open-data" : XML Realtime API

Les données retournées sont au format XML.

Document trouvé et modifié depuis Pastebin.

Récupérer la liste des lignes