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
Content-Type: multipart/mixed; boundary=OntologiesAPIMultipartPost; type=application/json; start=json | |
Content-Length: 328853 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 "github.com/palexander/goumls" | |
import "log" | |
func main() { | |
// Filters for queries | |
rxnorm := toEntries("RXNORM") | |
rxnormTTY := toEntries("IN", "BN") | |
expandedTTY := toEntries("AB", "PT", "SY") |
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
def time_code(name, &block) | |
t1 = Time.now | |
yield | |
puts "#{name}: #{(Time.now - t1).to_f.round(2)}s" | |
end | |
def time_code_aggregate(name, &block) | |
unless @tc_at_exit | |
at_exit do | |
@tc_timers.each do |name, time| |
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
jQuery(document).ready(function(){ | |
var url = "/#TB_inline?height=400&width=600&inlineId=not_browsable_content&modal=true" | |
tb_show("", url); | |
}); |
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
<div id="not_browsable_content" style="display:none;"> | |
<p>Text for display in modal Thickbox.</p> | |
</div> |
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
# The redirect controller allows for routes-based redirects | |
# as we move old content to new URL locations. | |
class RedirectController < ApplicationController | |
def index | |
if params[:url] # We were provided with a url to redirect to | |
params_string = "" | |
# Trigger to switch the placeholders | |
first_param = true | |
# Loop through the given params, ignore ones we know about or are provided by default |
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
jQuery("#autocomplete").autocomplete(data, { | |
onFindValue: jumpToValue, | |
onItemSelect: jumpToSelect, | |
formatItem: formatItem | |
footer: '<div style="color: grey; font-size: 8pt; font-family: Verdana; padding: .8em .5em .3em;">Results provided by <a style="color: grey;" href="http://bioportal.bioontology.org">NCBO BioPortal</a></div>', | |
}); |
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
Jun 27, 2010 10:15:56 PM org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildren | |
SEVERE: Exception invoking periodic operation: | |
java.lang.OutOfMemoryError: GC overhead limit exceeded | |
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:114) | |
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306) | |
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570) | |
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559) | |
at java.lang.Thread.run(Thread.java:619) | |
Jun 27, 2010 10:16:42 PM org.apache.tomcat.util.net.AprEndpoint$Acceptor run | |
SEVERE: Socket accept failed |
OlderNewer