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
FROM dockerfile/python | |
ADD / /build | |
ENTRYPOINT ["/build/foo.py"] | |
# output: args ['/build/foo.py', 'bash'] | |
# None of these work as expected either | |
#CMD ['arg1'] |
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 | |
from tornado import gen | |
from tornado.ioloop import IOLoop | |
from tornado import stack_context | |
import traceback | |
def broken(arg1, callback): |
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 | |
from tornado import gen | |
from tornado.ioloop import IOLoop | |
@gen.coroutine | |
def exception_gets_lost(): | |
print 'got here' |
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 wpilib | |
from wpilib.buttons import JoystickButton | |
from wpilib.command import Command, CommandGroup, Scheduler | |
class DoTheThing(Command): | |
def __init__(self, robot): | |
super().__init__() | |
self.robot = robot |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<!-- This starts the NetworkTables websocket, it can be accessed from multiple | |
pages simultaneously --> | |
<script src="/networktables/networktables.js"></script> |
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
0:00:00.000044940 24400 0xd5e720 INFO GST_INIT gst.c:499:init_pre: Initializing GStreamer Core Library version 1.4.5 | |
0:00:00.000090481 24400 0xd5e720 INFO GST_INIT gst.c:500:init_pre: Using library installed in /usr/lib64 | |
0:00:00.000100859 24400 0xd5e720 INFO GST_INIT gst.c:511:init_pre: Linux localhost.localdomain 3.19.3-200.fc21.x86_64 #1 SMP Thu Mar 26 21:39:42 UTC 2015 x86_64 | |
0:00:00.000254496 24400 0xd5e720 INFO GST_INIT gstmessage.c:119:_priv_gst_message_initialize: init messages | |
0:00:00.000601084 24400 0xd5e720 INFO GST_INIT gstcontext.c:77:_priv_gst_context_initialize: init contexts | |
0:00:00.000787706 24400 0xd5e720 INFO GST_PLUGIN_LOADING gstplugin.c:317:_priv_gst_plugin_initialize: registering 0 static plugins | |
0:00:00.000865813 24400 0xd5e720 INFO GST_PLUGIN_LOADING gstplugin.c:225:gst_plugin_register_static: registered static plugin "staticelements" | |
0:00:00.000876420 24400 |
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
#!/bin/bash -e | |
PKG="$1" | |
SRPM=$(dnf download --source -v $PKG | tee /dev/stderr | grep -o '.*--> Package \:.*\:.*\.src\.rpm$' | rev | cut -f 1 -d' ' | rev | uniq) | |
rpm2cpio $SRPM | cpio -idmv |
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 io.takari.incrementalbuild.spi; | |
import java.io.File; | |
import java.util.HashSet; | |
import javax.inject.Inject; | |
import javax.inject.Named; | |
import org.apache.maven.execution.scope.MojoExecutionScoped; |
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 io.takari.incrementalbuild.spi; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.Serializable; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.Collections; | |
import java.util.HashSet; |
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 python3 | |
import collections | |
import time | |
import wpilib | |
class MyRobot(wpilib.IterativeRobot): | |
'''Main robot class''' | |
def robotInit(self): |
OlderNewer