Skip to content

Instantly share code, notes, and snippets.

😖

Una unascribed

😖
Block or report user

Report or block unascribed

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View STBTexteditJ.java
package com.unascribed.chipper.client;
import static org.lwjgl.glfw.GLFW.*;
import java.util.Arrays;
import java.util.PrimitiveIterator;
import it.unimi.dsi.fastutil.ints.IntArrayList;
import it.unimi.dsi.fastutil.ints.IntList;
import it.unimi.dsi.fastutil.ints.IntListIterator;
View OpenGLDebug.java
package com.unascribed.chipper;
import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.opengl.GL43.*;
import static org.lwjgl.system.MemoryUtil.*;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
View RandomXoshiro256StarStar.java
/*
* To the extent possible under law, the author has dedicated all copyright
* and related and neighboring rights to this software to the public domain
* worldwide. This software is distributed without any warranty.
*
* See <http://creativecommons.org/publicdomain/zero/1.0/>
*/
import java.io.IOException;
import java.util.Random;
View Stipple.java
import java.nio.ByteBuffer;
import org.lwjgl.BufferUtils;
import org.lwjgl.opengl.GL11;
public class Stipple {
private static final ByteBuffer buf = BufferUtils.createByteBuffer(128);
private static void stipple(long[] arr) {
View MaterialColor.java
package com.unascribed.materialpicker;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Random;
public enum MaterialColor {
RED("Red",
0xFF_F44336,
View ClockDrawable.java
/*
* The MIT License
* Copyright 2018 Una Thompson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
View BOTS.md

Sleeping Town Bot Policy

Bot accounts are welcmoe, provided they follow these rules:

  1. All Markov bots or other generative bots that may output nonsense must always post unlisted, or with a CW.
  2. If a bot will post public posts, it must not post any more frequently than once an hour and must be clearly marked as a bot in its display name.
  3. Bots must never mention other users unless the mentioned user has initiated it. For such user-initiated posts, any rate limits may be ignored.
  4. The bot's operator must be included in its description or a pinned post.
  5. Top-level unlisted or followers-only posts must not be made any more frequently than every 15 minutes.
    • Exception: Now-playing or scrobble bots may post as frequently as once a minute.
  6. If a bot incorporates data from posts made by another user that are not directed at the bot, the bot must be following that user.
@unascribed
unascribed / injector.js
Last active Apr 19, 2018
Square avatars, a textarea bugfix, less padding, and a better font for Discord.
View injector.js
var font = "Roboto", monofont = "Roboto Mono",
d=document,s=d.createElement('style');s.textContent="body,input,textarea{font-family:'"+font+"' !important}pre{font-family:'"+monofont+"' !important}.avatar-large,.avatar-profile,.avatar-small,.avatar-xlarge,.avatar-xsmall,.avatar-xxlarge{border-radius:10%}.guild-inner,.guilds-add{border-radius:10% !important;transition:filter 0.2s}.guild-inner:hover{filter: brightness(150%)}.message-group{padding:10px 0}textarea[placeholder^=Message][style='height:auto;']{height:20px !important}.emoji.jumboable{width:48px;height:48px}";d.head.appendChild(s);
View MaterialColor.java
package com.unascribed.materialpicker;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Random;
public enum MaterialColor {
RED("Red",
0xFF_F44336,
View elytra-code-guidelines.md

Elytra Code Style Guidelines

These are guidelines. Feel free to ignore them. Use your judgement.

Indentation

Tabs and spaces. Tabs for indentation, spaces for alignment. Reasoning: Tabs are more semantic, and their size can be adjusted to the reader's preference.

If changing the indent size in your editor misaligns the code and makes it unclear, you did it wrong.

You can’t perform that action at this time.