Skip to content

Instantly share code, notes, and snippets.

@smoogipoo
smoogipoo / Kernel.cs
Created September 22, 2015 09:34
Linearly-sampled Gaussian blur kernel
class Kernel
{
public double[] Weights;
public double[] Offsets;
public Kernel(int taps)
{
Debug.Assert(taps >= 0);
double[] row = genPascalRow(taps);
header 1
cell 1.1
// Copyright (c) 2007-2017 ppy Pty Ltd <[email protected]>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using osu.Game.Beatmaps;
using osu.Game.Database;
using osu.Game.Modes.Objects.Drawables;
using osu.Game.Modes.Scoring;
using osu.Game.Modes.Taiko.Judgements;
using osu.Game.Modes.Taiko.Objects;
@smoogipoo
smoogipoo / cloudSettings
Created May 29, 2017 01:17
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-05-29T01:17:51.459Z","extensionVersion":"v2.8.1"}
@smoogipoo
smoogipoo / cloudSettings
Last active October 12, 2017 08:58
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-10-12T08:58:27.123Z","extensionVersion":"v2.8.3"}
class Transformable<T>
where T : Transformable<T>
{
}
class TransformationContinuation<T>
where T : Transformable<T>
{
T origin;
// Copyright (c) 2007-2017 ppy Pty Ltd <[email protected]>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK;
using OpenTK.Graphics;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Input;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using osu.GameModes.Edit.AiMod;
using osu.GameModes.Play;
using osu.GameModes.Play.Rulesets.Mania;
using osu.GameplayElements.HitObjects;
using osu.GameplayElements.HitObjects.Mania;
using osu.GameplayElements.Scoring;
// Copyright (c) 2007-2018 ppy Pty Ltd <[email protected]>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Caching;
using osu.Framework.Configuration;
using osu.Framework.Extensions.IEnumerableExtensions;
@smoogipoo
smoogipoo / import.sh
Created October 19, 2018 02:15
osu-server + osu-performance on Ubuntu 16.04
#!/bin/bash
# Set these!
# Files
BEATMAPS_FILE='2018_05_28_all_ranked_osu_files'
PERFORMANCE_FILE='2018_09_19_performance_osu_top' # Important!
# Get the data
mkdir -p ~/data