GithubHelp home page GithubHelp logo

golang-design / code2img Goto Github PK

View Code? Open in Web Editor NEW
78.0 5.0 7.0 18.51 MB

🖨️ A carbon-now API wrapper and iOS Shortcut

Home Page: https://golang.design/s/code2img

License: GNU General Public License v3.0

Dockerfile 5.41% Makefile 5.37% Go 89.21%
shortcuts ios-shortcut carbon wrapper golang go

code2img's Introduction

code2img PkgGoDev

A carbon-now wrapper for Go users and supports for iOS Shortcut

import "golang.design/x/code2img"

API Usage

Just one API code2img.Render, to use it (see main.go):

Service Usage

iOS Shortcut

Basic usage notes:

  • Get the shortcut from here: https://www.icloud.com/shortcuts/6ac8f9afc47e4b109bca81648c59e2f4
  • The shortcut also writes a URL back to your clipboard, you can paste the link to your browser for a better copy experience.
  • Remember: Keep your life simple. Keep in mind that you do not upload more than 50 lines of code. Otherwise, no one wants to read it :)

Demo:

Server API

POST golang.design/api/v1/code2img
{
    "code": "code string"
}

Response pure text (better for iOS shortcut):

https://golang.design/api/v1/code2img/data/images/06ad29c5-2989-4a8e-8cd2-1ce63e36167b.png

You can also access the code text:

https://golang.design/api/v1/code2img/data/code/06ad29c5-2989-4a8e-8cd2-1ce63e36167b.go

Deploy Instructions

make
make up

License

© 2020-2021 The golang.design Initiative Authors.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.