Skip to content

Instantly share code, notes, and snippets.

View foglio1024's full-sized avatar
💭
dotnet run -c Release

Foglio foglio1024

💭
dotnet run -c Release
View GitHub Profile
@foglio1024
foglio1024 / ToolboxInterface.cs
Last active May 14, 2019 15:27
ToolboxInterface
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace ToolboxInterface
{
/*
* MessageType [1B]
* Length [2B]
using Alkahest.Core.Data;
using FoglioUtils;
using Microsoft.Win32;
using Newtonsoft.Json;
using System;
using System.IO;
using System.Linq;
using System.Runtime;
using System.Threading;
using System.Threading.Tasks;
@foglio1024
foglio1024 / index.js
Last active June 23, 2022 19:35
TeraBackup
const path = require('path');
const fs = require('fs');
module.exports = function TeraBackup(mod) {
let enabled = true;
let file = path.join(__dirname, 'tera-log-' + Date.now() + '.log');
mod.hook('*', 'raw', { order: -Infinity, filters: { fake: null } }, (code, data, fromServer) => {
if (!enabled) return
const now = new Date();
@foglio1024
foglio1024 / AnimatedSize.xaml
Created February 22, 2024 11:17
Animate a Border size based on on the target control size
<Panel>
<Border x:Name="AnimatedBorder">
<Control x:Name="AnimatedBorderGovernor"
Fill="Transparent"
Width="{Binding #Target.Bounds.Width}"
Height="{Binding #Target.Bounds.Height}"
>
<Control.Transitions>