Skip to content

Instantly share code, notes, and snippets.

View Naphier's full-sized avatar
🐲

Sean Mann Naphier

🐲
View GitHub Profile
@Naphier
Naphier / Mapbox.Unity.HTTPRequest.cs
Created May 4, 2017 13:28
Example static start and finish request callbacks
//-----------------------------------------------------------------------
// <copyright file="HTTPRequest.cs" company="Mapbox">
// Copyright (c) 2016 Mapbox. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Mapbox.Unity
{
using System;
using System.Collections;
@Naphier
Naphier / InstallToAllAndroidDevices.cs
Last active May 20, 2017 23:45
Unity3D Editor Utility to install a built apk to multiple android devices.
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using System.IO;
using System.Diagnostics;
using System.Collections.Generic;
using System.Threading;
using Debug = UnityEngine.Debug;
using UnityEngine;
using UnityEngine.Events;
using System.Threading;
using System.Collections;
public class SerialPortController : MonoBehaviour
{
protected Thread thread;
protected SerialThreadLines serialThread;
@Naphier
Naphier / MapboxController.cs
Created July 31, 2018 13:07
MapboxController: AbstractMap Mapbox v1.3.0
/*
*
* VR Rehab, Inc Confidential
* __________________
*
* Copyright 2016 - VR Rehab, Inc
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of VR Rehab, Inc and its subsidiaries,
@Naphier
Naphier / DebugNullRefIssue.cs
Created December 12, 2018 22:22
Test Case for Null Ref error in CoordinateSharp when using custom EagerLoad settings
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CoordinateSharp;
using System.Diagnostics;
namespace CoordinateSharp_TestProj
{
@Naphier
Naphier / gmailer.py
Created March 7, 2023 23:21
Wrote this with the ChatGPT prompt "Write Python code to send email using GMail API and a Service Account". Looks accurate though I've not tested.
import os
import base64
import google.auth
from google.oauth2 import service_account
from googleapiclient.discovery import build
from googleapiclient.errors import HttpError
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.image import MIMEImage
from email.mime.audio import MIMEAudio