Skip to content

Instantly share code, notes, and snippets.

using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
public class ReadMyAbstractPathFileMon : MonoBehaviour
{
public string m_myText;
public string m_filePath;
public AbsoluteDirectPathFileMono m_fetchPath;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
public class SaveMyGenericClassMono<T> : MonoBehaviour
{
public T m_valueToSave;
@DavidFoot
DavidFoot / pre-request-script.js
Created January 23, 2021 12:42 — forked from bneff84/pre-request-script.js
Postman WSSE Header Generation Pre-request Script (Tailored for Emarsys)
/*
* This script should be used as the pre-request script for any requests made to Emarsys. In theory, it should work for any API that implements WSSE authentication as well.
* To Use:
* 1: Set an environment variable for wsse-user and wsse-secret containing your WSSE user and secret respectively
* 2: On your Headers tab, add an X-WSSE header with a value of {{wsse-header}}
*
* That's it! When you make a request, the pre-request script will generate your Nonce, Timestamp, and Digest using your secret. The 1-time-use header will be stored in the environment as wsse-header and used for your request.
*/
//
// wsse.js - Generate WSSE authentication header in JavaScript
@DavidFoot
DavidFoot / .screenrc
Created July 12, 2020 10:03 — forked from joaopizani/.screenrc
A killer GNU Screen Config
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 5000
# no welcome message
startup_message off
<?php
$time_start = microtime(true);
include_once('config/config.inc.php');
// FORMAT FIchier : id_template_odoo;MainEAN13;PxAchat
$file = "2019_10_20_PA_EAN_Full.csv";
try{
$dbh = new PDO('mysql:host=127.0.0.1;dbname='._DB_NAME_, _DB_USER_, _DB_PASSWD_);
} catch (PDOException $e) {
print "Erreur !: " . $e->getMessage() . "<br/>";
die();