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 <stdio.h> | |
#include <stdlib.h> | |
#include "findMaxP.h" | |
int getSizeForMax() { | |
return 10000; | |
} | |
int findMaxP(int length, int arr[]) { |
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
-- global timer that runs once and focuses the window currently under the mouse pointer | |
sloppytimer = timer({ timeout = 0.01 }) | |
sloppytimer:connect_signal("timeout", function() | |
c = awful.mouse.client_under_pointer(screen) | |
if c then | |
client.focus = c | |
c:raise() | |
end | |
sloppytimer:stop() | |
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
diff --git a/runtime-win32.zip b/runtime-win32.zip | |
deleted file mode 100644 | |
index 2fd1fff6..00000000 | |
Binary files a/runtime-win32.zip and /dev/null differ | |
diff --git a/src/Classes/PassiveSpec.lua b/src/Classes/PassiveSpec.lua | |
index e34f723d..e4c8cce2 100644 | |
--- a/src/Classes/PassiveSpec.lua | |
+++ b/src/Classes/PassiveSpec.lua | |
@@ -13,6 +13,18 @@ local m_max = math.max | |
local m_floor = math.floor |
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
// Automate the settings window for debugging | |
// e.a. automatically expand the Plugins section and select the plugin you are currently working on | |
public void Initialize() | |
{ | |
LokiPoe.OnGuiTick += OnGuiTickEvent; | |
} | |
private static void OnGuiTickEvent(object sender, GuiTickEventArgs e) | |
{ |
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
public static FastMoveResult FastMoveFromInvNoAffinity(int itemLocalId) | |
{ | |
if (!LokiPoe.ProcessHookManager.IsEnabled) | |
{ | |
return FastMoveResult.ProcessHookManagerNotEnabled; | |
} | |
LokiPoe.ProcessHookManager.ClearAllKeyStates(); | |
var inventorySlotUiElement = LokiPoe.InGameState.InventoryUi.InventoryControl_Main.InventorySlotUiElement; |
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
public static partial class KeksTools | |
{ | |
[DllImport("kernel32.dll", SetLastError = true)] | |
static extern bool DebugActiveProcess(uint dwProcessId); | |
[DllImport("kernel32.dll", SetLastError = true)] | |
static extern bool DebugActiveProcessStop(uint dwProcessId); | |
private static bool WasHooked = false; |
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
/// <summary> | |
/// | |
/// </summary> | |
/// <param name="filename"></param> | |
/// <param name="data">LokiPoe.TerrainData.Layer0</param> | |
/// <param name="terrainSize">LokiPoe.TerrainData.Size</param> | |
/// <param name="bpr">LokiPoe.TerrainData.BytesPerRow</param> | |
public static void GeneratePng(string filename, ref byte[] data, Vector2i terrainSize, int bpr) | |
{ | |
Color TerrainColor(int v) |
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
using System; | |
using System.Linq; | |
using DreamPoeBot.Loki.Bot; | |
using DreamPoeBot.Loki.Common; | |
using HarmonyLib; | |
namespace kekslib | |
{ | |
public static partial class KeksTools | |
{ |
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
<wpg:WpfPropertyGrid HelpVisible="False" Margin="5, 0, 0, 0" x:Name="PropertyGrid1" Width="350" Height="400"/> |
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
public static Element ElementFromPath(string path) | |
{ | |
if (!path.StartsWith("root")) | |
{ | |
Log.Error("[ElementFromPath] Path must start with root: root.Children[1].Children[102]"); | |
return null; | |
} | |
path = path.Substring("root.".Length); | |
// remove tailing . | |
if (path.EndsWith(".")) |
OlderNewer