Skip to content

Instantly share code, notes, and snippets.

@LordOkami
LordOkami / LevelComponent.cs
Created March 9, 2020 18:28
Unity ECS - CodeMonkey 01
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Unity.Entities;
public struct LevelComponent : IComponentData
{
public float level;
}
@LordOkami
LordOkami / install-elixir.sh
Last active June 24, 2020 09:07
Install Elixir
#!/bin/bash
sudo apt install build-essential automake autoconf git squashfs-tools ssh-askpass pkg-config curl
sudo apt-get install libssl-dev libncurses5-dev
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.7.1
# The following steps are for bash. If you’re using something else, do the
# equivalent for your shell.
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc
@LordOkami
LordOkami / instructions.md
Created March 18, 2021 16:17 — forked from marteinn/instructions.md
This is a Phoenix + React-Create-App integration with very small footprint
  1. Begin with scaffolding a create-react-app, then update your package.json build script (replace DIR_TO_PHX_APP with the path to your phoenix app)
"build": "react-scripts build && rm -rf DIR_TO_PHX_APP/priv/static/build && mv build DIR_TO_PHX_APP/priv/static/build",

This will move your prod build files to DIR_TO_PHX_APP/priv/static/build on build

  1. Run npm run build
@LordOkami
LordOkami / swap_app.ahk
Created December 20, 2022 13:40
Change same app window in windows
!º::
WinGetClass, OldClass, A
WinGet, ActiveProcessName, ProcessName, A
WinGet, WinClassCount, Count, ahk_exe %ActiveProcessName%
IF WinClassCount = 1
Return
loop, 2 {
WinSet, Bottom,, A
WinActivate, ahk_exe %ActiveProcessName%
WinGetClass, NewClass, A