Skip to content

Instantly share code, notes, and snippets.

View kg's full-sized avatar

Katelyn Gadd kg

View GitHub Profile
@kg
kg / bear.cs
Created June 10, 2019 02:48
Automatic code generation
// Machine-generated from 'C:\Users\Katelyn\Desktop\particle demo\bear.lumined'
using System;
using Squared.Illuminant.Particles;
using Microsoft.Xna.Framework;
using C_RS = Squared.Render.Convenience.RenderStates;
using G_BS = Microsoft.Xna.Framework.Graphics.BlendState;
namespace Squared.Illuminant.Compiled {
kate@reeir-debian2:~/Projects/mono/mcs/build$ tail -f compiler-server.log
at Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.LanguageParser..ctor (Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.Lexer lexer, Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode oldTree, System.Collections.Generic.IEnumerable`1[T] changes, Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.LexerMode lexerMode, System.Threading.CancellationToken cancellationToken) [0x0000b] in <d6728d536b884cd2af1698e1ee49045c>:0
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxTree.ParseText (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions options, System.String path, System.Threading.CancellationToken cancellationToken) [0x00024] in <d6728d536b884cd2af1698e1ee49045c>:0
at Microsoft.CodeAnalysis.CSharp.SyntaxFactory.ParseSyntaxTree (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.ParseOptions options, System.String path, System.Threading.CancellationToken cancellationToke
#!/usr/bin/env bash
# usage: start-compiler-server.sh <working directory> <log path> <pipename>
# ensure that VBCS_RUNTIME and VBCS_LOCATION environment variables are set.
set -u
set -e
if [ -s "$VBCS_LOCATION" ]; then
cd $1
echo "RoslynCommandLineLogFile=$2 $VBCS_RUNTIME --gc-params=nursery-size=64m $VBCS_LOCATION -pipename:$3 &"
Attempting to start compiler server...
.//build/start-compiler-server.sh '/home/kate/Projects/mono/mcs' '/home/kate/Projects/mono/mcs/build/compiler-server.log' 'monomake'
RoslynCommandLineLogFile=/home/kate/Projects/mono/mcs/build/compiler-server.log MONO_PATH=".//class/lib/monolite-linux/07423dee-1eb8-11e9-a2ee-43262508f9cf:.//class/lib/monolite-linux/07423dee-1eb8-11e9-a2ee-43262508f9cf/Facades:$MONO_PATH" /home/kate/Projects/mono/runtime/mono-wrapper --gc-params=nursery-size=64m /home/kate/Projects/roslyn/artifacts/bin/VBCSCompiler/Debug/net472/VBCSCompiler.exe -pipename:monomake &
Compiler server started with PID 94140.
make[7]: Leaving directory '/home/kate/Projects/mono/mcs'
.//build/start-compiler-server.sh: line 12: MONO_PATH=".//class/lib/monolite-linux/07423dee-1eb8-11e9-a2ee-43262508f9cf:.//class/lib/monolite-linux/07423dee-1eb8-11e9-a2ee-43262508f9cf/Facades:$MONO_PATH": No such file or directory
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Threading.Tasks;
// https://github.com/mono/mono/blob/master/mono/eglib/gqsort.c
/*
* QuickSort
*
* Author: Jeffrey Stedfast <[email protected]>
*
* (C) 2011 Novell, Inc.
*
<?xml version="1.0" encoding="utf-8"?>
<!-- WARNING: this file is autogenerated, don't modify it. Edit the .sources file of the corresponding assembly instead if you want to add/remove C# source files. -->
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">net_4_x</Platform>
<ProjectGuid>{E3149CAB-0AC5-415C-9309-E2636CAF1EBD}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699,436</NoWarn>
<LangVersion>latest</LangVersion>
// Parsed 23 sources file(s) and 13 exclusions file(s) from path '/home/kate/Projects/mono/mcs/class/corlib/xbuild_14_corlib.dll'.
File does not exist: /home/kate/Projects/mono/mcs/class/corlib/System.Security.Permissions/FileDialogPermission.cs
File does not exist: /home/kate/Projects/mono/mcs/class/corlib/System.Security.Permissions/IsolatedStorageFilePermission.cs
File does not exist: /home/kate/Projects/mono/mcs/class/corlib/System.Security.Permissions/PrincipalPermission.cs
File does not exist: /home/kate/Projects/mono/mcs/class/corlib/System.Security.Permissions/PublisherIdentityPermissionAttribute.cs
private static TimeZoneInfo ParseTZBuffer (string id, byte [] buffer, int length)
{
//Reading the header. 4 bytes for magic, 16 are reserved
int ttisgmtcnt = ReadBigEndianInt32 (buffer, 20);
int ttisstdcnt = ReadBigEndianInt32 (buffer, 24);
int leapcnt = ReadBigEndianInt32 (buffer, 28);
int timecnt = ReadBigEndianInt32 (buffer, 32);
int typecnt = ReadBigEndianInt32 (buffer, 36);
int charcnt = ReadBigEndianInt32 (buffer, 40);
@if [%4]==[] goto error
@goto ok
:error
@echo USAGE: videocrop START_TIME DURATION INPUT OUTPUT
@goto end
:ok
@set START_TIME=%1
@set DURATION=%2