Skip to content

Instantly share code, notes, and snippets.

@planaria
planaria / hello_world.cpp
Created February 28, 2016 15:32
Hello World in kumori
#include <iostream>
#include <iomanip>
#include <kumori/kumori.hpp>
class application_server : public kumori::http_server<application_server>
{
public:
explicit application_server(boost::asio::io_service& service)
: http_server(service)
@planaria
planaria / cvcpp.cpp
Last active September 3, 2016 03:32
#include <iostream>
#include <fstream>
#include <array>
#include <map>
#include <algorithm>
#include <boost/iterator/transform_iterator.hpp>
#include <boost/numeric/odeint.hpp>
namespace cvcpp
#pragma once
#include <type_traits>
#include <vector>
#include <unordered_set>
#include <set>
#include <functional>
#include <boost/optional.hpp>
namespace astarpp
{
CXX ?= clang++
CFLAGS = -std=c++14 -MMD -MP -Wall -Wextra
CFLAGS_DEBUG = -g -O0
CFLAGS_RELEASE = -O3
LDFLAGS = -lpthread -lboost_system
buildtype := release
ifeq ($(buildtype), debug)
UseTab: Never
IndentWidth: 4
TabWidth: 4
AccessModifierOffset: -4
BreakBeforeBraces: Allman
NamespaceIndentation: All
AlwaysBreakTemplateDeclarations: true
MaxEmptyLinesToKeep: 1
KeepEmptyLinesAtTheStartOfBlocks: true
BreakConstructorInitializersBeforeComma: true
CXX ?= clang++
CFLAGS = -std=c++14 -MMD -MP -Wall -Wextra
CFLAGS_DEBUG = -g -O0
CFLAGS_RELEASE = -O3
LDFLAGS = -lpthread -lboost_system
buildtype := release
ifeq ($(buildtype), debug)
void vert(inout appdata_full v) {
v.vertex.xyz += normalize(UnityObjectToWorldNormal(v.normal)) * sin(_Time * 10.0 + (v.texcoord.x + v.texcoord.y) * 10.0) * 0.1;
}
#!/bin/bash
wget -O - -q https://github.com/$1/archive/$2.tar.gz | sha512sum -b | sed "s/\s.*//"
Shader "Effect/Glass"
{
Properties
{
_Color("Color", Color) = (1,1,1,1)
_Shift("Shift", float) = 0.3
_Chroma("Chroma", float) = 0.01
}
SubShader
{
using System;
using UdonSharp;
using UnityEngine;
using UnityEngine.UI;
using VRC.SDKBase;
using VRC.Udon;
public class TakeMyHand : UdonSharpBehaviour
{
VRCPlayerApi[] players = new VRCPlayerApi[0];