Giter VIP home page Giter VIP logo

gist's Introduction

Gist: The Script

Works great with Gist: The Website.

Ported the Ruby script to Python..

Also supports:

  • Passing multiple files as arguments
  • Optionally Read from STDIN
  • Auto file type detection via ext
  • Read support and clone support

Installation

You need to set the GitHub config options to use this properly:
http://github.com/guides/local-github-config

curl http://github.com/davglass/gist/raw/master/gist.py?raw=true > gist
chmod 755 gist
sudo mv gist /usr/local/bin/gist

Usage

#Creates a new Gist
gist file.txt file2.js file3.html

#STDIN - Giving an extension
gist -e .js < myfile

#Debugging - This will print the Gist and not send it
gist -d -e .js < myfile

#Pull the Gist #12345
gist -r 12345

#Clone the Gist #12345
gist -r 12345 -c

Vim shortcut Key

Add these lines to your .vimrc file and you have a new shortcut: Shift + F9 will write the file and create a Gist from it

" Make a Gist of this file..
map <S-F9> :w<CR> :!gist %<CR>

TODO

  • Add directory support

gist's People

Contributors

davglass avatar defunkt avatar jeremybanks avatar sr avatar wuputah avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

pombredanne

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.