Skip to content

Instantly share code, notes, and snippets.

mansona / clear-github-notifications.js
Created May 12, 2021 22:18
This is a super simple snippet that I paste into my browser console to clear github notifications. Once It has been run once I just push up-enter-up-enter until they are all gone!
let foundStuff = false;
let items = document.querySelectorAll('li.notifications-list-item')
items.forEach((item) => {
if(item.querySelector('img.avatar-user[alt="@dependabot-preview[bot]"]') || item.querySelector('img.avatar-user[alt="@dependabot[bot]"]') || item.querySelector('img.avatar-user[alt="@renovate[bot]"]')) {
console.log('did find one');
foundStuff = true;
CodeMouse92 /
Last active March 6, 2024 06:03 Moderation Comments and Messages



Non-Beginner Article

All articles on #beginners should be written for those new to programming, development, networking, or to a particular language. These posts should also require little to no prerequisite knowledge. If you wish, you may rewrite your post to meet these requirements, at which point you may request that the tag be added back. Otherwise, just use the appropriate technology tags. (Read more about the tag rules here.)

Non-Beginner Question

jayjayjpg /
Last active December 27, 2018 14:30
Submit Your Proposals! JS + Webdev Conferences 2019

Learning JS

Getting Started

  • JavaScript for Web Designers Mat Marquis
  • JavaScript and jQuery by Jon Duckett (protip: take the book to Kinkos and have them spiral bind it)

Leveling Up

  • You Don't Know JS series by Kyle Simpson
  • Up & Going
  • Types & Grammar
MelSumner /
Last active November 20, 2017 18:45
"Why Ember" Thoughts
  • Ember has been around since 2011. It's also not the product it was in 2011, and has adapted/evolved into an experienced, dependable ecosystem.

  • "Safety of the Herd" (article) illustrates that we get to solve more interesting problems when the entire community adheres to a shared set of standards.

  • "How to learn EmberJS in a hurry" (article) illustrates that the Ember learning curve may not be as steep as you think.

  • Ember's testing story is superb, and the core team demonstrated the wisdom that comes only through experience, by making it a core feature that is equally as important as the framework itself.

  • Accessibility- the ember-a11y community and growing collection of addons demonstrates the commitment to the idea that people of all abilities should be able to use the web

JamieMason / annotated-jshintrc.txt
Created June 13, 2014 10:59
An annotated .jshintrc file, based on the docs at
* Tell JSHint about global variables.
"predef": [
slindberg /
Last active August 29, 2015 13:56
Model 'Fragments' in Ember Data
sj26 / parseDuration.js
Created April 20, 2011 06:50
Parses a natural duration string into seconds.
// Try to be as sensible as possible about parsing durations
function parseDuration(duration) {
// .75
if (match = /^\.\d+$/.exec(duration)) {
return parseFloat("0" + match[0]) * 3600;
// 4 or 11.75
} else if (match = /^\d+(?:\.\d+)?$/.exec(duration)) {
return parseFloat(match[0]) * 3600;
// 01:34
} else if (match = /^(\d+):(\d+)$/.exec(duration)) {
katylava /
Last active February 27, 2024 10:18
git selective merge

Update 2022: git checkout -p <other-branch> is basically a shortcut for all this.

FYI This was written in 2010, though I guess people still find it useful at least as of 2021. I haven't had to do it ever again, so if it goes out of date I probably won't know.

Example: You have a branch refactor that is quite different from master. You can't merge all of the commits, or even every hunk in any single commit or master will break, but you have made a lot of improvements there that you would like to bring over to master.

Note: This will not preserve the original change authors. Only use if necessary, or if you don't mind losing that information, or if you are only merging your own work.