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
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, |
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
{ | |
"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
define([ | |
'js/components/api_targets', | |
'js/components/api_request', | |
'js/widgets/base/base_widget', | |
'hbs!./templates/hopper_template', | |
'bootstrap' | |
], function( | |
ApiTargets, | |
ApiRequest, | |
BaseWidget, |
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
".source.js": | |
"Mocha it()": | |
"prefix": "it(" | |
"body": "it('$1', () => {$2})" | |
"functional component": | |
"prefix": "functional component" | |
"body": """ | |
import React, {PropTypes} from 'react' |
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
var svg = d3.select('svg') | |
var margin = {top: 40, right: 40, bottom: 40, left: 40} | |
var width = svg.attr('width') - margin.left - margin.right | |
var height = svg.attr('height') - margin.top - margin.bottom | |
var g = svg.append('g').attr('transform', 'translate(' + margin.left + ',' + margin.top + ')') | |
var data = d3.range(100000).map(function (n){ | |
if (n % 1000 === 0){ | |
return { x : n, y : n} | |
} |
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
/*eslint no-undef: 0*/ | |
function createChart (svg, data) { | |
// //normalize data | |
// Object.keys(data).forEach((d)=>{ | |
// ["0", "1", "2", "3", "4", "5", "6"].forEach(k=>{ | |
// if (d[k] === undefined) d[k] = | |
// }) | |
// }) |
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 |
OlderNewer