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
--- | |
title: "Benchmarking database queries" | |
author: "Barbara Borges Ribeiro" | |
date: "June 23, 2016" | |
output: html_document | |
--- | |
```{r setup, include=FALSE} | |
knitr::opts_chunk$set(echo = TRUE) | |
library(DBI) |
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
library(shiny) | |
ui <- fluidPage( | |
sidebarLayout( | |
sidebarPanel( | |
numericInput("steps", "Time steps:", 10, min=1), | |
actionButton("run", label="Start") | |
), | |
mainPanel( | |
textOutput("status") |
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
# ----------------------------------------------------------------- # | |
# ------------- "Exciting" new features in Shiny 1.0.1 ------------ # | |
# ----------------------------------------------------------------- # | |
library(shiny) | |
# 1. ----------------------------------------------- # | |
# ------------------ reactiveVal() ----------------- # | |
# -------------------------------------------------- # | |
ui <- fluidPage( |
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
# By default Shiny will always wait for any reactive dependencies to finish (re)calculcating | |
# before displaying the output that depends on them. Without async reactivity in Shiny (which | |
# is not currently available, but it's in the works), it's actually not really possible to | |
# make a reactive dependency be available before it finishes computing. But you can redefine | |
# your reactive so that its output is broken though. | |
# | |
# You can achieve this using reactive values, an observer and invalidateLater(). If this is | |
# new for you, I'd recommend, you read the documentation about invalidateLater(). | |
# | |
# I'll show two simple examples here. For a more elaborate example, see this gist. |
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
"HOW TO GIVE AN EXCEPTIONALLY GOOD PRESENTATION" | |
CHARACTERS | |
Joe Cheng.............Moderator | |
Jennifer Bryan........As Herself | |
Hadley Wickham........As Himself | |
Aron Atkins...........Audience | |
Derrick Kearney.......Audience |
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
try { | |
const card = buildCard( | |
card, | |
data, | |
filtersAndFormatters, | |
Object.assign({}, settingsAndOptions, { cardIndex }) | |
); | |
return {...card, id: `${card.id}:${cardIndex}`}; | |
} |
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
library(shiny) | |
countries <- c("Australia", "United Kingdom", "United States") | |
flags <- c( | |
"https://cdn.rawgit.com/lipis/flag-icon-css/master/flags/4x3/au.svg", | |
"https://cdn.rawgit.com/lipis/flag-icon-css/master/flags/4x3/gb.svg", | |
"https://cdn.rawgit.com/lipis/flag-icon-css/master/flags/4x3/us.svg" | |
) |
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
# ------------------------------------------------------------------- | |
# ------------------ HIDIND A DATATABLE IN SHINY -------------------- | |
# ------------------------------------------------------------------- | |
# ------------------------------------------------------------------- | |
# --- EXAMPLE 1: this sets the datatable's underlying dataframe to -- | |
# --- NULL, inside a reactive (recalculated whenever a checkbox is -- | |
# --- clicked). While this does result in the datatable disappearing | |
# --- from view, the height does not show --------------------------- |
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
<html> | |
<head> | |
<title>Wonderful Task Manager</title> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> |
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
const express = require("express"); | |
const cors = require("cors"); | |
const reservations = [ | |
{ | |
reservaID: 1, | |
usuarioID: 1, | |
salaID: 1, | |
data: "2020-01-31", | |
horaEntrada: "2020-01-31T10:00:00", |
OlderNewer