Skip to content

Instantly share code, notes, and snippets.

Avatar

James Casbon jamescasbon

View GitHub Profile
View notebook.js
/*
Hello, this is Dog
------------------
Lets talk about cells.*/
// code cell
print(84);
@jamescasbon
jamescasbon / bootstrap.coffee
Created Apr 15, 2012
Bootstrap example ported to coffeekup
View bootstrap.coffee
doctype 5
html ->
head ->
title 'Title'
meta name: 'viewport', content: "width:device-width, initial-scale:1.0"
meta name: 'description', content: ""
meta name: 'author', content: ""
link href: 'bootstrap/css/bootstrap.css', rel: 'stylesheet'
link href: 'bootstrap/css/bootstrap-responsive.css', rel: 'stylesheet'
@jamescasbon
jamescasbon / backbonehandler.py
Created Apr 18, 2012
Backbone.js handler for tornado and mongodb backed handler
View backbonehandler.py
"""
Backbone.js handler and mongodb based handler for Tornado.
`BackboneHandler` handles the sync protocol for Backbone.js. Inherit
from the class and implement the model methods:
* create_model
* update_model
* get_model
* delete_model
* get_collection
@jamescasbon
jamescasbon / example.py
Created Jun 20, 2012
Tornado github API client
View example.py
import tornado.ioloop
import tornado.web
import tornado.escape
import tornado.options
import tornado.httputil
import jinja2
import pyjade.compiler
import coffeescript
import markdown
View foo.html
<html>
<body>
<h1>hi</h1>
</body>
</html>
@jamescasbon
jamescasbon / vcf.ipynb
Last active Feb 26, 2018
VCF pandas demo
View vcf.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jamescasbon
jamescasbon / funcparserlib_vcf.py
Created Feb 15, 2013
pyvcf proposal to use funcparserlib to clarify parsing
View funcparserlib_vcf.py
import sys
import os
import re
import logging
import collections
import pprint
from funcparserlib.lexer import make_tokenizer, Spec
from funcparserlib.parser import (maybe, many, eof, skip, fwd, name_parser_vars, SyntaxError)
from funcparserlib.contrib.common import const, n, op, op_, sometok
@jamescasbon
jamescasbon / build-3.3.log
Last active Jan 2, 2016
xdress clang build against llvm3.4 built from source
View build-3.3.log
(xdress)~/S/xdress git:clang ❯❯❯ unset CPPFLAGS
(xdress)~/S/xdress git:clang ❯❯❯ unset LD_LIBRARY_PATH
(xdress)~/S/xdress git:clang ❯❯❯ python setup.py build
XXXXXXX XXXXXXXDDDDDDDDDDDDD
X:::::X X:::::XD::::::::::::DDD
X:::::X X:::::XD:::::::::::::::DD
X::::::X X::::::XDDD:::::DDDDD:::::D
XXX:::::X X:::::XXX D:::::D D:::::D
X:::::X X:::::X D:::::D D:::::D
View log.txt
(xdress)~/S/xdress git:clang ❯❯❯ python setup.py build ⬆
XXXXXXX XXXXXXXDDDDDDDDDDDDD
X:::::X X:::::XD::::::::::::DDD
X:::::X X:::::XD:::::::::::::::DD
X::::::X X::::::XDDD:::::DDDDD:::::D
XXX:::::X X:::::XXX D:::::D D:::::D
X:::::X X:::::X D:::::D D:::::D
X:::::X:::::X D:::::D D:::::D
X:::::::::X D:::::D D:::::D