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
################################################################################ | |
# | |
# Provides aliases to simplify commands when working with HADOOP. | |
# | |
# Examples: | |
# hs mapper.py reducer.py ../data/testdata.txt outputdir | |
# | |
# ...or, with combiner... | |
# hsc mapper.py reducer.py ../data/testdata.txt outputdir | |
# |
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
-- | |
-- Script to migrate from Drupal to WordPress | |
-- | |
-- Author: Paul Osborne | |
-- Created: 29 May 2014 | |
-- | |
#nosplit -- run entire script atomically | |
-- **************************************************************************** |
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
// Java equivalent of: | |
// PHP: pack("N", 123) and unpack("N", str) | |
// Perl: pack("N", 123) and unpack("N", str) | |
static String packN(int value) { | |
byte[] bytes = ByteBuffer.allocate(4).putInt(value).array(); | |
bytes = toPositiveByteArray(bytes); | |
return String.valueOf((char[]) bytes); | |
} | |
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
// Groovy equivalent of: | |
// PHP: pack("N", 123) and unpack("N", str) | |
// Perl: pack("N", 123) and unpack("N", str) | |
static String packN(int value) { | |
def bytes = ByteBuffer.allocate(4).putInt(value).array() | |
bytes = toPositiveByteArray(bytes) | |
(bytes as char[]).toString() | |
} |
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 ArrowLine(polyline) { | |
this.div_ = null; | |
this.polyline_ = polyline; | |
this.bounds_ = TFUtils.getLineBounds(this.polyline_); | |
} | |
ArrowLine.prototype = new google.maps.OverlayView(); | |
ArrowLine.prototype.onAdd = function() { | |
var div = document.createElement('div'); | |
div.style.position = "absolute"; |