Giter Site home page Giter Site logo

gist-it's Introduction

icon

Open source Android gist API client written in Scala.

The Android app uses the new github api to provide a "send to gist" feature for most applications which have a "Send" or "Share" menu.

Check the following screenshot to get an idea of the flow (this example uses the ColorNote Notepad app)

flow

By default gists are created anonymously - you can add your github account using Android's "Accounts & Sync" settings or follow the instructions in the gist app itself.

With an associated account you also have the ability to edit existing gists - Use "Load gist" from the menu, make changes and upload it again.

Usage from other apps

If your are developing an Android app and want to make use of the gist api you can do so with intents. At the moment there are two actions exposed:

picking/loading a gist

Intent intent = new Intent("com.zegoggles.gist.PICK");
intent.putExtra("load_gist", false); // load gist content, defaults to true
startActivityForResult(intent, 0)

uploading a gist

startActivityForResult(new Intent("com.zegoggles.gist.UPLOAD")
    .putExtra(Intent.EXTRA_TEXT, "text123")
    .putExtra("public", false)
    .putExtra("description", "testing gist upload via intent"), 0);

Building from source

You need sbt (simple-build-tool, >= 0.11.2 ) in order to build the project,

$ export ANDROID_HOME=/path/to/sdk # or ANDROID_SDK_{HOME,ROOT}
$ sbt android:package-debug

To run tests:

$ sbt test

Pull requests welcome, especially the design needs some love (hint, hint).

Credits / License

See LICENSE. Post it graphic by christianalm.

gist-it's People

Contributors

jberkel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gist-it's Issues

Trying to authorize an account leads to a 404 page

Phone: SE Xperia X10, Android 2.1

Steps to reproduce:

  1. Go to the android accounts & synchronization settings
  2. Tap 'add account'
  3. Tap 'gist-it'
  4. Log in to github in the browser view that pops up

Result:

After authorization, I'm redirected to a 404 page on 'Ze Goggles'.

Please add support for utf8

When I upload a gist containing non-ascii utf8 characters, they end up as question marks in the uploaded gist.

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.