Skip to content

Instantly share code, notes, and snippets.

@stla
stla / tabs.css
Created August 5, 2021 10:03 — forked from lemiant/tabs.css
CSS for Bootstrap tabs
/*
* This is the compiled css for Bootstrap tabs and pills.
* Compiled from bootstrap 2.3.2 (less/navs.less)
*/
.clearfix {
*zoom: 1;
}
.clearfix:before,
.clearfix:after {
@stla
stla / json-normalize.js
Created July 4, 2021 09:00 — forked from dfkaye/json-normalize.js
normalize a JSON string (add correct quotes, remove comments, blank lines, and so on)
// 22 Feb 2020 TODO:
// needs trailing comma fix (allow trailing comma in arrays and object literals).
// see JWCC at https://nigeltao.github.io/blog/2021/json-with-commas-comments.html
export { normalize };
// var normalize = (function() {
// ///////////////////////////////////////////////////
// REVISE THIS FILE, PUT THE MAIN FUNCTION AT TOP,
@stla
stla / server.R
Created May 10, 2014 20:30 — forked from withr/server.R
shinyServer(function(input, output) {
datasetInput <- reactive({
switch(input$dataset,
"rock" = rock,
"pressure" = pressure,
"cars" = cars)
})
output$caption <- renderText({