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
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') | |
}); |
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
// file: templates/explorer/user.raw.hbs |
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
const QueryRowContentComponent = Ember.Component.extend({ | |
tagName: "tr", | |
render() { | |
//.... | |
if (user) { |
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
public interface A { | |
public int compareTo(A other); | |
} |
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
<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." |
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
<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> |
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 eu.phiwa.dt.anticheatplugins; | |
import org.bukkit.entity.Player; | |
public interface AbstractHandler { | |
public void startExempting(Player player); | |
public void stopExempting(Player player); | |
} |
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
[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] |
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
while ((line = fileReader.readLine()) != null) { | |
if (line.isEmpty()) continue; | |
String[] args = new StrTokenizer(line, StrMatcher.splitMatcher()) | |
.setTrimmerMatcher(StrMatcher.trimMatcher()) | |
.getTokenArray(); | |
ActionHandler.ActionResult actionResult; | |
try { |
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
public class TestPlugin extends JavaPlugin implements Listener { | |
@Override | |
public void onEnable() { | |
putExamples(getConfig()); | |
saveConfig(); | |
} | |
private void putExamples(ConfigurationSection config) { |
OlderNewer