├── index.md
├── images
├── demo.png
├── main_screenshot.png
├── update_screenshot.png
└── CodeCogsEqn.svg
├── .gitignore
├── Gemfile
├── _config.yml
├── .github
├── ISSUE_TEMPLATE
│ ├── feature_request.md
│ └── bug_report.md
└── workflows
│ └── jekyll.yml
├── LICENSE
├── README.md
├── _layouts
├── home.html
└── default.html
├── _includes
└── custom.scss
└── _plugins
└── top_users_tag.rb
/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: home
3 | title: Inicio
4 | ---
5 |
6 | # hola
7 |
8 | hello
--------------------------------------------------------------------------------
/images/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/joelibaceta/top-coders-peru/HEAD/images/demo.png
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | _site
2 | .sass-cache
3 | .jekyll-metadata
4 | .DS_Store
5 | .jekyll-cache
6 | site
7 | top_users_data.json
--------------------------------------------------------------------------------
/images/main_screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/joelibaceta/top-coders-peru/HEAD/images/main_screenshot.png
--------------------------------------------------------------------------------
/images/update_screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/joelibaceta/top-coders-peru/HEAD/images/update_screenshot.png
--------------------------------------------------------------------------------
/Gemfile:
--------------------------------------------------------------------------------
1 | source 'https://rubygems.org'
2 |
3 | gem 'jekyll'
4 | gem 'minima'
5 | gem "kramdown", ">= 1.14.0"
6 | gem 'jekyll-seo-tag'
7 |
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | title: Top Coders Peru
2 | theme: minima
3 | tagline: "Peruvian developers ranking based on github stats"
4 | description: "Peruvian developers ranking based on github stats"
5 | url: "https://joelibaceta.github.io/top-coders-peru/"
6 | author: "Joel Ibaceta"
7 | locale: "es-PE"
8 | plugins:
9 | - jekyll-seo-tag
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Desktop (please complete the following information):**
27 | - OS: [e.g. iOS]
28 | - Browser [e.g. chrome, safari]
29 | - Version [e.g. 22]
30 |
31 | **Smartphone (please complete the following information):**
32 | - Device: [e.g. iPhone6]
33 | - OS: [e.g. iOS8.1]
34 | - Browser [e.g. stock browser, safari]
35 | - Version [e.g. 22]
36 |
37 | **Additional context**
38 | Add any other context about the problem here.
39 |
--------------------------------------------------------------------------------
/.github/workflows/jekyll.yml:
--------------------------------------------------------------------------------
1 | name: Jekyll site CI
2 |
3 | on:
4 | push:
5 | branches: [ master ]
6 | pull_request:
7 | branches: [ master ]
8 | schedule:
9 | - cron: "0 0 * * *"
10 | env:
11 | ENV_LOCATION: "location:lima+location:peru"
12 |
13 | jobs:
14 | build:
15 |
16 | runs-on: ubuntu-latest
17 |
18 | steps:
19 | - uses: actions/checkout@v2
20 | - name: Build the site in the jekyll/builder container
21 | run: |
22 | docker run -e GH_ACCESS_TOKEN="${{ secrets.GH_ACCESS_TOKEN }}" -e LOCATION="$ENV_LOCATION" \
23 | -v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
24 | jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
25 |
26 | - name: Deploy to gh-pages
27 | uses: JamesIves/github-pages-deploy-action@v4
28 | with:
29 | branch: gh-pages # The branch the action should deploy to.
30 | folder: ${{ github.workspace }}/_site # The folder the action should deploy.
31 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Joel Ibaceta
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Top Coders Perú
2 | Based on Github Stats
3 |
4 |
5 |
6 | [](https://topcoders.pe/)
7 |
8 |
9 |
10 | ## ¿Cómo se calcula el Raking?
11 |
12 | Para generar el ranking se realiza un calculo del indice rockstar, considerando las siguientes variables:
13 |
14 | - Popularidad (_Número de seguidores_)
15 | - Impacto (_Número de estrellas en repositorios propios_)
16 | - Actividad (_Número de commits en el ultimo año_)
17 | - OpenSource (_Numero de proyectos personales publicos_)
18 |
19 | El indice de cada una de estas variables se divide entre el maximo general encontrado para cada variable, esto permitira obtener un indice relativo al total de la muestra.
20 |
21 |
22 |
23 | 
24 |
25 |
26 |
27 | ## ¿Cómo funciona?
28 |
29 | La pagina esta basada en Jekyll para la generacion de contenido estatico y de Travis CI para la generacion automatica de nuevos deploys cada dia, manteniendo actualizada la información del ranking.
30 |
31 | ## ¿Como Contribuir?
32 |
33 | 1. Crear un issue con la descripcion de la contribucion
34 | 2. Hacer un fork del proyecto
35 | 3. Hacer los cambios y enviar un Pull Request
36 |
37 | ### Para iniciar el proyecto localmente necesitas
38 |
39 | - Ejecutar `bundle install`
40 | - Ejecutar `jekyll build`
41 | - Podras ver el sitio web generado en la carpeta `_site`
42 | - Definir las siguientes variables de entorno: `CLIENT_ID` y `CLIENT_SECRET` puedes obtener tus credenciales de la siguiente manera https://developer.github.com/v3/guides/basics-of-authentication/
43 |
44 |
45 |
--------------------------------------------------------------------------------
/_layouts/home.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | ---
4 |
5 |
6 |
58 |
59 | {% top_users %}
60 |
--------------------------------------------------------------------------------
/_layouts/default.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |