Please use the "open block" link to the right to open in a new window, as the current view cuts off an important section of the page.
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
".text.html, .text.php": | |
"template": | |
"prefix": "html" | |
"body": """ | |
<!DOCTYPE html> | |
<html lang="en-us" class="no-js"> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
<meta charset="utf-8"> | |
<title> |
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
define([ | |
'js/components/api_targets', | |
'js/components/api_request', | |
'js/widgets/base/base_widget', | |
'hbs!./templates/hopper_template', | |
'bootstrap' | |
], function( | |
ApiTargets, | |
ApiRequest, | |
BaseWidget, |
Mouse over a node to view the ensuing flow to the right of the diagram.
This diagram combines svg gradients and svg path animation to visualize flow through a sankey diagram.
View the original d3 sankey example.
##D3 Calendar Day View Layout
This script demonstrates a layout algorithm I developed for a day calendar view. The height and y-axis placement of each calendar item are solely determined by its start and end times, but the width and x-axis placement of each item is dependent on how many other items occur during the same time as it.
You can change the layout by adding items using the form to the left, or clicking on items to remove them.
###There are three main steps for the layout calculation:
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
{ | |
"name": "flare", | |
"children": [ | |
{ | |
"name": "analytics", | |
"children": [ | |
{ | |
"name": "cluster", | |
"children": [ | |
{"name": "AgglomerativeCluster", "size": 3938}, |
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
gistup |
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
SOLR_PATH = 'http://localhost:9000/solr/select/' | |
def query_solr(q = '', start = 0, rows = 200, fl = 'bibcode,title,recid,citation_count,year,property', sort = "date desc"): | |
d = {'q' : q, | |
'sort': sort, | |
'fl' : fl, | |
'start' : start, | |
'rows' : rows, |
NewerOlder