Skip to content

Instantly share code, notes, and snippets.

test("Using a real child actor") {
val underTest = TestActorRef(new ParentActor(actorFactory => actorFactory.actorOf(Props[ChildActor])))
underTest ! "Go do some work"
// Can't test this but shows how to crate a ParentActor in production code
}
NSUInteger lengthA = [a length];
NSUInteger lengthB = [b length];
NSUInteger keyLength = lengthA + lengthB + 1;
assert(keyLength * sizeof(unichar) < SOME_REASONABLE_MAXIMUM_FOR_STACK_ALLOCATION);
unichar cat[keyLength];
[a getCharacters:cat range:NSMakeRange(0, lengthA)];
cat[lengthA] = '.';
[b getCharacters:cat + lengthA + 1 range:NSMakeRange(0, lengthB)];
NSString *key = [[NSString alloc] initWithCharactersNoCopy:cat length:keyLength freeWhenDone:NO];
... [dict objectForKey:key];
/**
* $(document).ready()
**/
$(document).ready(function() {
// Handler for .ready() called.
});
$(function() {
// Handler for .ready() called.
});

Senior Ruby on Rails Developer at ID.me

Location: Tyson's Corner, VA

TL;DR

ID.me is seeking a talented Ruby on Rails developer to add to our team. Applicants should have 5+ years of experience developing for the web with a solid command of Ruby, Rails and related technologies.

About ID.me

<script>
if(!window.location.query) {
window.location.query = function(){
var map = {};
if ("" != this.search) {
var groups = this.search.substr(1).split("&"), i;
for (i in groups) {
i = groups[i].split("=");
def changeUrl = "https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE"
def latest = changeUrl.toURL().text
println "Latest Revision: ${latest}"
def changeUrl = "https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE"
def latest = changeUrl.toURL().text
println "Latest Revision: ${latest}"
exports.testFoo = function(assert) {
assert.equal(2 + 2, 4, "2 + 2 is 4")
}
Index: llvmpy/include/llvm_binding/extra.h
===================================================================
--- llvmpy/include/llvm_binding/extra.h (revision 14593)
+++ llvmpy/include/llvm_binding/extra.h (revision 14594)
@@ -164,6 +164,7 @@
for(; begin != end; ++begin) {
PyObject* cap = pycapsule_new(&*begin, capsuleName, className);
PyList_Append(list, cap);
+ Py_DECREF(cap);
}