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
package main | |
import ( | |
"flag" | |
"fmt" | |
"github.com/tv42/birpc" | |
"github.com/tv42/birpc/jsonmsg" | |
"net" | |
) |
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
#!/usr/bin/env py.test | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import sessionmaker | |
from sqlalchemy import create_engine, Column | |
from sqlalchemy_utils.types.arrow import ArrowType | |
import arrow | |
Base = declarative_base() |
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
#!/usr/bin/env py.test | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import sessionmaker | |
from sqlalchemy import create_engine, Column, DateTime | |
import arrow | |
Base = declarative_base() |
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
2014-02-13 16:51:26,231 INFO sqlalchemy.engine.base.Engine select version() | |
2014-02-13 16:51:26,231 INFO sqlalchemy.engine.base.Engine {} | |
2014-02-13 16:51:26,232 INFO sqlalchemy.engine.base.Engine select current_schema() | |
2014-02-13 16:51:26,232 INFO sqlalchemy.engine.base.Engine {} | |
2014-02-13 16:51:26,234 INFO sqlalchemy.engine.base.Engine SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1 | |
2014-02-13 16:51:26,234 INFO sqlalchemy.engine.base.Engine {} | |
2014-02-13 16:51:26,235 INFO sqlalchemy.engine.base.Engine SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1 | |
2014-02-13 16:51:26,236 INFO sqlalchemy.engine.base.Engine {} | |
2014-02-13 16:51:26,236 INFO sqlalchemy.engine.base.Engine show standard_conforming_strings | |
2014-02-13 16:51:26,236 INFO sqlalchemy.engine.base.Engine {} |
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
LOG: unexpected EOF on client connection with an open transaction | |
LOG: unexpected EOF on client connection with an open transaction | |
LOG: unexpected EOF on client connection with an open transaction | |
LOG: unexpected EOF on client connection with an open transaction | |
LOG: unexpected EOF on client connection with an open transaction | |
LOG: unexpected EOF on client connection with an open transaction | |
LOG: unexpected EOF on client connection with an open transaction | |
LOG: unexpected EOF on client connection with an open transaction | |
LOG: unexpected EOF on client connection with an open transaction | |
LOG: unexpected EOF on client connection with an open transaction |
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
import boto.mturk.question as q | |
def test_boto(): | |
binary = q.Binary('image','png','http://example.com/example.png','alt') | |
overview = q.Overview() | |
overview.append_field("Binary", binary) | |
print "Overview:" | |
print overview.get_as_xml() | |
# XML contains <boto.mturk.question.Binary object at 0x10abd2190> |
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
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import Column, ForeignKey, Integer, String | |
from sqlalchemy import create_engine | |
from sqlalchemy.orm import sessionmaker, relationship | |
Base = declarative_base() | |
class Parent(Base): | |
__tablename__ = 'parent' | |
id = Column(Integer, primary_key=True) |
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
$ opam install eliom -v | |
The following actions will be performed: | |
- install pcre-ocaml.7.0.4 [required by eliom] | |
- install react.0.9.4 [required by eliom] | |
- install ssl.0.4.7 [required by eliom] | |
- install menhir.20130912 [required by eliom] | |
- install optcomp.1.6 [required by eliom] | |
- install lwt.2.4.3 [required by eliom] | |
- install ocamlnet.3.7.4 [required by eliom] | |
- install deriving-ocsigen.0.5 [required by eliom] |
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
boot/ocamlrun boot/ocamlc -nostdlib -I boot -strict-sequence -w +33..39 -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c bytecomp/dll.mli | |
boot/ocamlrun boot/ocamlc -nostdlib -I boot -strict-sequence -w +33..39 -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c bytecomp/dll.ml | |
boot/ocamlrun boot/ocamlc -nostdlib -I boot -strict-sequence -w +33..39 -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c bytecomp/symtable.mli | |
boot/ocamlrun boot/ocamlc -nostdlib -I boot -strict-sequence -w +33..39 -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c bytecomp/symtable.ml | |
boot/ocamlrun boot/ocamlc -nostdlib -I boot -strict-sequence -w +33..39 -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c bytecomp/bytelink.mli | |
boot/ocamlrun boot/ocamlc -nostdlib -I boot -strict-sequence -w +33..39 -warn-error A -I utils -I parsing |
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
$ opam install -v menhir | |
The following actions will be performed: | |
- install menhir.20130912 | |
1 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove | |
=-=-= Installing menhir.20130912 =-=-= | |
Building menhir.20130912: | |
make install PREFIX=/Users/nick/.opam/system docdir=/Users/nick/.opam/system/doc/menhir libdir=/Users/nick/.opam/system/lib/menhir mandir=/Users/nick/.opam/system/man/man1 | |
rm -f src/installation.ml | |
echo "let libdir = \"/Users/nick/.opam/system/lib/menhir\"" > src/installation.ml |