Skip to content

Instantly share code, notes, and snippets.

View StephaneTy-Pro's full-sized avatar

StephaneTy-Pro

  • France - Northern France - Lille/Tourcoing
View GitHub Profile
@StephaneTy-Pro
StephaneTy-Pro / 0_reuse_code.js
Last active August 29, 2015 14:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@StephaneTy-Pro
StephaneTy-Pro / [javascript] bookmarklet - the missing way to search only your own gists, including sorting by stars or forks.md
Created October 24, 2022 11:07
[javascript] bookmarklet - the missing way to search only your own gists, including sorting by stars or forks

TL;DR

  • base URL is: https://gist.github.com/search
  • use q=user:your_username+your_search_term
  • include s=stars and o=desc to sort by "most stars" (most stars on top, least stars at the end).
  • include s=stars and o=asc to sort by "least stars" (least stars on top, most stars at the end).
  • same goes for s=forks .
  • same goes for s=updated .
  • if you do not include s=, it will sort by "best match" .

2022-10-22_195313