Skip to content

Instantly share code, notes, and snippets.

View smouksassi's full-sized avatar

Samer Mouksassi smouksassi

  • Certara Consulting Services
  • Canada/Seattle/Lebanon
  • X @poppkpd
View GitHub Profile
@dracodoc
dracodoc / gg_zoom.R
Last active November 22, 2023 21:02
Launch a Shiny app with your `ggplot2` object, zoom control added: `gg_zoom(g)`
# Launch a Shiny app with your ggplot object, zoom control added: gg_zoom(g)
# Shiny brush event always return numerical values for the zoom box. If the x or y axis is in date, date-time, the zoom box coordinates need to be converted before taken by ggplot.
# https://github.com/hadley/scales/blob/38f81a7b79d98c06edd7d0b624c77b7834db508f/R/trans-date.r
# this will convert date, datetime axes automatically, though it need lubridate to work because the base R equivalent are more cumbersome to use.
library(shiny)
library(ggplot2)
library(lubridate)
ui <- fluidPage(
library(tidyverse)
library(gt)
# create data
df <- data.frame(
stringsAsFactors = FALSE,
player = c("Evan Mobley",
"Sandro Mamukelashvili","Charles Bassey","Luka Garza",
"Moses Wright","Neeimisa Queta",
"Isaiah Jackson","Day'Ron Sharpe"),
@palmerj
palmerj / mk2p.md
Last active May 11, 2024 19:52
MK2+ (Mortal Kombat 2 Plus beta II) Moves and Secrets

Player Moves

These are moves for MK2+ Beta II

Controls Key

Forward: F
Down: D
Back: B
Up: U