Giter Club home page Giter Club logo

gitr's Introduction

gitr.

What's a gitr?

gitr. is a chrome extension that helps you discover unique and interesting projects hosted on GitHub.

How do I install it?

Download the extension from the Chrome Web Store. Or, if you're really adventurous, run it on your local machine! Here's how to do that.

You'll first need to download the dart language sdk. It can be found here.

Next, open up the file located in ext/src/js/popup/ named popup.js.

Change the following block:

chrome.tabs.getSelected(null, function(tabs) {
	$.ajax('http://localhost:8080/api/stumble/v1/github?languages=' + langs).success(function(data) {
	  var url = data[getRandomIndex(data.length)]['url'];
		chrome.tabs.update(tabs.id, {
			url: url
		});
		$('.spinner').hide();
	});
});

to this:

chrome.tabs.getSelected(null, function(tabs) {
	$.ajax('http://localhost:8080/api/stumble/v1/github?languages=' + langs).success(function(data) {
	  var url = data[getRandomIndex(data.length)]['url'];
		chrome.tabs.update(tabs.id, {
			url: url
		});
		$('.spinner').hide();
	});
});

Now navigate to the directory api in your terminal.

Execute the command pub get to gather all of the dependencies for the project. Now execute the command dart stumble.dart to start the webserver on port 8080.

Now you can install the extension through the Chrome extensions page. You do this by enabling developer mode within the Chrome extensions page, loading an unpacked extension, and selecting the ext/ directory.

How do I use it?

It's easy! Just navigate to any page on GitHub (even this one) and look up in your address bar. You should see a purple circle. Click that, and then the settings cog. After you set your language preferences, close the settings popup, and click Git!!. It will do some behind the scenes magic and take you to a random repository matching your interests! Pretty neat!

This extension sucks, make it better!

Great! It could be better! Click that fork button in the top corner and submit a pull request!

gitr's People

Contributors

joecheatham avatar morganzellers avatar jacobbaird avatar thelyinglink avatar

Stargazers

Gabe Maurer avatar

Watchers

James Cloos avatar  avatar  avatar Gabe Maurer avatar

Forkers

gmaurer

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.