Skip to content

Instantly share code, notes, and snippets.

View alank64's full-sized avatar

Andrew Lank alank64

  • Kortext
  • Montreal, QC, Canada
View GitHub Profile
@victorbstan
victorbstan / clips.html
Created August 25, 2012 20:34
Angular JS and Rails 3 Infinite Scroll Pagination
<!--
This is the HTML portion of the infinite scroll/pagination with Rails and AngularJS tutorial
Required libraries for the tutorial and indicated as "Important",
together with implementation specific libraries marked as "Optional"
-->
<!DOCTYPE html>
<html>
<title>Clips</title>
<!-- Important -->
@mhluongo
mhluongo / gist:2628389
Created May 7, 2012 15:24
QuerySet relational filtering workaround (as of 5/7/2012. neo4django 03b247d7911753)
# a hack for `NodeA.objects.filter(nodeb__in=nodebnodes)`
from neo4django.db import connections
from neo4django.db.models.script_utils import LazyNode
# ...
b_nodes = set([...]) #your NodeB instances
b_node_ids = [b.id for b in b_nodes]
type_node_a = NodeA._type_node()