Skip to content

Instantly share code, notes, and snippets.

@paulmillr
paulmillr / active.md
Last active April 19, 2025 17:31
Most active GitHub users (by contributions). https://paulmillr.com

Most active GitHub users (git.io/top)

The list would not be updated for now. Don't write comments.

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.

Because of GitHub search limitations, only 1000 first users according to amount of followers are included. If you are not in the list you don't have enough followers. See raw data and source code. Algorithm in pseudocode:

githubUsers
@demisx
demisx / angularjs-providers-explained.md
Last active December 26, 2024 05:39
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes

Constant

@ayoola-solomon
ayoola-solomon / fellows.js
Last active March 13, 2016 13:03
Refactoring a nodejs function
var peers = function(req, res) {
var peers = [];
models.Fellow
.findById(req.params.id)
.then(function(fellow) {
if (fellow) {
switch (fellow.level) {
case 'D0A - MONTH ONE':
case 'D0B - SIMULATIONS':
case 'D0C - SIMULATIONS':
var teamAndCohortPeerLevels = ['DOA - MONTH ONE','D0B - SIMULATIONS','D0C - SIMULATIONS'];
var peerLevels = ['D1 Jr Consultant','D2 Consultant','D2 Consultant','D2 Consultant'];
var handleError = function(err,res) {
logger.error(err);
res.status(500).json(err);
};
var createPeersFromFellows = function(fellows,peers,fellow) {
_.each(fellows, function(peer) {
if (peer.uid !== fellow.uid) {
peers.push(peer);