Application.put_env(:sample, Sample.Repo, database: "oban_dev")
Application.put_env(:phoenix, :json_library, Jason)
Application.put_env(:sample, Sample.Endpoint,
http: [ip: {127, 0, 0, 1}, port: 5001],
server: true,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if os.getenv "LOCAL_LUA_DEBUGGER_VSCODE" == "1" then | |
local lldebugger = require "lldebugger" | |
lldebugger.start() | |
local run = love.run | |
function love.run(...) | |
local f = lldebugger.call(run, false, ...) | |
return function(...) return lldebugger.call(f, false, ...) end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# for use with cron, eg: | |
# 0 3 * * * postgres /var/db/db_backup.sh foo_db | |
if [[ -z "$1" ]]; then | |
echo "Usage: $0 <db_name> [pg_dump args]" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Core/YourGameInstance.h" | |
void UYourGameInstance::Init() | |
{ | |
Super::Init(); | |
// Do stuff.. | |
#if WITH_EDITOR | |
FString FilePath = FPaths::ConvertRelativePathToFull(FPaths::ProjectDir()) + TEXT("/GameLaunches.txt"); | |
FString LoadedFile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This needs to live in a folder named "Editor", or it won't work. Doesn't have to be named | |
"BobTheBuilder", though. Name it whatever you want! */ | |
using System; | |
using UnityEditor; | |
using UnityEngine; | |
public class BobTheBuilder | |
{ | |
/* List of scenes to include in the build */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This document represents the beginning of an upgrade or migration document for GDScript 2.0 and Godot 4.0. I'm focusing on 2D | |
at the moment as I'm upgrading a 2D game, but will hopefully have more to add for 3D afterward. | |
If you want more content like this, please help fund my cat's medical bills at https://ko-fi.com/kyleszklenski - thank you very much! On to the migration guide. | |
Godot 4.0 Upgrade/Migration Guide | |
For a beginner-friendly version of the following (more advanced users likely will get better use of the below, if you're just starting out...), see this new gist: https://gist.github.com/WolfgangSenff/0a9c1d800db42a9a9441b2d0288ed0fd | |
GDScript: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": 1, | |
"Id": "B180A0C348D92F26205B47B9DB02A4A4", | |
"DisplayName": "Rider-Alfred-BlueTint", | |
"Colors": | |
{ | |
"EStyleColor::Black": "(R=0.000000,G=0.000000,B=0.000000,A=1.000000)", | |
"EStyleColor::Background": "(R=0.015209,G=0.018500,B=0.024158,A=1.000000)", | |
"EStyleColor::Title": "(R=0.012486,G=0.012568,B=0.013873,A=1.000000)", | |
"EStyleColor::WindowBorder": "(R=0.093059,G=0.097587,B=0.107023,A=1.000000)", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns" | |
xmlns:unity="urn:schemas-jetbrains-com:member-reordering-patterns-unity"> | |
<!-- StyleCop Unity Classes Layout --> | |
<TypePattern DisplayName="StyleCop Unity Classes Layout" RemoveRegions="All" Priority="150"> | |
<TypePattern.Match> | |
<unity:SerializableClass /> | |
</TypePattern.Match> | |
<Region Name="Constants and Fields"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Unity ## | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
*.mat merge=unityyamlmerge eol=lf | |
*.anim merge=unityyamlmerge eol=lf | |
*.unity merge=unityyamlmerge eol=lf | |
*.prefab merge=unityyamlmerge eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Unity ## | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
*.mat merge=unityyamlmerge eol=lf | |
*.anim merge=unityyamlmerge eol=lf | |
*.unity merge=unityyamlmerge eol=lf | |
*.prefab merge=unityyamlmerge eol=lf |
NewerOlder