Skip to content

Instantly share code, notes, and snippets.

@Swimburger
Swimburger / BlazorWasmHeroku.sh
Last active November 2, 2021 11:55
Create and Deploy Blazor WASM to Heroku using heroku-buildpack-static (ubuntu)
#!/bin/bash
# start onetime setup
# make sure to have 'jq' installed
# sudo snap install jq
mkdir BlazorWasmHeroku
cd BlazorWasmHeroku
dotnet new blazorwasm
@josimard
josimard / RotateAroundActor.cpp
Last active December 24, 2023 17:19
UE4 - Rotate an actor around another in Unreal Engine using FVector::RotateAngleAxis() to create an orbital rotation (Not using transforms or attachments)
#include "RotateAroundActor.h"
#include "GameFramework/Actor.h"
// Sets default values for this component's properties
URotateAroundActor::URotateAroundActor()
{
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
// off to improve performance if you don't need them.
PrimaryComponentTick.bCanEverTick = true;
@RickStrahl
RickStrahl / CompilingCSharpCode.cs
Last active April 3, 2024 14:11
A few different approaches to dynamically execute C# code dynamically at runtime from a string of code.
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Scripting;
using Microsoft.CodeAnalysis.Scripting;
using Mono.CSharp;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.Dynamic;
using System.Linq;
@luncliff
luncliff / cmake-tutorial.md
Last active March 6, 2025 00:43
CMake 할때 쪼오오금 도움이 되는 문서

CMake를 왜 쓰는거죠?
좋은 툴은 Visual Studio 뿐입니다. 그 이외에는 전부 사도(邪道)입니다 사도! - 작성자

주의

  • 이 문서는 CMake를 주관적으로 서술합니다
  • 이 문서를 통해 CMake를 시작하기엔 적합하지 않습니다
    https://cgold.readthedocs.io/en/latest/ 3.1 챕터까지 따라해본 이후 기본사항들을 속성으로 익히는 것을 돕기위한 보조자료로써 작성되었습니다
@n0mimono
n0mimono / YouTubeLiveController.cs
Created February 12, 2018 06:10
Unity script example for YouTube Live Streaming API
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System;
using System.Net;
using System.Text.RegularExpressions;
using UnityEngine;
using UnityEngine.Networking;
using SimpleJSON;
@vermorel
vermorel / Half.cs
Last active November 26, 2023 22:43
C# Half-precision data type
/// ================ Half.cs ====================
/// The code is free to use for any reason without any restrictions.
/// Ladislav Lang (2009), Joannes Vermorel (2017)
using System;
using System.Diagnostics;
using System.Globalization;
namespace SystemHalf
{
@hillin
hillin / integrating-fastbuild-with-ue4.md
Last active March 4, 2025 12:42
Integrating FASTBuild with Unreal Engine 4

FASTBuild is an open-source distributed build system, which could be a free alternative to Incredibuild. Unreal Engine 4 (UE4) does not support FASTBuild natively, however it's not hard to integrate it manually.

Integrate FASTBuild with UE4

Install FASTBuild

We assume you already have the full UE4 source code. First you'll need to grab the latest FASTBuild tools from here. We use v0.93 Windows x64 version in this tutorial. Download it and extract all the files. Here you have several choices:

  • Place the files under any folder which could be found with your system's PATH environment variable. To see where these folders are, run the PATH command in a command prompt window;
  • Place the files under the Engine\Binaries\ThirdParty\FASTBuild folder of your engine. This is the recommended place;
  • Place the files anywhere you like. This is not recommended because you'll have to hard-code the path later.
@a3dho3yn
a3dho3yn / mongodb_c#_cheatsheet.md
Last active December 9, 2024 06:58
MongoDB C# Driver Cheat Sheet

MongoDB C# Driver Cheat Sheet

(C) 2015 by Derek Hunziker, (C) 2017 by AppsOn

As of releasing MongoDB 3.4 and C# Driver v2.4, original cheatsheet by Derek is outdated. In addition, it has some deficiencies like connecting to MongoDB, creating indexes, etc. This updated version works fine with C# Driver v2.4.7 and MongoDB v3.4.

Setup

Define Document Models

Note: Defined models and collections will be used in entire cheatsheet.

@suminb
suminb / kanpsack.py
Last active October 27, 2016 15:41
이상한 호주 여행기 - 비용 정산 편에 소개 된 배낭 문제 코드입니다.
values = [
16199, 10906, 3382, 84725, 71294, 36372, 21256, 18555, 21636, 19425, 18688,
10482, 7613, 74453, 58176, 50942, 26950, 26582, 9589, 9520, 210198, 50818,
36992, 17732, 16953, 9971, 8031, 5247, 372309]
limit = 312967
def m(i, limit, values, taken, cache):
"""Calculates the maximum value that can be attained with total value less
than or equal to `limit`.
@Dinir
Dinir / pico-8 korean.txt
Created October 18, 2016 01:16
PICO-8 Manual (Korean)
============================================================================================
PICO-8 v0.1.8
http://www.pico-8.com
(c) Copyright 2014-2016 Lexaloffle Games LLP
만든 이: Joseph White // [email protected]
옮긴 이: Dinir Nertan // [email protected]
PICO-8은 아래의 기술로 만들어졌습니다:
SDL2 http://www.libsdl.org