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
(function (global) { | |
// YOUR LIST OF TOOLS - REPLACE THE 'XXXXXXXXXX' WITH YOUR OPTIMIZELY PROJECT ID | |
var yourTools = [ | |
{tool: "None" }, | |
{ | |
tool: "optimizely", | |
projectID: "XXXXXXXXXX" |
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 gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var notify = require('gulp-notify'); | |
var sass = require('gulp-ruby-sass'); | |
var autoprefix = require('gulp-autoprefixer'); | |
var minifyCSS = require('gulp-minify-css') | |
var coffee = require('gulp-coffee'); | |
var exec = require('child_process').exec; | |
var sys = require('sys'); |
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 ZwiftConnection = require('zwift-mobile-api'); | |
var zwiftAccount = new ZwiftConnection(process.env.ZWIFT_USERNAME, process.env.ZWIFT_PASSWORD); | |
var axios = require('axios'); | |
var Q = require('q'); | |
try { | |
var world = zwiftAccount.getWorld(1); | |
} | |
catch (err) { | |
res.sendStatus(500); |
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
<template> | |
<div class="container-fluid"> | |
<navigation :race="race"/> | |
<transition name="fade"> | |
<div v-if="loading" style="position:fixed" class="animated yt-loader"></div> | |
</transition> | |
<div class="row content"> | |
<div class="race-header"> | |
<div class="relative-start"> | |
<span class="badge live-alert" style="font-style:normal;" v-if="isLive(race)">LIVE!</span> |
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
-- What are the stations in a variety of neighborhoods that have a lot of bikes, often run out and often get replenished? | |
with variability as ( | |
select | |
borough, | |
hood, | |
station_name, | |
station_id, | |
max(available_bikes) as max_bikes, | |
sum(case when available_bikes = 0 then 1 else 0 end) as times_no_bikes, | |
sum(case when available_docks = 0 then 1 else 0 end) as times_replenished |