static {
NoverPackage.undoPackageVersioning(MyPlugin.class);
}
This file contains hidden or 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
security: | |
# Keywords: | |
- network | |
- file-system | |
# Or explicit classes: | |
- org.spout.plugin.security.clearances.NetworkClearance | |
- org.spout.plugin.security.clearances.FileSystemClearance |
This file contains hidden or 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
java.lang.IncompatibleClassChangeError | |
at codechicken.wirelessredstone.core.RedstoneEtherFrequency.putActiveTransmittersInList(RedstoneEtherFrequency.java:383) | |
at codechicken.wirelessredstone.core.RedstoneEther.getActiveTransmitters(RedstoneEther.java:1208) | |
at codechicken.wirelessredstone.addons.RedstoneEtherAddonManager.processSMPMaps(RedstoneEtherAddonManager.java:143) | |
at codechicken.wirelessredstone.addons.RedstoneEtherAddonManager.onTick(RedstoneEtherAddonManager.java:564) | |
at net.minecraft.server.mod_WirelessRedstoneAddons.onTickInGame(mod_WirelessRedstoneAddons.java:41) | |
at net.minecraft.server.BaseMod.doTickInGame(BaseMod.java:34) | |
at cpw.mods.fml.common.modloader.BaseModTicker.sendTick(BaseModTicker.java:95) | |
at cpw.mods.fml.common.modloader.BaseModTicker.tickBaseMod(BaseModTicker.java:83) | |
at cpw.mods.fml.common.modloader.BaseModTicker.tickEnd(BaseModTicker.java:55) |
This file contains hidden or 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
RSpec::Matchers.define :send_an_email do | |
chain :subject do |subject| | |
@subject = subject | |
end | |
chain :to do |to| | |
@to = to | |
end | |
match do |
This file contains hidden or 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
function parse_git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "("${ref#refs/heads/}")" | |
} | |
if [[ `whoami` == "root" ]]; then | |
PS1="# " | |
else | |
PS1="\[\e[38;5;240m\]\$(date +%H:%M) \W \$(parse_git_branch)\$\[\e[0m\] " | |
fi |
This file contains hidden or 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
######################################### | |
### Install wget-ssl over ipkg's wget ### | |
######################################### | |
$ ipkg install -verbose_wget libidn # To get ipk URL | |
$ ipkg install -verbose_wget wget-ssl # To get ipk URL | |
$ /usr/syno/bin/wget http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/libidn_1.25-1_i686.ipk | |
$ /usr/syno/bin/wget http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/wget-ssl_1.12-2_i686.ipk | |
$ ipkg install libidn_1.25-1_i686.ipk | |
$ ipkg install wget-ssl_1.12-2_i686.ipk |
This file contains hidden or 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
require 'active_support/core_ext/module/aliasing' | |
require 'thor' | |
require 'thor/group' | |
class Thor | |
class << self | |
def method_options_from(option) | |
{ | |
aliases: option.aliases, | |
banner: option.banner, |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require "opencv" | |
if ARGV.length < 2 | |
puts "usage: detect_faces.rb path/to/input.jpg path/to/output.jpg" | |
exit 1 | |
end | |
data = "/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt_tree.xml" | |
detector = OpenCV::CvHaarClassifierCascade.load(data) |
This file contains hidden or 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
public class Item { | |
public static final Item[] items = new Item[32000]; | |
public Item(int id) { | |
items[id] = this; | |
} | |
} | |
public class Pickaxe extends Item { |