Skip to content

Instantly share code, notes, and snippets.

View peppy's full-sized avatar

Dean Herbert peppy

View GitHub Profile
sos EEStack(lldb) 
---------------------------------------------
Thread 1
TEB information is not available so a stack size of 0xFFFF is assumed
Current frame: libpthread.so.0!__pthread_cond_wait + 0x23b
Child-SP RetAddr Caller, Callee
00007FFEA1D98828 00007f45ef0aa192 (MethodDesc 00007f45eeb82790 + 0x292 System.Threading.ManualResetEventSlim.Wait(Int32, System.Threading.CancellationToken)), calling 00007f46689696d0 (stub for System.Threading.Monitor.ObjWait(Boolean, Int32, System.Object))
00007FFEA1D98920 00007f45ef0aa192 (MethodDesc 00007f45eeb82790 + 0x292 System.Threading.ManualResetEventSlim.Wait(Int32, System.Threading.CancellationToken)), calling 00007f46689696d0 (stub for System.Threading.Monitor.ObjWait(Boolean, Int32, System.Object))
00007FFEA1D989B0 00007f45ef0609e9 (MethodDesc 00007f45eeb7b470 + 0xb9 System.Threading.Tasks.Task.SpinThenBlockingWait(Int32, System.Threading.CancellationToken)), calling (MethodDesc 00007f45eeb82790 + 0 System.Threading.ManualR
class HitFactoryFruits : HitFactory
{
float lastStartX;
int lastStartTime;
public HitFactoryFruits(HitObjectManager hitObjectMananager) : base(hitObjectMananager)
{
random.Reinitialise(1337);
}
{
"data":
[
{
"beatmap_id": 1623892,
"mode": 0,
"mods": 0,
"diff_unified": 5.65222,
"last_update": "2018-04-30 00:16:15"
},
@peppy
peppy / BeatmapDifficultyCalculatorFruits.cs
Created February 23, 2018 04:42
osu!catch difficulty calculation (taken from osu-stable)
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using osu.GameModes.Edit.AiMod;
using osu.GameplayElements.HitObjects;
using osu.GameplayElements.HitObjects.Fruits;
using osu_common;
namespace osu.GameplayElements.Beatmaps
@peppy
peppy / LinkFormatter.cs
Created November 30, 2017 16:31
LinkFormatter class from osu-stable. Released under public domain; use as necessary.
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
namespace osu_common.Helpers
{
public static class LinkFormatter
{
//[[Performance Points]] -> wiki:Performance Points (https://osu.ppy.sh/wiki/Performance_Points)
#!/bin/bash
PROJECTS="osu osu-framework"
OUTPUT_FILE="output.md"
PREAMBLE="# Disclaimer
Thank you for your interest in osu!lazer.
These pre-releases are provided for people interested in following development and getting a sneak-peek at what we're working on. osu!lazer is *not* yet intended to be a playable alternative to [osu-stable](https://osu.ppy.sh). If it doesn't work for you and you are unable to submit a fix, please check back at a later date!
@peppy
peppy / TestCaseFlagContainer.cs
Created February 27, 2017 07:23
TestCaseFlagContainer.cs
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Linq;
using osu.Framework.Graphics;
using osu.Framework.Screens.Testing;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.MathUtils;
using osu.Framework.Threading;
/*
Copyright (C) 2008 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
There are special exceptions to the terms and conditions of the GPL
as it is applied to this software. View the full text of the exception
in file LICENSE.exceptions in the top-level directory of this software
54d0dbee69702d1048fdf600
550a1fce69702d7f58030100
5539bdd069702d3b236c0000
554fe2fd69702d137b990000
557aedf169702d7d82000004
557e5dbb69702d3ec600009a
55804aef69702d1ada000010
55804c4c69702d1ada000055
5581de2669702d12550000bb
55917ec269702d78900000c7
mouse events are fired in sequence: OnMouseDown -> (OnMouseUp, Click)
- Mouse is clicked
- MouseUp runs a scaleTo transformation helper with 0 delay
- scaleTo helper sets the scale isntantly
- changing scale causes invalidation
- invalidation causes Click to fail because the drawable_Contains check returns false (autosize has no defined scale at this point)