Skip to content

convert ace editor as high resolution images to share

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

yonicd/carbonace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

carbonace

Wanna tweet a pretty screenshot of your code like the pros?

Script inspired from @nujcharee baby 🦈 loop tweet ht @maelle

What it is:

A shiny app that converts the ace editor as high resolution images to share that are as pretty and crisp as carbon, but simplified for R! The app is built on top of a more general package that can snap images of any element in a shiny app called snapper.

Pluses:

  • Do not have to be online
  • Do not have to go to a specific site
  • Host locally with your own R installation
  • Seamlessly move from source editor to image

Minuses:

installation

remotes::install_github('yonicd/carbonace')

How to Run

Rstudio Addin

Highlight text in source editor and then invoke the carbonace addin.

The highlighted text will be used as the initial value

Console

library(carbonace)
carbonace()

init <- "family <- c('Baby','Mommy','Daddy','Grandma','Lets go hunt')

for(f in family){
  if(grepl('hunt',f)){
    print(sprintf('%s!',f))
  }else{
    print(sprintf('%s shark doo doo doo doo!',f))
  }
}

# [1] 'Baby shark doo doo doo doo!'
# [1] 'Mommy shark doo doo doo doo!'
# [1] 'Daddy shark doo doo doo doo!'
# [1] 'Grandma shark doo doo doo doo!'
# [1] 'Lets go hunt!'"

carbonace(init = init)

Changing the mode (language)

Changing the theme

About

convert ace editor as high resolution images to share

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages