GithubHelp home page GithubHelp logo

mgsb / soccer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from md-arif-shaikh/soccer

0.0 0.0 0.0 3.25 MB

Emacs package to get soccer fixtures, results, standing table etc

License: GNU General Public License v3.0

Emacs Lisp 100.00%

soccer's Introduction

Soccer

GitHub release (latest by date) GitHub MELPA MELPA Stable

Table of contents

About the package

Soccer is an Emacs package for getting fixtures, results, standing table, etc for soccer (football) matches inside emacs. Following are some the competitions that are included

  • Premier League (England)
  • La Liga (Spain)
  • Ligue 1 (France)
  • Bundesliga (Germany)
  • Serie A (Italy)
  • Championship (England)

All data are fetched from the guardian website.

Installation and configuration

Install

It’s available in Melpa. Look here for instruction. One can also install it using straight and use-package

(use-package soccer
  :straight (soccer :type git :host github :repo "md-arif-shaikh/soccer"))

Set local time

To get the time and match day converted to your local time configure the following

(setq soccer-time-local-time-utc-offset "+0530")

Keybindings

Additionally you may want to make some keybindings to call the interactive functions conveniently. For example, using use-package this can be done like below,

(use-package soccer
  :straight t
  :config
  (setq soccer-time-local-time-utc-offset "+0530")
  :bind (("C-c s f" . soccer-fixtures-next)
	     ("C-c s r" . soccer-results-last)
	     ("C-c s t" . soccer-table)))

This will fetch and install the package from Melpa, set your local utc-offset and set the above keybindings.

Full working configuration

(use-package soccer
  :straight (soccer :type git :host github :repo "md-arif-shaikh/soccer")
  :init
  :config
  (setq soccer-time-local-time-utc-offset "+0530")
  :bind (("C-c s f" . soccer-fixtures-next)
	     ("C-c s r" . soccer-results-last)
	     ("C-c s t" . soccer-table)))

Useful interactive functions

Call these using M-x Function where Function is any of the following functions

FunctionsActions
soccer-fixtures-nextFixture for the Next match
soccer-fixtures-next-5Fixtures of the Next 5 matches
soccer-fixtures-full-in-orgFull fixtures saved in org file
soccer-fixtures-all-clubsFixtures for all clubs in a league
soccer-results-lastResult of the last match
soccer-results-last-5Results of the last 5 matches
soccer-results-full-in-orgFull list of results in org file
soccer-results-all-clubsResults for all clubs in a league
soccer-tableFull Ranking table
soccer-table-top-4Rank table with top 4 teams
soccer-table-bottom-4Rank table with bottom 4 teams
soccer-scheduleAdd fixtures in org-agenda
soccer-schedule-leagueAdd fixtures for all clubs in a league in org-agenda
soccer-schedule-remove-past-fixturesRemove past fixtures from agenda.

Screenshots

soccer-fixtures-next-5

soccer-fixtures-all-clubs

soccer-results-last-5

soccer-results-all-clubs

soccer-table-top-4

soccer-table-bottom-4

soccer-table

soccer's People

Contributors

md-arif-shaikh avatar mkjunker avatar ciavash 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.