Skip to content

Instantly share code, notes, and snippets.

View AndrioCelos's full-sized avatar

Andrio Celos AndrioCelos

View GitHub Profile
@AndrioCelos
AndrioCelos / CSharpTest.csproj
Created August 31, 2023 08:41
Sample project used to reproduce dotnet/roslyn#69663
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
</PropertyGroup>
@AndrioCelos
AndrioCelos / CloneDetector.kvs
Created January 25, 2020 14:39
Clone detector script for KVIrc
event(OnJoin,CloneDetector)
{
if ($isempty(%CloneData{$context.networkName}))
%CloneData{$context.networkName} = $new(CloneData);
%clones = %CloneData{$context.networkName}->$check($0, $2);
if ($length(%clones) == 0) {
echo -i=$msgtype(Join) "$k(12)$b\r!nc\r$0\r$b draws near! ($1@\r!h\r$2\r)";
} else {
event(OnAway,AwayMessages) {
if ($query($0)) {
if ($3) echo -w=$query($0) -i=$msgtype(Away) $b()$0$b() is away: $3;
else echo -w=$query($0) -i=$msgtype(Away) $b()$0$b() is back.;
}
}
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{7D545A9F-6DD6-4F0B-BADF-9283E6234619}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>PluginManager</RootNamespace>
using System;
using System.Diagnostics;
using System.Text.RegularExpressions;
namespace Monopoly {
/// <summary>Represents the game board.</summary>
public class Board {
/// <summary>The name of the board.</summary>
public string Name;
/// <summary>The spaces on the board.</summary>
using System;
using AnIRC;
using GameCorner;
namespace WheelOfFortune {
public class Wheel {
internal Space[] spaces;
public int Position;
public Space Space => this.spaces[this.Position];
void delay(unsigned int delayms) {
// Enable interrupts.
EI();
// Enable the timer 0 interrupt.
IRQ0ENH |= 0x20;
// Set the timer.
T0CTL1 = TCTL1(0, 0, 7, TMODE_ONE_SHOT);
T0CTL0 = TCTL0(0);
T0 = 1;

Happy April 1st.

If you really want the normal textures back, here's how to get them:

If you are using vanilla 1.12.2

  1. Go to your Minecraft launcher working directory. On Windows, this is %appdata%/.minecraft. On Mac, this is ~/Library/Application Support/minecraft. On Linux, this is ~/.minecraft.
  2. Create the directory versions/1.12.2-original.
  3. Download 1.12.2-original.json and save it to that directory. Make sure you are not saving it as a plain text file.
  4. Start the launcher.
{
"id": "1.12.2-original",
"time": "2018-04-01T08:56:11+0000",
"releaseTime": "1960-01-01T00:00:00-0700",
"type": "release",
"inheritsFrom": "1.12.2",
"jar": "1.12.2",
"assetIndex": {
"id": "1.12",
"sha1": "98c430c16a705f18a58a281b27caabf3ef09d40d",
if(!$0)
{
echo $tr("Usage:","defscript")
echo " /mute <nick_list>"
halt;
}
if(!$channel)
{
echo "[Mute]: "$tr("This is not a channel window","defscript")