Skip to content

Instantly share code, notes, and snippets.

const lines = {};
const lineThrottles = {};
const lastRun = {};
const nowServing = {
openLine(lineName, throttle = 0) {
this.flushLine(lineName);
lineThrottles[lineName] = throttle;
},
diff --git a/bpo/src/main/com/paloalto/bpo/worker/ImageWorker.java b/bpo/src/main/com/paloalto/bpo/worker/ImageWorker.java
index 317e36e..bb184b2 100644
--- a/bpo/src/main/com/paloalto/bpo/worker/ImageWorker.java
+++ b/bpo/src/main/com/paloalto/bpo/worker/ImageWorker.java
@@ -126,8 +126,6 @@ public class ImageWorker extends AbstractQueueWorker implements Runnable {
eventTracker.trackEvent(data);
}
- currentJob.setCurrentStatus(ImageUploadStatus.SUCCESS);
-
@evanc
evanc / -
Created January 4, 2017 21:58
diff --git a/bpo/src/main/com/paloalto/bpo/worker/ImageWorker.java b/bpo/src/main/com/paloalto/bpo/worker/ImageWorker.java
index 317e36e..bb184b2 100644
--- a/bpo/src/main/com/paloalto/bpo/worker/ImageWorker.java
+++ b/bpo/src/main/com/paloalto/bpo/worker/ImageWorker.java
@@ -126,8 +126,6 @@ public class ImageWorker extends AbstractQueueWorker implements Runnable {
eventTracker.trackEvent(data);
}
- currentJob.setCurrentStatus(ImageUploadStatus.SUCCESS);
-
@evanc
evanc / movies.json
Last active October 26, 2016 06:04
[
{
"name": "The Shawshank Redemption",
"rating": "9.2",
"rank": "1",
"link": "http://www.imdb.com/title/tt0111161/",
"year": "1994"
},
{
"name": "The Godfather",

A principal of a small middle school had a problem with a few of the older girls starting to use lipstick. When applying it in the bathroom they would then press their lips to the mirror and leave lip prints.

Before it got out of hand he thought of a way to stop it. He gathered all the girls together that wore lipstick and told them he wanted to meet with them in the ladies room at 2pm. They gathered at 2pm and found the principal and the school custodian waiting for them.

The principal explained that it was becoming a problem for the custodian to clean the mirror every night. He said he felt the ladies did not fully understand just how much of a problem it was and he wanted them to witness just how hard it was to clean.

The custodian then demonstrated. He took a long brush on a handle out of a box. He then dipped the brush in the nearest toilet, moved to the mirror and proceeded to remove the lipstick.

public class smartVic extends Vic {
public void backUpTo(String someSpot) {
while (!someSpot.equals(getPosition())) {
backUp();
}
}
public static void main (String[] args) {
Turtle bobTheBuilder = new Turtle();
drawWindow(bobTheBuilder, 100, 50);
drawWindow(bobTheBuilder, 400, 50);
}
public static void drawWindow(Turtle myTurtle, int x, int y) {
myTurtle.move(x, y);
myTurtle.paint(0, 40);
@evanc
evanc / gist:8027313
Last active December 31, 2015 18:29
User style to transform "red" issues on the JIRA rapidboard to something friendlier to users with color-vision deficiency
[style*="#ff0000"], [style*="#fc0000"] {
width: 16px !important;
background-color: #333333 !important;
background: url(https://jira.paloalto.com/images/icons/hazard.gif) center center;
}
[style*="#fad419"] {
width: 10px !important;
background-color: #cccccc !important;
background: url(https://jira.paloalto.com/images/icons/bullet_orange.png) center center;
<h1>different html</h1>
<img src="http://placekitten.com/400/300" />
<h1>Some html</h1>
<img src="http://placekitten.com.s3.amazonaws.com/homepage-samples/410/287.jpg" />