Skip to content

Instantly share code, notes, and snippets.

View NewEXE's full-sized avatar
🌀
WIP

Vlad Voloshyn NewEXE

🌀
WIP
  • Sweet Stack Digital
  • Ukraine, Kharkiv
View GitHub Profile
@NewEXE
NewEXE / ConvertToObj.cs
Last active January 3, 2024 09:35
Export Unity Game Objects to Wavefront OBJ
// On the basis: https://forum.unity.com/threads/export-obj-while-runtime.252262/
// How to use:
// Put file to Assets/Editor folder
// then select GameObject -> Export selected objects
// in Unity's main panel.
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
@NewEXE
NewEXE / parser.php
Last active November 30, 2021 08:25
LoveRead.ec parser (PHP)
<?php
/**
* Book ID on loveread.ec
* For example, for
* http://loveread.ec/read_book.php?id=2555&p=1
* ID is 2555.
*
* @param int $id
*/
public function getFromLoveread(int $id) {
@NewEXE
NewEXE / test1.php
Last active September 15, 2018 20:19
PDO Memory Leak
<?php
// Related SO disscussion:
// https://stackoverflow.com/questions/52348483/pdo-mysqli-memory-leak-on-multiple-select-queries
$dbParams = [
'host' => 'localhost',
'dbname' => 'playground',
'username' => 'homestead',
'password' => 'secret',
];