Skip to content

Instantly share code, notes, and snippets.

View EusthEnoptEron's full-sized avatar

Eusthron EusthEnoptEron

View GitHub Profile
@EusthEnoptEron
EusthEnoptEron / CSCAudioClip.cs
Last active January 14, 2021 01:57
Allows streaming of all popular file formats to Unity using CSCore.
using UnityEngine;
using CSCore.Codecs;
using CSCore;
using CSCore.Streams.SampleConverter;
using System;
/// <summary>
/// AudioClip wrapper that uses the CSCore library to stream audio files into Unity's AudioClips.
/// </summary>
public class CSCAudioClip : IDisposable
using IllusionPlugin;
using System;
using System.Collections.Generic;
using System.Text;
namespace IPluginBoilerplate
{
public class MyPlugin : IPlugin
{
@EusthEnoptEron
EusthEnoptEron / gist:8708645
Last active August 29, 2015 13:55
Alphabetical grouping for BT
(function() {
var arrowCollapsed = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB2ZXJzaW9uPSIxLjEiCiAgIHdpZHRoPSIxNiIKICAgaGVpZ2h0PSIxNiIKICAgaWQ9InN2ZzIiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0IiAvPgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTciPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgICAgPGRjOnRpdGxlPjwvZGM6dGl0bGU+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ld
.editsection {
opacity: 0.1;
}
.editsection:hover {
opacity: 1;
}
#mw-panel {
opacity: 0;
@EusthEnoptEron
EusthEnoptEron / chart.xml
Last active December 22, 2015 11:39
Minimal code to render an AnyChart chart with PhantomJS.
<?xml version="1.0" encoding="UTF-8"?>
<anychart>
<settings>
<animation enabled="True" />
</settings>
<charts>
<chart plot_type="CategorizedVertical">
<data_plot_settings default_series_type="Bar" enable_3d_mode="true" z_aspect="2.5">
<bar_series group_padding="0.2">
<tooltip_settings enabled="true" />
Variable with modifier Description
%~I Expands %I which removes any surrounding
quotation marks ("").
%~fI Expands %I to a fully qualified path name.
%~dI Expands %I to a drive letter only.
%~pI Expands %I to a path only.
%~nI Expands %I to a file name only.
%~xI Expands %I to a file extension only.
%~sI Expands path to contain short names only.