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
boolean drawOnce; | |
int w = 640; | |
int h = 480; | |
void setup() { | |
drawOnce = true; | |
frame.removeNotify(); | |
frame.setUndecorated(true); | |
frame.setAlwaysOnTop(true); | |
frame.addNotify(); |
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
@echo off | |
REM this batch to be placed in the same directory as the PowerPoint files | |
REM this batch requires for powerpnt.exe to be in the PATH Environment variables | |
echo @ECHO OFF > loop.bat | |
for %%A in (*.ppt*) DO echo powerpnt.exe /s "%%A" >> loop.bat | |
echo loop.bat >> loop.bat | |
loop.bat |
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
SELECT * from ABPerson join ABMultiValue on ABPerson.ROWID = ABMultiValue.record_id where ABPerson.First LIKE '%name%' |
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
@Test | |
public void testMacOSXClassLoaderBehavior() throws Exception { | |
final ClassTypeResolver resolver = new ClassTypeResolver( new HashSet(), Thread.currentThread().getContextClassLoader() ); | |
resolver.addImport("org.drools.core.test.model.*"); | |
assertEquals( org.drools.core.test.model.Cheese.class, | |
resolver.resolveType( "Cheese" ) ); | |
try { | |
resolver.resolveType( "cheese" ); // <<- on Mac/OSX throws NoClassDefFoundError which escapes the try/catch and fail the test. | |
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 void testMatteo() { | |
ParserConfiguration conf = new ParserConfiguration(); | |
boolean doImportNameMethod = true; | |
if (doImportNameMethod) { | |
Class<?> clazz = CoreConfidenceTests.class; | |
Method nameMethod = null; | |
for (Method m : clazz.getMethods()) { | |
if (m.getName() == "name") { | |
nameMethod = m; | |
} |
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
@Test | |
public void testMATTEO() throws InterruptedException { | |
ReleaseId releaseId = ks.newReleaseId("org.kie", "test-delete", "1.0.0"); | |
createAndDeployJar( ks, releaseId, createDRL("ruleA") ); | |
ExecutorService es = Executors.newFixedThreadPool(10); | |
List<Callable<Boolean>> list = new ArrayList<Callable<Boolean>>(); | |
for (int i = 0; i < 6; i++) { | |
list.add(new Callable<Boolean>() { | |
@Override |
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 org.drools.persistence.monitoring; | |
import org.drools.compiler.Person; | |
import org.drools.core.SessionConfiguration; | |
import org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession; | |
import org.drools.core.command.impl.FireAllRulesInterceptor; | |
import org.drools.core.command.impl.LoggingInterceptor; | |
import org.drools.core.factmodel.traits.Traitable; | |
import org.drools.core.management.DroolsManagementAgent; |
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
KieSession kieSessionHelper = new KieHelper() | |
.addContent(new String(Files.readAllBytes(Paths.get("src/main/resources/myRules.drl"))), ResourceType.DRL) | |
.build().newKieSession(); | |
ReteDumper.dumpRete(kieSessionHelper); |
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
org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 unmarshal = | |
org.drools.workbench.models.guided.dtable.backend.GuidedDTXMLPersistence.getInstance().unmarshal( | |
new String(Files.readAllBytes(Paths.get("src/main/resources/guidedTable.gdst"))) | |
); | |
String drl = org.drools.workbench.models.guided.dtable.backend.GuidedDTDRLPersistence.getInstance().marshal(unmarshal); | |
System.out.println(drl); |
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
@FEELType private class DROOLS_1775_1 {} | |
@FEELType private class DROOLS_1775_2 {} | |
@FEELType private class DROOLS_1775_3 {} | |
@FEELType private class DROOLS_1775_4 {} | |
@FEELType private class DROOLS_1775_5 {} | |
@FEELType private class DROOLS_1775_6 {} | |
@FEELType private class DROOLS_1775_7 {} | |
@FEELType private class DROOLS_1775_8 {} | |
@FEELType private class DROOLS_1775_11 {} | |
@FEELType private class DROOLS_1775_12 {} |
OlderNewer