Skip to content

Instantly share code, notes, and snippets.

View mmurray's full-sized avatar

Michael Murray mmurray

View GitHub Profile
import rclpy
from rclpy.node import Node
from rclpy.time import Time
from std_msgs.msg import String
from tf2_ros import TransformException
from tf2_ros.buffer import Buffer
from tf2_ros.transform_listener import TransformListener
class FrameListener(Node):
function CroppedImage(image,sx,sy,sw,sh){
this.image = image;
this.sx = sx;
this.sy = sy;
this.sw = sw;
this.sh = sh;
}
CroppedImage.prototype.draw = function(context,x,y){
context.drawImage(this.image, this.sx, this.sy, this.sw, this.sh, x, y, this.sw, this.sh)
// Put this where you want the widget to appear:
<ci:widget />
// Put this at the bottom fo the page:
<!-- clickigniter -->
<script type="text/javascript">
(function() {
{
"results": [
{
"title": "foo",
"url": "http://bar"
},
{
"title": "foo",
"url": "http://bar"
},
package {
import flash.display.MovieClip;
import flash.external.ExternalInterface;
public class AudioPlayer extends MovieClip {
public function AudioPlayer():void {
if(ExternalInterface.available) {
ExternalInterface.call( "Mozart.log" , "> mozart - flash audio player initialized <");
var A = function(){};
A.prototype.foo = function(){
console.log('foo');
}
var B = function(){};
B.prototype.bar = function(){
console.log('bar');
[exec] 20:58:04,115 INFO ~ processGoogScopeAliases
[exec] 20:58:04,117 INFO ~ processProvidesAndRequires
[exec] 20:58:04,147 INFO ~ checkVars
[exec] 20:58:04,204 INFO ~ renameCssNames
[exec] 20:58:04,224 INFO ~ replaceMessages
[exec] 20:58:04,225 INFO ~ processDefines
[exec] 20:58:04,307 INFO ~ Normalizing
[exec] 20:58:04,397 INFO ~ beforeStandardOptimizations
[exec] 20:58:04,397 INFO ~ optimizeArgumentsArray
[exec] 20:58:04,442 INFO ~ closureCodeRemoval
;
(function(){
var playerName;
var skirmish = new networld.Engine({
node: '#skirmish-viewport',
images: {
'sprites': '/images/sprites.png',
'crosshairs': '/images/crosshair.png',
;
networld.Engine = (function($){
var $node,
ready = false,
keys = {},
mouse = {x:0,y:0},
cursor,
player,
public class Sandbox {
public static Integer[] quicksort(Integer[] array){
if(array.length <= 1){
return array;
}
Integer[] result = new Integer[array.length];
List<Integer> less = new ArrayList<Integer>();