Skip to content

Instantly share code, notes, and snippets.

Avatar

Dean Herbert peppy

View GitHub Profile
View community-meeting-2021-09-19.md
View WindowsKey.cs
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace osu.Helpers
{
class WindowsKey
{
private delegate int LowLevelKeyboardProcDelegate(int nCode, int wParam, ref KBDLLHOOKSTRUCT lParam);
View RealmPerformanceTest.cs
using System;
using System.Collections.Generic;
using System.Linq;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using Realms;
namespace RealmPerformanceTest
{
internal static class Program
View welcome.tpl
{include file="header.tpl" title="Welcome"}
<h1>Welcome to osu!, {$user.username}!</h1>
<div class='paddingboth'>
<div style='float:right'>
<img src='{$STATIC_SERVER}/images/welcome.png' style='padding-right: 5px'/>
</div>
<div>Here are a few resources to help you start your journey:</div>
<ul>
<li><a href="/forum/viewtopic.php?f=14&t=5456">Beginner Training</a> - hand-picked beatmaps to get you started.</li>
View release_message_github.md

Thanks for following along! This is a tagged release ($BUILD_ID). For more information check out the osu! changelog page and dev blog.

View unstable_rate.cs
List<double> result = GetErrorStatisticsArray(score.HitErrors);
hint = String.Format("Accuracy:\nError: {0:0.00}ms - {1:0.00}ms avg\nUnstable Rate: {2:0.00}\n", result[0], result[1], result[4] * 10, result[6], result[5]);
// input is a list of (user_hit_time - correct_time)
internal List<double> GetErrorStatisticsArray(List<int> list)
{
if (list == null || list.Count == 0)
return null;
List<double> result = new List<double>(4);
View sneeze.txt
03:38 < ZenZenFTW> did someone just sneeze?
04:10 < Ascendrio> I just hear a sneeze
04:15 < Bruschetta> I entered a map and heard a sneeze from the game
04:23 < Bruschetta> my osu just sneezed again rEE
04:23 < FurryTrash> my osu! doesn't sneeze?
06:12 < Narukiko> did i just hear a sneeze?
06:12 < Narukiko> sneeze in-game?
06:47 < Cielo_Day> did i just a hear someone sneeze or..?
07:37 < -4ourth-> someone sneezed in the game
07:58 < XeRoHD> does anyone get this sneeze sound effect when someone starts a beatmap?
@peppy
peppy / Program.cs
Created Mar 29, 2019
FontAwesome json -> cs generation
View Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Humanizer;
namespace metadata
{
View osu_osu_countries.sql
INSERT INTO osu.osu_countries (acronym, name, rankedscore, playcount, usercount, pp, display, shipping_rate) VALUES ('A1', 'Anonymous Proxy', 26541697520, 241879, 594, 17679, 0, 0);
INSERT INTO osu.osu_countries (acronym, name, rankedscore, playcount, usercount, pp, display, shipping_rate) VALUES ('A2', 'Satellite Provider', 65226890, 2222, 14, 0, 0, 0);
INSERT INTO osu.osu_countries (acronym, name, rankedscore, playcount, usercount, pp, display, shipping_rate) VALUES ('AD', 'Andorra', 13678792724, 116117, 221, 16980, 0, 0);
INSERT INTO osu.osu_countries (acronym, name, rankedscore, playcount, usercount, pp, display, shipping_rate) VALUES ('AE', 'United Arab Emirates', 1046119820081, 8190611, 8381, 1047573, 1, 1);
INSERT INTO osu.osu_countries (acronym, name, rankedscore, playcount, usercount, pp, display, shipping_rate) VALUES ('AF', 'Afghanistan', 716275055, 6943, 23, 1399, 0, 0);
INSERT INTO osu.osu_countries (acronym, name, rankedscore, playcount, usercount, pp, display, shipping_rate) VALUES ('AG', 'Anti
View gist:de6a599a87041c269d420036d2be81ed
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