Skip to content

Instantly share code, notes, and snippets.

View sefatanam's full-sized avatar
:octocat:
odistro

Sefat Anam sefatanam

:octocat:
odistro
View GitHub Profile
private void DebugOutput(object obj)
{
try
{
System.Diagnostics.Debug.Write(obj + Environment.NewLine);
}
catch (Exception ex)
{
@muhammadawaisshaikh
muhammadawaisshaikh / sample.component.html
Created May 9, 2020 09:26
Creating a Dark & Light Toggle Mode on your Angular App
<div class="text-right">
<div class="custom-control custom-switch">
<mat-checkbox type="checkbox"
class="custom-control-input"
id="darkMode"
[checked]="isThemeDark | async"
(change)="toggleDarkTheme($event)">
<label class="custom-control-label" for="darkMode"></label>
<a class="text-capitalize">Dark Mode</a>
</mat-checkbox>
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active November 13, 2024 00:10
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@JonCole
JonCole / Redis-BestPractices-General.md
Last active October 29, 2024 17:54
Redis Best Practices

Some of the Redis best practices content has moved

This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.

NOTE: Client specific guidance listed below is still valid and should still be considered. I will update this document once all content has been moved.

Comparison of ASP.NET and Node.js for Backend Programming

We will compare ASP.NET and Node.js for backend programming.
Source codes from examples.

Updates

This document was published on 21.09.2015 for a freelance employer. Some changes since then (14.02.2016):

  1. Koa.js no longer uses co-routines, it has switched to Babel's async/await. yield and await are used almost in the same way, so I see no point to rewrite the examples.