Skip to content

Instantly share code, notes, and snippets.

import binarySearch from 'discourse/plugins/discourse-data-explorer/discourse/lib/binary-search';
export default Ember.Component.extend({
tagName: 'td',
user: function() {
const valueInt = parseInt(this.get('value'));
const userRelAry = this.get('extra.relations.user');
const idx = binarySearch(userRelAry, valueInt);
return userRelAry[idx];
}.property('extra.relations', 'value')
});
// file: templates/explorer/user.raw.hbs
const QueryRowContentComponent = Ember.Component.extend({
tagName: "tr",
render() {
//....
if (user) {
public interface A {
public int compareTo(A other);
}
<Shocky4> Script timed out
<Lunatrius> lol
<osuka_> s/out/in/
<Shocky4> Script timed in
<clarjon1> s/in/up/
<Shocky4> Script timed up
<Riking> "Even then, if your project blows up in popularity, you should do the right thing and provide support or pull the product regardless of your preference. "
<osuka_> s/up//
<Shocky4> "Even then, if your project blows in popularity, you should do the right thing and provide support or pull the product regardless of your preference. "
<Riking> "It goes without saying that we can only properly support a product we’ve worked on ourselves."
@riking
riking / factions-pom.xml
Created May 6, 2014 02:38
Factions maven poms
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.massivecraft</groupId>
<artifactId>factions</artifactId>
<version>2.3.1</version>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
package eu.phiwa.dt.anticheatplugins;
import org.bukkit.entity.Player;
public interface AbstractHandler {
public void startExempting(Player player);
public void stopExempting(Player player);
}
[17:28:25 INFO]: Riking[/127.0.0.1:44858] logged in with entity id 386 at ([world] 148.60018809111764, 75.0, 262.1895581330476)
[17:28:30 INFO]: PacketPlayOutNamedSoundEffect[41, legacy: 62]
[17:28:37 INFO]: <Riking> Opening chest
[17:28:38 INFO]: PacketPlayOutNamedSoundEffect[41, legacy: 62]
[17:28:39 INFO]: PacketPlayOutOpenWindow[45, legacy: 100]
[17:28:39 INFO]: PacketPlayOutNamedSoundEffect[41, legacy: 62]
[17:28:41 INFO]: Inventory closed
[17:28:41 INFO]: PacketPlayOutNamedSoundEffect[41, legacy: 62]
[17:28:45 INFO]: PacketPlayOutOpenWindow[45, legacy: 100]
[17:28:45 INFO]: PacketPlayOutNamedSoundEffect[41, legacy: 62]
while ((line = fileReader.readLine()) != null) {
if (line.isEmpty()) continue;
String[] args = new StrTokenizer(line, StrMatcher.splitMatcher())
.setTrimmerMatcher(StrMatcher.trimMatcher())
.getTokenArray();
ActionHandler.ActionResult actionResult;
try {
public class TestPlugin extends JavaPlugin implements Listener {
@Override
public void onEnable() {
putExamples(getConfig());
saveConfig();
}
private void putExamples(ConfigurationSection config) {