Skip to content

Instantly share code, notes, and snippets.

View hach-que's full-sized avatar

June Rhodes hach-que

View GitHub Profile
#include <stdio.h>
#include "libzt.h"
#include <inttypes.h>
#if defined(_WIN32)
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <Ws2def.h>
#include <stdint.h>
#include <windows.h>
#include <stdio.h>
#include "libzt.h"
#include <inttypes.h>
#if defined(_WIN32)
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <Ws2def.h>
#include <stdint.h>
#include <windows.h>
@hach-que
hach-que / BuildLighting.ps1
Created January 14, 2018 08:17
Automating lighting builds in Unreal Engine 4.18
$ContentPath = "$PSScriptRoot\Content\Levels".Replace("\", "/")
$process = Start-Process `
-FilePath "C:\Program Files\Epic Games\UE_4.18\Engine\Binaries\Win64\UE4Editor-Cmd.exe" `
-ArgumentList @(
"$PSScriptRoot\MinuteOfMayhem.uproject",
"-run=resavepackages",
"-buildtexturestreaming",
"-buildlighting",
"-MapsOnly",
"-ProjectOnly",
saveId players
Tutorial 1: Dimension Jump 720
Tutorial 2: Move 705
Tutorial 3: Platforms 680
Tutorial 4: Dimensions 656
Tutorial 5: Control 635
Tutorial 6: Do Not Touch 602
Tutorial 7: Flip Flop 581
Tutorial 8: They Change 570
Tutorial 9: Tempramental 562
saveId attempts deaths deathPercentage
user:938780030 57 56 98.25
user:948702622 48 46 95.83
user:929353991 17 16 94.12
user:945479584 23 21 91.3
user:915303010 11 10 90.91
user:943973269 12 10 83.33
user:950292651 11 9 81.82
user:935493998 4 3 75.0
user:943965936 3 2 66.67
saveId attempts deaths deathPercentage
perfect_03 1200 1190 99.17
perfect_07 647 639 98.76
perfect_04 521 512 98.27
user:938780030 57 56 98.25
finesse_03 485 476 98.14
perfect_05 331 324 97.89
lasers_03 432 422 97.69
perfect_02 323 315 97.52
perfect_06 277 270 97.47
saveId attempts deaths deathPercentage
Dimension Jump 8: Break 3609 3244 89.89
Dimension Jump 10: Hop Hop Hop 2680 2368 88.36
Gravity 6: Skyfire 2325 2138 91.96
perfect_03 1200 1190 99.17
Gravity 9: Gravity Jam 1269 1145 90.23
Tutorial 9: Tempramental 1660 1087 65.48
Gravity 8: Grid 1168 1013 86.73
Gravity 7: Hopscotch 1134 956 84.3
Tutorial 6: Do Not Touch 1361 738 54.22
@using Webpack
@section scripts {
@await Html.WebpackScriptsAsync("my-behaviour")
}
@section styles {
@await Html.WebpackStylesAsync("my-behaviour")
}
<p>This is my page!</p>
/// <reference path="../../../node_modules/@types/jquery/index.d.ts" />
interface PageData {
message: string;
}
$(function() {
let data = JSON.parse($("#page-data").text()) as PageData;
alert(data.message);
});
plugins: [
// >> Here we're matching bundles that start with "page-" <<
...bundles.filter(x => x.startsWith("page-")).map((value) => {
return new HtmlWebpackPlugin({
filename: path.join(__dirname, '/Views/Shared/Assets/_Gen_' + value + '_Scripts.cshtml'),
template: path.join(__dirname, '/Views/Shared/Assets/_ScriptsTemplate.cshtml'),
// >> Configures the chunks for global "page-" bundles <<
chunks: ['polyfills', 'jquery', 'bootstrap', value, 'font-awesome'],