Skip to content

Instantly share code, notes, and snippets.

View DeflatedPickle's full-sized avatar
🧦
go ahead, put on the programming socks

abbie DeflatedPickle

🧦
go ahead, put on the programming socks
View GitHub Profile
@torcado194
torcado194 / cleanEdge-shadertoy.glsl
Last active May 7, 2024 01:26
cleanEdge, a pixel art upscaling algorithm for clean rotations
/*** MIT LICENSE
Copyright (c) 2022 torcado
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
@gigaherz
gigaherz / XNbt.java
Last active December 19, 2021 20:43
/*
Copyright (c) 2021, David Quintana <gigaherz@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
@AlexTMjugador
AlexTMjugador / PackSquashIntegrationExample.java
Last active June 16, 2023 19:50
Toy example that shows how to integrate PackSquash in a Java application.
package io.github.alextmjugador;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.ProcessBuilder.Redirect;
import java.nio.charset.StandardCharsets;
import sys
from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QPushButton, QAction, QLineEdit, QMessageBox, QTextEdit
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import pyqtSlot
import subprocess;
import os;
import pathlib;
class App(QMainWindow):
@thecodewarrior
thecodewarrior / comparison.gif
Last active March 1, 2023 10:23
CurseForge logo SVG
comparison.gif
@Demonstrandum
Demonstrandum / catbread.gif
Last active December 22, 2021 17:52
Bread
catbread.gif
import java.io.BufferedInputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.util.Enumeration;
import java.util.Map;
import java.util.Set;
import java.util.jar.JarEntry;
@skrungly
skrungly / cpp_stdio.py
Created July 16, 2018 02:45
C++ style I/O implementation in Python. Oh dear.
import dis
from types import CodeType
def _patch_code(code: CodeType, **kwargs):
"""Create a new CodeType object with modified attributes."""
code_attrs = {}
# Collect the original CodeType attributes
@williewillus
williewillus / primer.md
Last active April 22, 2024 15:29
1.13/1.14 update primer

This primer is licensed under CC0, do whatever you want.

BUT do note that this can be updated, so leave a link here so readers can see the updated information themselves.

1.13 and 1.14 are lumped together in this doc, you're on your own if you just want to go to 1.13 and not 1.14, for some reason.

1.15 stuff: https://gist.github.com/williewillus/30d7e3f775fe93c503bddf054ef3f93e

Things in Advance

  • ResourceLocation now throw on non-snake-case names instead of silently lowercasing for you, so you probably should go and change all those string constants now. More precisely, domains must only contain alphanumeric lowercase, underscore (_), dash (-), or dot (.). Paths have the same restrictions, but can also contain forward slashes (/).
'''A tool to simplify writing solutions to programming puzzles'''
class Part:
def __init__(self):
self.output_buffer = []
self.accumulator = 0
def text(self, *text):
line = ' '.join([str(t) for t in text])