Skip to content

Instantly share code, notes, and snippets.

View cgpu's full-sized avatar
:octocat:

Christina Chatzipantsiou cgpu

:octocat:
View GitHub Profile
@cgpu
cgpu / sed cheatsheet
Created September 2, 2019 14:01 — forked from someguynamedmatt/sed cheatsheet
magic of sed -- find and replace "text" in a string or a file
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@cgpu
cgpu / notes.md
Created August 18, 2019 20:39 — forked from teamdandelion/notes.md
SustainOSS Ways to Encourage Contributors - Code of conduct

List of Ways to Help Get New Contributors

Ideas

(Sorted by # of people who voted for each one)

  • Say "Thank You" / Acknowledgement (8)
  • Have website (but website can be a distraction) (8)
  • "Setup social spaces" (8)
  • Good First Issue (7)
  • Status / Recognize status. A way to show/document that someone is a maintainer vs a collaborator (7)
  • Have a fast build (6)
@cgpu
cgpu / README-Template.md
Created June 22, 2019 17:52 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@cgpu
cgpu / ggroc.R
Created June 10, 2019 00:43 — forked from jwaage/ggroc.R
ROC curve using ggplot2 and pROC
ggroc <- function(roc, showAUC = TRUE, interval = 0.2, breaks = seq(0, 1, interval)){
require(pROC)
if(class(roc) != "roc")
simpleError("Please provide roc object from pROC package")
plotx <- rev(roc$specificities)
ploty <- rev(roc$sensitivities)
ggplot(NULL, aes(x = plotx, y = ploty)) +
geom_segment(aes(x = 0, y = 1, xend = 1,yend = 0), alpha = 0.5) +
geom_step() +
---
title: "ggiraph with bar chart tooltips"
author: "hrbrmstr"
date: "`r Sys.Date()`"
output:
html_document:
css: ggiraphe.css
---
The full `Rmd` and `css` files for this are in <a target=_blank href="https://gist.github.com/hrbrmstr/5ee3123f7161580d4cdf">this gist</a>.