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 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): |
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
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) |
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
// 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() { |
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
{ | |
"results": [ | |
{ | |
"title": "foo", | |
"url": "http://bar" | |
}, | |
{ | |
"title": "foo", | |
"url": "http://bar" | |
}, |
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 { | |
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 <"); |
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
var A = function(){}; | |
A.prototype.foo = function(){ | |
console.log('foo'); | |
} | |
var B = function(){}; | |
B.prototype.bar = function(){ | |
console.log('bar'); |
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
[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 |
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
; | |
(function(){ | |
var playerName; | |
var skirmish = new networld.Engine({ | |
node: '#skirmish-viewport', | |
images: { | |
'sprites': '/images/sprites.png', | |
'crosshairs': '/images/crosshair.png', |
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
; | |
networld.Engine = (function($){ | |
var $node, | |
ready = false, | |
keys = {}, | |
mouse = {x:0,y:0}, | |
cursor, | |
player, |
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 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>(); |
NewerOlder