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
// ==UserScript== | |
// @name Kill Facebook Garbage | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Hide all likes, shares, comments, and replies from feed. Only Original Posts! | |
// @author Nicholas Wertzberger | |
// @match https://www.facebook.com/ | |
// @grant none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js | |
// ==/UserScript== |
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
#!/usr/bin/env python | |
# A little script that helps convert csv files into a latex longtable appendix file. | |
import sys | |
import csv | |
# Title, Letter, Column_count, Title, Title, Letter, Columns, Col Count, Columns, Col count, footer, Col count, footer | |
longtable_header = """%% !TEX root = paper_that_includes_this_appendix.tex | |
\\chapter{%s} |
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 UnoptimizedTransitionCalculator { | |
private static final Logger logger = LoggerFactory.getLogger( | |
UnoptimizedTransitionCalculator.class | |
); | |
public Policy generateNewPolicy( | |
Set<Action> actions, | |
Map<State, Double> expectedUtilities, | |
Map<StateAction, ? extends Transition> transitions) { | |
return new Policy( |
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 OptimizedTransitionCalculator { | |
private static final Logger logger = LoggerFactory.getLogger( | |
OptimizedTransitionCalculator.class | |
); | |
public Policy generateNewPolicy( | |
Set<Action> actions, | |
Map<State, Double> expectedUtilities, | |
Map<StateAction, ? extends Transition> transitions) { | |
Map.Entry<State, Double>[] expectedUtilityEntries = expectedUtilities |
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 objects.model; | |
import org.pojomatic.Pojomatic; | |
import org.pojomatic.annotations.AutoProperty; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Random; | |
import java.util.Set; |
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 com.ideaheap.decisions.tmt.agents.tmtAgent.behaviours; | |
import com.ideaheap.decisions.tmt.dto.TmtAgentState; | |
import com.ideaheap.decisions.tmt.dto.TmtSuggestion; | |
import com.ideaheap.jade.fluent.df.DfServiceFinder; | |
import com.ideaheap.jade.fluent.df.DfServiceFinderFactory; | |
import com.ideaheap.jade.fluent.messages.BaseMessageReceiver; | |
import com.ideaheap.jade.fluent.messages.MessageReceiver; | |
import com.ideaheap.jade.fluent.messages.MessageReceiverFactory; | |
import com.ideaheap.jade.fluent.messages.MessageSender; |
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 com.ideaheap.decisions.tmt.agents.tmtAgent.behaviours; | |
import com.github.oxo42.stateless4j.StateMachine; | |
import com.github.oxo42.stateless4j.StateMachineConfig; | |
import com.ideaheap.decisions.tmt.dto.TmtAgentState; | |
import com.ideaheap.decisions.tmt.dto.TmtSuggestion; | |
import com.ideaheap.jade.fluent.df.DfServiceFinderFactory; | |
import com.ideaheap.jade.fluent.messages.MessageReceiverException; | |
import com.ideaheap.jade.fluent.messages.MessageReceiverFactory; | |
import com.ideaheap.jade.fluent.messages.MessageSender; |
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 com.ideaheap.decisions.tmt.agents.tmtAgent.behaviours; | |
import com.github.oxo42.stateless4j.StateMachine; | |
import com.github.oxo42.stateless4j.StateMachineConfig; | |
import com.ideaheap.decisions.tmt.dto.DesireDefinitions; | |
import com.ideaheap.decisions.tmt.dto.TmtModel; | |
import com.ideaheap.decisions.tmt.dto.TmtOutcome; | |
import com.ideaheap.decisions.tmt.dto.TmtSuggestion; | |
import com.ideaheap.jade.fluent.df.DfServiceFinderFactory; | |
import com.ideaheap.jade.fluent.messages.MessageBuilder; |
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
<plugins> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>appassembler-maven-plugin</artifactId> | |
<version>1.9</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>generate-daemons</goal> |
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
/* Yet Another Arc Library | |
* Calculates an arc by cutting apart cylinders. Only good in the z plane. | |
* What's kind of nice is that you can jsut specify what the coordinates of | |
* your arc should start and end at. | |
* Only good up to 180 degrees. | |
*/ | |
function scalar(vec) = sqrt(pow(vec.x, 2) + pow(vec.y, 2) + pow(vec.z, 2)); | |
module arc(startCoordinates, endCoordinates, degrees, height, width) { |
NewerOlder