Git Product home page Git Product logo

grass_graph's Introduction

grass_graph

Save a PNG image of the specified GitHub grass-graph and upload it to s3 and dropbox.

I inspired this web service:
Grass-Graph / Imaging your GitHub Contributions Graph

Requirements

  • Ruby 2.0+
  • Imagemagick
  • Ghostscript

Installation

git clone https://github.com/rochefort/grass_graph
cd grass_graph
bundle install
bundle exec rake install

Usage

require "grass_graph"

GrassGraph.configure do |config|
  config.github_id = "rochefort"
  config.png_path = "grass-graph.png"

  # Dropbox settings
  # enabled: default false
  config.dropbox.enabled = true
  config.dropbox.access_token = "YOUR_DROPBOX_ACCESS_TOKEN"
  config.dropbox.path = "/grass-graph.png"

  # AWS S3 settings
  # enabled: default false
  # region: default ap-northeast-1
  # acl: accepts private, public-read, public-read-write, authenticated-read
  # cache_control: optional
  config.s3.enabled = true
  config.s3.access_key_id = "YOUR_AWS_ACCESS_ID"
  config.s3.secret_access_key = "YOUR_AWS_SECRET_ACCESS_KEY"
  config.s3.region = "ap-northeast-1"
  config.s3.bucket_name = "YOUR_BUCKET_NAME"
  config.s3.path = "grass-graph.png"
  config.s3.acl = "public-read"
  config.s3.cache_control = "max-age=86400"
end

GrassGraph.save_png

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rochefort/grass_graph.

grass_graph's People

Contributors

rochefort avatar

Stargazers

a-know (Daisuke Inoue) avatar  avatar

Watchers

James Cloos avatar

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.