Skip to content

Instantly share code, notes, and snippets.

@Kwonstig
Kwonstig / clades.json
Created June 28, 2023 14:15 — forked from trvrb/clades.json
ncov-clades-schematic
{
"name": "19A",
"color": "#462EB9",
"children": [
{
"name": "20A",
"color": "#4580CA",
"children": [
{
"name": "20B",

Interview Questions

Node.js

Q1: What do you mean by Asynchronous API? ☆☆

Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.

Source: tutorialspoint.com

@igv
igv / adaptive-sharpen.glsl
Last active May 4, 2024 02:13
Optimal sharpening strength (according to objective metrics) - 0.5. Can be applied only to luma channel (change OUTPUT to LUMA). To use it on-demand add the following line to input.conf: n change-list glsl-shaders toggle "~~/adaptive-sharpen.glsl"
// Copyright (c) 2015-2021, bacondither
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer
// in this position and unchanged.
// 2. Redistributions in binary form must reproduce the above copyright
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andrewxhill
andrewxhill / README.md
Last active May 4, 2024 02:06
A list of frameworks for decision making and where they are most helpful.
Framework (starter video) Internal & External Factors Analysis Competitive Environment Analysis Product/Market Growth Strategy Performance Measurement Decision Path Analysis Financial Evaluation Risk Identification & Management Organizational Alignment
SWOT Analysis
PESTLE Analysis
@albertsadday
albertsadday / future-sticky-navigation-with-glas-effect.markdown
Created October 7, 2023 05:05
Future Sticky Navigation with Glas Effect

Future Sticky Navigation with Glas Effect

A really cool modern sticky navigation with a glass effect and a menu button. Only Vanilla JS and (S)CSS.

A Pen by albertsadday on CodePen.

License.

@JT501
JT501 / MyDatabaseTokenRepository.php
Last active May 4, 2024 01:31
Laravel Custom Reset Password Token
<?php
namespace App\Providers\Passwords;
use Illuminate\Auth\Passwords\DatabaseTokenRepository;
class MyDatabaseTokenRepository extends DatabaseTokenRepository
{
/**
* [Override]
@Desani
Desani / ScanMedia.md
Last active May 4, 2024 01:20
3.6 - Corrected issues with determining terminal size in specific use cases. Added file encoding thanks to recommendation by LordKenmou. Fixed update script checker.

This script utilizes ffmpeg, the same tool Plex uses, to decode the video stream and captures the output for any errors during playback and sends the playback errors to a log file. So essentially it plays the video in the background faster than regular speed. It then checks the error output log file to see if there is anything inside. If ffmpeg was able to cleanly play the file, it counts as a passed file. If there is any error output, an error could be anything from a container issue, a missed frame issue, media corruption or more, it counts the file as failed. So if there would be an issue with playback and a video freezing, it would be caught by this method of checking for errors. Because of the nature of the error log, any errors that show up, even simple ones, will all count as a fail and the output is captured so you can view the error log. Some simple errors are easy to fix so I have included an auto-repair feature which attempts to re-encode the file which is able to correct some issues that would cau

@bmaupin
bmaupin / free-database-hosting.md
Last active May 4, 2024 01:18
Free database hosting
@muink
muink / switch-to-WTG.md
Last active May 4, 2024 01:16
普通系统切换为WTG的方法

Windows To Go 与 典型的 Windows 安装的区别

  • 本机磁碟不会自动联机
  • 没有WinRE环境

Windows To Go 的部署过程可以参考我前面的文章

除了以上两个区别,Windows To Go 与传统 Windows 系统的差别在于两个注册表键值BootDriverFlagsPortableOperatingSystem

  • BootDriverFlags 用于控制硬件启动顺序,让系统能在USB介面上启动的最重要的控制项
  • PortableOperatingSystem 用于控制系统是否允许进行更新