Skip to content

Instantly share code, notes, and snippets.

View Floby's full-sized avatar
🐮
Moo

Florent Jaby Floby

🐮
Moo
View GitHub Profile
@sroccaserra
sroccaserra / Analyser_un_repo_de_code.md
Last active February 1, 2022 10:51
Analyser rapidement un répo de code

Git + Bash

Les âges des branches

$ git for-each-ref --sort=authordate --format '%(authordate:relative) %(refname:short)' refs/heads

Les 100 fichiers qui changent le plus souvent

#include "js_api.h"
// Sometimes you want to access the js "this" value in a function
// function Point(x, y) { this.x = x; this.y = y; }
bool point_constructor(js_context* C) {
js_set(C, 0, "x", 1); // this.x = arguments[0]
js_set(C, 0, "y", 2); // this.y = arguments[1]
return true; // js returns undefined, but C returns true meaning no error.
}