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 waitForJquery = function(jqueryCallback, interval) { | |
if(typeof $ === 'function') { | |
jqueryCallback(); | |
} else { | |
setTimeout(function() { | |
if(typeof $ === 'function'){ | |
jqueryCallback(); | |
} else { | |
waitForJquery(jqueryCallback, interval); | |
} |
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
$(document).ready(function() { | |
$("#pics iframe").each(function(index) { | |
var ratio = $(this).height() / $(this).width(); | |
var origHeight = $(this).height(); | |
var origWidth = $(this).width(); | |
var self = this; | |
// bind to window with closure that references the | |
// iframe since the iframe doesn't get resize events | |
// until (you know) we resize it. | |
$(window).resize(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
var waitForJquery = function(dofn, interval) { | |
if(typeof $ === 'function') { | |
dofn(); | |
} else { | |
setTimeout(function() { | |
if(typeof $ === 'function'){ | |
dofn(); | |
} else { | |
waitForJquery(dofn, interval); | |
} |
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
diff --git a/Gruntfile.js b/Gruntfile.js | |
index 7a2cb02..d3edb52 100644 | |
--- a/Gruntfile.js | |
+++ b/Gruntfile.js | |
@@ -245,6 +245,15 @@ var path = require('path'), | |
api: { | |
src: ['core/test/functional/api/*_test.js'] | |
+ }, | |
+ posts: { |
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
for i in range(0,len(data),8): | |
bound = i+8 | |
if i + 8 > len(data): | |
bound = len(data) - 1 | |
byte = data[i+1:bound] | |
val = int(byte,2) | |
out = '%s%c'%(out,val) | |
print out |
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 AtlasWork implements TransactionTask<SomeReturnType,Exception> { | |
public SomeReturnType execute(Transtaction t) throws Exception { | |
// this is the implicit start to the transaction | |
Charset UTF8 = Charset.forName("UTF-8"); | |
byte[] tableName = "exampleTable".getBytes(UTF8); | |
byte[] rowId = "exampleRow".getBytes(UTF8); |
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 interface Transaction { | |
/** | |
* Selects a one or more rows, each consisting of multiple cells. | |
*/ | |
SortedMap<byte[], RowResult<byte[]>> getRows(String tableName, Iterable<byte[]> rows, | |
ColumnSelection columnSelection); | |
/** | |
* Selects specific cells (a Cell is a tuple of row id and field id) | |
*/ |
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
<html> | |
<head> | |
<body style='align: center'> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<div class='content' style='margin: auto'> | |
</div> | |
<script> | |
var data = | |
[ |
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
find_value = (haystack, needle, cache=new WeakMap()) -> | |
# console.log "haystack: ", haystack | |
# console.log "needle: ", needle | |
try | |
if haystack? | |
unless typeof haystack == 'object' and cache.has haystack | |
cache.set haystack, true | |
for key, value of haystack |
This file has been truncated, but you can view the full file.
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
==> Installing qgis from homebrew/science | |
==> Downloading http://qgis.org/downloads/qgis-1.8.0.tar.bz2 | |
Already downloaded: /Library/Caches/Homebrew/qgis-1.8.0.tar.bz2 | |
==> Verifying qgis-1.8.0.tar.bz2 checksum | |
tar xvf /Library/Caches/Homebrew/qgis-1.8.0.tar.bz2 | |
x qgis-1.8.0/ | |
x qgis-1.8.0/.gitignore | |
x qgis-1.8.0/.mailmap | |
x qgis-1.8.0/BUGS |
OlderNewer