Skip to content

Instantly share code, notes, and snippets.

View ncarchedi's full-sized avatar

Nick Carchedi ncarchedi

  • Datafold
  • Denver, CO
View GitHub Profile
@jkubecki
jkubecki / ExportKindle.js
Last active February 25, 2024 00:45
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {
@fredbenenson
fredbenenson / kickstarter_sql_style_guide.md
Last active April 2, 2024 15:19
Kickstarter SQL Style Guide
layout title description tags
default
SQL Style Guide
A guide to writing clean, clear, and consistent SQL.
data
process

Purpose

@navicore
navicore / coinbase.R
Last active February 15, 2018 21:48
oauth2 to coinbase via R
# oauth2 to coinbase via R
# define your oauth2 app to get "Client ID" and "Client Secret" at https://www.coinbase.com/settings/api
appKey="<MY_CLIENT_ID>"
appSecret="<MY_CLIENT_SECRET>"
require(httr)
require(jsonlite)
require(httpuv)
endpoints <- oauth_endpoint(
@trestletech
trestletech / README.md
Last active February 16, 2017 15:24
Shiny Example #4 for Bioconductor

Bioconductor Shiny Example #4

Example Shiny App showing an example of being embedded in a larger, non-Shiny workflow.

This is an example Shiny app featuring some basic analysis of Ovarian Cancer gene expression data collected on the Affymetrix U133A platform. We filter the available genes and samples down to a much smaller matrix to make reproducibility simpler for a broader audience. The R code involved in sampling the data is available in this Gist as an R-Markdown file, and the sampled data are available in this Gist as Rds files.

To run the application, install shiny (install.packages("shiny")) then run the following command:

library(shiny)

@wch
wch / server.r
Last active September 8, 2023 20:25
Shiny example: dynamic input fields
data_sets <- c("mtcars", "morley", "rock")
shinyServer(function(input, output) {
# Drop-down selection box for which data set
output$choose_dataset <- renderUI({
selectInput("dataset", "Data set", as.list(data_sets))
})
# Check boxes