Skip to content

Instantly share code, notes, and snippets.

View ClaudiuPapasteri's full-sized avatar

Claudiu Papasteri ClaudiuPapasteri

  • University of Bucharest
  • Bucharest
View GitHub Profile
@atmccann
atmccann / airbus_data.tsv
Created February 12, 2014 23:08
Animated path multi-series line chart
date Airbus Boeing
2000-07-31 0 0
2000-08-31 -0.884 9.8912
2000-09-29 9.6685 32.1383
2000-10-31 32.5967 38.9245
2000-11-30 33.1492 41.4853
2000-12-29 30.7182 35.2113
2001-01-31 27.0718 19.8464
2001-02-28 24.3094 27.4264
2001-03-30 16.0773 14.1306
@trestletech
trestletech / server.R
Last active August 1, 2022 14:12
Sample Shiny application demonstrating usage of Shiny Server Pro's authentication feature to customize the app according to the privileges of the logged-in user.
library(shiny)
library(ggplot2)
# Get the current day of the month
dom <- 25
# Define the target for salespeople in our organization.
salesTarget <- 15000
# Set the seed so we always get the same data.
@daattali
daattali / app.R
Last active October 11, 2022 09:04
Basic form-submission shiny app used in "Persistent data storage in shiny apps" article http://deanattali.com/blog/shiny-persistent-data-storage/
library(shiny)
# Define the fields we want to save from the form
fields <- c("name", "used_shiny", "r_num_years")
# Save a response
# ---- This is one of the two functions we will change for every storage type ----
saveData <- function(data) {
data <- as.data.frame(t(data))
if (exists("responses")) {
@jbryer
jbryer / 2013-08-B.txt
Created February 21, 2016 18:14
ShinyAssessmentTest
From San Francisco to New York to Paris, city governments, high-class restaurants,
schools, and religious groups are ditching bottled water in favor of what comes out of the
faucet. With people no longer content to pay 1,000 times as much for bottled water, a
product no better than water from the tap, a backlash against bottled water is growing.
(5) The U.S. Conference of Mayors, which represents some 1,100 American cities,
discussed at its June 2007 meeting the irony of purchasing bottled water for city employees
and for city functions while at the same time touting1 the quality of municipal water. The
group passed a resolution sponsored by Mayors Gavin Newsom of San Francisco, Rocky
Anderson of Salt Lake City, and R. T. Rybak of Minneapolis that called for the examination
(10) of bottled water’s environmental impact. The resolution noted that with $43 billion a year
@daob
daob / bvr_polca.R
Created August 1, 2017 18:26
Calculate Bivariate Residuals (BVRs) for latent class models in R (poLCA)
# Author: Daniel Oberski
# Date: 2017-08-01
# Bivariate residual statistic for latent class analysis
# Calculate the BVR for poLCA objects
# Argument: a poLCA object
# Value: a dist object with BVRs
# Example: bvr(fit)
@mjsqu
mjsqu / README.md
Created November 26, 2018 09:39 — forked from DStruths/README.md
d3.js Multi-series line chart interactive

Please note, data will be randomised until December 2014. It is based on Ipsos MORI's long term Issues Index survey 1974 - 2014.

@jobdiogenes
jobdiogenes / demo-of-use-google-drive-sheets-in-r-with-google-colaboratory.ipynb
Last active November 29, 2022 02:54
Demo of use Google Drive/Sheets in R with Google Colaboratory.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@claudiu-stanciu
claudiu-stanciu / exercises.md
Last active April 11, 2021 19:41
Exercises