This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name YouTube Subscriptions Filter | |
// @namespace https://unascribed.com/ | |
// @version 0.1 | |
// @description allows you to filter your YouTube subscription feed | |
// @author Aesen "unascribed" Vismea | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// @match https://www.youtube.com/feed/subscriptions | |
// @match http://www.youtube.com/feed/subscriptions | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.unascribed.brokenhash; | |
import java.math.BigInteger; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.nio.charset.StandardCharsets; | |
/** | |
* Generates a broken Minecraft-style twos-complement signed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.unascribed.blah; | |
class Blah { // warning: Class Foo does not specify an access modifier (defaulting to package) | |
int blah; // warning: The field blah does not specify an access modifier and the | |
// class specifies no default (defaulting to package) | |
void hello() { // warning: The method hello does not specify an access modifier and | |
// the class specifies no default (defaulting to package) | |
System.out.println("Hello, World!"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!version 1 | |
!import aesen.laminate.component.* | |
!import net.example.customcomponents.MyCoolComponent | |
ProgressBar[30x40+10,10] | |
Panel[30x80+10,60](title="Some Awesome Panel" showBorder) | |
Label | |
| Hello, GUI! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
o='';r=new Random();args[0].chars.any{o+=it;if(it.letter)(r.nextGaussian()*5+10).times{o+=(char)(768+r.nextInt(48))}}print o |

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
mavenCentral() | |
maven { | |
name = "forge" | |
url = "http://files.minecraftforge.net/maven" | |
} | |
maven { | |
name = "sonatype" | |
url = "https://oss.sonatype.org/content/repositories/snapshots/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @author Aesen Vismea **/ | |
@Override | |
public boolean onItemUse(ItemStack itemstack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) { | |
EnumFacing face = EnumFacing.values()[side]; | |
int xO = x+face.getFrontOffsetX(); | |
int yO = y+face.getFrontOffsetY(); | |
int zO = z+face.getFrontOffsetZ(); | |
world.setBlock(xO, yO, zO, Blocks.mob_spawner); | |
TileEntityMobSpawner te = new TileEntityMobSpawner(); | |
te.readFromNBT(itemstack.getTagCompound()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
minecraft { | |
srgExtra "PK: com/typesafe/config my/mod/package/repackage/com/typesafe/config" | |
} | |
configurations { | |
external | |
compile.extendsFrom external | |
} | |
dependencies { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
long value = 123456; | |
// 56 bronze, 34 silver, 12 gold | |
int gold = (value / 10000); | |
int silver = (value / 100 % 100); | |
int bronze = (value % 100); |