Skip to content

Instantly share code, notes, and snippets.

// GetKeysAndValues
IEnumerator GetKeysAndValues(Bucket bucket) {
var getKeysReq = bucket.GetKeys();
yield return getKeysReq.WaitUntilDone();
if(!getKeysReq.isSuccessful) {
Debug.LogError("Error querying keys for " + bucket.name);
yield break;
}
SSD over SATA (Plextor)
===========================================================
Sequential Read : 495.185 MB/s
Sequential Write : 323.792 MB/s
Random Read 512KB : 384.094 MB/s
Random Write 512KB : 310.445 MB/s
Random Read 4KB (QD=1) : 32.310 MB/s [ 7888.1 IOPS]
Random Write 4KB (QD=1) : 86.575 MB/s [ 21136.6 IOPS]
Random Read 4KB (QD=32) : 366.091 MB/s [ 89377.8 IOPS]
Random Write 4KB (QD=32) : 312.520 MB/s [ 76298.9 IOPS]
@akyoto
akyoto / git pull every subdirectory
Created March 12, 2015 00:19
git pull every subdirectory
for dir in ~/projects/*; do (echo "Updating $dir" && cd "$dir" && git pull); done
#include <public/Graphics/GLUT/C++/GLUT.hpp>
// Global
bool bp_glutRunFlag = false;
// glGetString(GL_VERSION)
void bp_closeFunc() {
bp_glutRunFlag = false;
}
return self.binaryOperatorDivideSyntax % (self.exprPrefix, op1, connector, op2, self.exprPostfix)
def checkInterfaceImplementation(self, classObj, interface):
debug("Checking '%s' for implementation of interface '%s'" % (classObj.name, interface.name))
for method in interface.functions:
if not classObj.hasFunction(method):
raise CompilerException("Class '%s' does not define the '%s' method of interface '%s'" % (classObj.name, method, interface.name))
a = Vector<Byte>()
on a
add('a')
add(98)
add('c')
add(100)
add(0)
print String(a.data)
MyClass
init
my.a = 0.0
public
a
MyClass
public
a
init
my.a = 0.0
MyClass
init
my.member = 5
MyClass
init
...
doSomething
my.a = 5