Skip to content

Instantly share code, notes, and snippets.

View RDeluxe's full-sized avatar
🎯
Focusing

Pierrick Bignet RDeluxe

🎯
Focusing
View GitHub Profile
@RDeluxe
RDeluxe / sentry.ts
Created January 19, 2021 10:42
Sentry Interceptor for Nestjs
///// SERVICE
import { Injectable } from '@nestjs/common';
import * as Sentry from '@sentry/node';
import config from '../../config';
import { SentryEntry } from './sentry.interceptor';
@Injectable()
export class SentryService {
private isInit = false;
@RDeluxe
RDeluxe / AssetBundleObjectReference.cs
Last active August 13, 2018 13:13
Example of AssetBundle object reference
using System;
using System.IO;
using System.Threading.Tasks;
using Sirenix.OdinInspector;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;
public class AssetBundleObjectReference<T> where T : Object {
@RDeluxe
RDeluxe / BundleManager.cs
Last active August 15, 2018 09:44
BundleManager
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using AssetBundles;
using UnityEngine;
public class BundlesManager {
private static BundlesManager _instance;
private Dictionary<string, AssetBundle> _assetBundles;
private Dictionary<string, Task<AssetBundle>> _loadingAssetBundles;
@RDeluxe
RDeluxe / pollCreate.js
Created June 21, 2017 17:04
POST /polls
{
question: 'Do you like polls ?’,
answers: [‘Oui’, ‘Non’]
}
@RDeluxe
RDeluxe / response.js
Last active June 21, 2017 17:00
Data structure for GET /polls/:id
{
id: 1,
question: 'Do you like polls ?’,
answers: [
{
id: 124,
response: 'Oui’,
votes: 14
},
{