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
def getClues(guess, secretNum): | |
# Returns a string with the pico, fermi, bagels clues to the user. | |
if guess == secretNum: | |
return 'You got it!' | |
clue = [] | |
for i in range(len(guess)): | |
if guess[i] == secretNum[i]: | |
clue.append('Fermi') |
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
Compiling file /Users/kjellski/.emacs.d/elpa/starter-kit-2.0.3/starter-kit-defuns.el at Thu Apr 12 23:50:03 2012 | |
Entering directory `/Users/kjellski/.emacs.d/elpa/starter-kit-2.0.3/' | |
In esk-paredit-nonlisp: | |
starter-kit-defuns.el:165:30:Warning: assignment to free variable | |
`paredit-space-for-delimiter-predicates' | |
In end of data: | |
starter-kit-defuns.el:176:1:Warning: the function `vc-git-command' is not | |
known to be defined. |
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
class Raffler.Views.MapMarkersIndex extends Backbone.View | |
template: JST['map_markers/index'] | |
render: (markers) -> | |
console.log "Raffler.Views.MapMarkersIndex render" | |
$(@el).html(@template()) | |
@loadGoogleMaps(markers) | |
this | |
loadGoogleMaps: (markers) -> |
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
Search for [~/lib/java/drools-dev ((5.4.0.Final))]$ in here to get to the interesting parts: | |
[~/lib/java/drools-dev (master)]$ git checkout 5.4.0. | |
5.4.0.Beta1 5.4.0.Beta2 5.4.0.CR1 5.4.0.Final | |
[~/lib/java/drools-dev (master)]$ git checkout 5.4.0.Final | |
Note: checking out '5.4.0.Final'. | |
You are in 'detached HEAD' state. You can look around, make experimental | |
changes and commit them, and you can discard any commits you make in this | |
state without impacting any branches by performing another checkout. |
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
mvn install:install-file -DgroupId=org.ops4j.pax.runner.profiles -DartifactId=karaf.shell -Dversion=2.3.0 -Dfile=karaf.shell.composite -Dpackaging=composite |
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
.... | |
<dependency> | |
<groupId>org.drools</groupId> | |
<artifactId>drools-core</artifactId> | |
<version>5.4.0.Final</version> | |
</dependency> | |
<dependency> | |
<groupId>org.drools</groupId> | |
<artifactId>drools-compiler</artifactId> | |
<version>5.4.0.Final</version> |
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
<!-- Drools Dependencies --> | |
<dependency> | |
<groupId>org.apache.servicemix.bundles</groupId> | |
<artifactId>org.apache.servicemix.bundles.jaxb-xjc</artifactId> | |
<version>2.2.4_2</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.servicemix.bundles</groupId> | |
<artifactId>org.apache.servicemix.bundles.xstream</artifactId> | |
<version>1.4.3_1</version> |
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
SetA.Select(m => new { | |
A = m, | |
Count = m.SetB.Where(n => n.Condition == true).Count() | |
}).OrderBy(m => m.Count).Select(m => m.A).First() |
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
unregistering : org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl@29eb0cd0 : interface org.drools.builder.KnowledgeBuilderFactoryService | |
unregistering : org.drools.io.impl.ResourceFactoryServiceImpl@347b21ea : interface org.drools.io.ResourceFactoryService | |
ERROR: Bundle org.drools.api [40] Error stopping bundle. (java.lang.IllegalStateException: The service registration is no longer valid.) | |
java.lang.IllegalStateException: The service registration is no longer valid. | |
at org.apache.felix.framework.ServiceRegistrationImpl.getReference(ServiceRegistrationImpl.java:91) | |
at org.drools.osgi.api.Activator$DroolsServiceTracker.removedService(Activator.java:115) | |
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:1006) | |
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:906) | |
at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:352) | |
at org.osgi.util.tracker.ServiceTracker.close(ServiceTracker.java:412) |
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
... | |
Geometry plane = new Geometry("quad", new Quad(size, size)); | |
Material planeMat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); | |
planeMat.setColor("Color", ColorRGBA.Blue); | |
planeMat.getAdditionalRenderState().setWireframe(true); | |
plane.setMaterial(planeMat); | |
plane.center().move(pos); | |
rootNode.attachChild(plane); | |
... |
OlderNewer