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
export function CategoryFlyout({ visible }) { | |
+ // Always render links in the DOM for bots, for SEO purposes | |
+ const renderWhenHidden = currentUser().isBot; | |
+ | |
+ if (!visible && !renderWhenHidden) { | |
+ return null; | |
+ } | |
+ | |
const classes = classNames( | |
'category-flyout', |
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
export function CategoryFlyout({ visible }) { | |
const classes = classNames( | |
'category-flyout', | |
{ 'category-flyout--visible': visible }, | |
); | |
return ( | |
<div className={classes} role="dialog" aria-hidden={!visible}> | |
{/* heading, links, image, etc */} | |
</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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> | |
<title>Chicago Justice Project - Data portal</title> | |
<link href="http://data.chicagojustice.org/site.css" rel="stylesheet" type="text/css" /> | |
<link type="text/css" href="http://data.chicagojustice.org/css/custom-theme/jquery-ui-1.8.15.custom.css" rel="Stylesheet" /> | |
<script type="text/javascript" src="http://data.chicagojustice.org/js/jquery-1.6.2.min.js"></script> | |
<script type="text/javascript" src="http://data.chicagojustice.org/js/jquery-ui-1.8.15.custom.min.js"></script> |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Apiary test</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { margin: 0; } | |
.header, |
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 strict'; | |
const fs = require('fs'); | |
const files = process.argv.slice(2); | |
function transformRow(row, headers) { | |
let outObj = {}; | |
for (let i=0; i<headers.length; i++) { | |
outObj[headers[i]] = row[i]; | |
} |
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
int numSends; // counter to count number of sends to Cloud | |
void setup() { | |
// put your setup code here, to run once: | |
SerialCloud.begin(115200); | |
SerialUSB.begin(9600); | |
SerialUSB.println("Hello Cloud example has started..."); | |
numSends = 0; // count number of sends | |
} |
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 base64 | |
import argparse | |
import httplib | |
import os | |
import sys | |
import time | |
# run 'python event-replay.py -h' to see usage. | |
# set default environment info here if you don't want to put it on the command |
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 dateutil.parser | |
import optparse | |
from Queue import Queue | |
from tempodb.client import Client | |
from tempodb.protocol import DataPoint | |
from threading import Thread | |
class Worker(Thread): | |
"""Thread executing tasks from a given tasks queue""" |
NewerOlder