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 python | |
import cherrypy | |
import simplejson | |
def not_found(): | |
resp = cherrypy.response | |
resp.headers['Content-Type'] = 'application/json' | |
resp.status = 404 | |
body = {'success': False, 'code': 404} |
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
################################################################################## | |
# Document Properties Section | |
SET DOCUMENT Name = "InfiniteLoop" | |
SET DOCUMENT Description = "InfiniteLoop" | |
SET DOCUMENT Version = "1.0" | |
################################################################################## | |
# Definitions Section |
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
interface ServiceA {} | |
interface ServiceB {} | |
interface ServiceC {} | |
interface ServiceD {} | |
interface ServiceE {} | |
interface ServiceF {} | |
interface ServiceG {} | |
static Expando getRefs(Integer i, Class<?>... ifaces) { | |
Expando e = new Expando() |
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 ruby | |
require 'redlander' | |
include Redlander | |
class Node | |
def self.finalize_node(rdf_node_ptr) | |
proc { | |
# XXX Uncommenting the following line seems to invalidate the "rdf_node_ptr". Then the librdf_free_node call always succeeds without error. | |
#Redland.librdf_node_get_type(rdf_node_ptr) | |
Redland.librdf_free_node(rdf_node_ptr) |
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
source 'https://rubygems.org' | |
gem 'bel', :git => 'https://github.com/OpenBEL/bel.rb.git' |
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
. | |
├── directories | |
├── Gemfile | |
├── Gemfile.dev | |
├── Gemfile.dev.lock | |
├── Gemfile.lock | |
├── libraries | |
│ └── gemx | |
│ ├── gemx.gemspec | |
│ └── lib |
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
require_relative '../api.rb' | |
require 'rdf/redland' | |
require_relative './triple_iterator.rb' | |
module OpenBEL | |
class Storage | |
include OpenBEL::StorageAPI | |
DEFAULTS = { | |
storage: 'sqlite', |
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 ruby | |
require 'rubygems' | |
require 'rubygems/commands/fetch_command' | |
class Gem::Commands::FetchCommand | |
def add_version_option_with_fetch_depends | |
add_version_option_without_fetch_depends | |
add_option('-y', '--[no-]dependencies', "Fetch dependent gems") do |value, options| | |
options[:dependencies] = value |
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
# | |
# A fatal error has been detected by the Java Runtime Environment: | |
# | |
# SIGSEGV (0xb) at pc=0x00007f4a7c7c7e10, pid=19173, tid=139957912000256 | |
# | |
# JRE version: Java(TM) SE Runtime Environment (7.0_65-b17) (build 1.7.0_65-b17) | |
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops) | |
# Problematic frame: | |
# C [libzmq.so.3+0x26e10] zmq::socket_base_t::process_term(int)+0x80 | |
# |
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
[tony@starship openbel-webtools (master * u=)]$ rm db/development.sqlite3 | |
[tony@starship openbel-webtools (master * u=)]$ rm db/test.sqlite3 | |
[tony@starship openbel-webtools (master * u=)]$ rake db:setup | |
-- create_table("belfiles", {:force=>true}) | |
-> 0.0494s | |
-- initialize_schema_migrations_table() | |
-> 0.1396s | |
You have 3 pending migrations: | |
20140806032021 CreateGraphs | |
20140806032038 CreateNodes |
OlderNewer