ddavison / github-badges Goto Github PK
View Code? Open in Web Editor NEWStar / Fork badges for your GitHub Repository!
Home Page: https://githubbadges.com
License: MIT License
Star / Fork badges for your GitHub Repository!
Home Page: https://githubbadges.com
License: MIT License
Put image inside of the star/fork buttons.
Few requests:
To fix, change 'y' => '12',
to 'y' => '13',
on line 46 of the HAML.
?style=flat
option, as seen on these buttons here:<text x="45" y="15" fill="#010101" fill-opacity=".3">dependencies</text>
<text x="45" y="14">dependencies</text>
It'd be ✨ super cool ✨ if you could choose custom background and text colors, e.g.
http://github-svg-buttons.herokuapp.com/star.svg?background=<HEX-COLOR>&color=<HEX-COLOR>&user=<USERNAME>&repo=<REPONAME>
Badges are down
ChangedenCZD changed to Chans-Open-Source, such as:
http://githubbadges.com/star.svg?user=ChangedenCZD&repo=vue-apis&background=007ecg&color=bbb&style=flat [Internal Server Error]
http://githubbadges.com/star.svg?user=Chans-Open-Source&repo=vue-apis&background=007ecg&color=bbb&style=flat
but this is OK:
https://img.shields.io/github/stars/ChangedenCZD/vue-apis.svg
https://img.shields.io/github/stars/Chans-Open-Source/vue-apis.svg
get '/' do
haml :index
end
!!!
%html
%head
%title Title
%body
...
When trying to access svg, internal server error
Star & fork value numbers have gone missing!
You may have missed my previous comment. Here's what needs to be done:
Regular style: button height = 18 px, rx = 4, font y = 13, shadow y = 14
Flat style: button height = 20 px, rx = 3, font y = 14, shadow y = 15
It's probably better to have two Haml files for these styles, to keep things readable.
add an issues
badge in addition to the stars
and forks
thanks @silverwind
I think it's safe to assume that GitHub's caching assumes a pretty long caching duration when no headers are present.
This cached content shows a 130 hour-long Age
header, which I think is when the content will be re-requested. Following examples of other badges, they provide these cache headers, which pretty much disables any caching:
Cache-Control: no-cache, no-store, must-revalidate
Date: Sun, 24 Aug 2014 09:02:42 GMT
Expires: Sun, 24 Aug 2014 09:02:42 GMT
Move this project to my personal site http://ddavison.io to possibly prevent 500's.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.