Skip to content

Instantly share code, notes, and snippets.

@icewind1991
icewind1991 / VRCAvatarDescriptorEditor.cs
Last active June 22, 2018 16:04
Avatar Descriptor editor with proper viseme auto detect
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
[CustomEditor(typeof(VRCSDK2.VRC_AvatarDescriptor))]
public class AvatarDescriptorEditor : Editor
{
VRCSDK2.VRC_AvatarDescriptor avatarDescriptor;
VRC.Core.PipelineManager pipelineManager;
@icewind1991
icewind1991 / search.xml
Created February 2, 2017 17:26
Example rfc5323 search query
<?xml version="1.0"?>
<d:searchrequest xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
<d:basicsearch>
<d:select>
<d:prop>
<oc:fileid/>
<d:getcontenttype/>
<d:getetag/>
<oc:size/>
</d:prop>

Storage API

The storage API consists of 2 seperate (sets of) interfaces:

  • Storage Implementation Interface: it is the main interface to implement to create a custom storage backend.
  • Storage Adapter Interface: it is the interface that upper layers like end user application can implement to access the storage backend.

3 supported storage types

  1. Storage backend fully handles all meta data (CERN EOS)
@icewind1991
icewind1991 / oc.md
Last active December 17, 2015 22:49

New Architecture

The Server

The server object functions as the global scope, it holds the various core components, manages plugins and routed and handles incomming requsts

\OC\Server###

Implementes \OC\Hooks\Emitter

<?php
if(isset($_GET['run'])){
$eventSource = new OC_EventSource();
for($i=0;$i<100;$i++){
$eventSource->send('tick',$i);
sleep(1);
}
$eventSource->close();
}