Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware | |
deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware | |
deb http://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware | |
deb http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware |
This article describes how to record audio using the Web Audio API in JavaScript. The related resources are shown below.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
📌 Get Bagisto eCommerce Platform Setup Telegram: https://t.me/LinuxGun | |
📌 Email: linuxguns@gmail.com | |
I'll do installation process of Bagisto, a powerful Laravel-based eCommerce platform. Whether you're new to eCommerce or an experienced developer, shop owner Bagisto provides a flexible and scalable solution to build your online store. Bagisto eCommerce Platform Installation Supports | #Bagisto | |
Bagisto simplifies the process of creating feature-rich online stores with its modular approach, making it easy to customize and extend according to your business needs. Plus, it's built on Laravel, a popular PHP framework known for its elegant syntax and developer-friendly environment. Bagisto eCommerce Platform Installation Supports | #Bagisto | |
💰 Want to hire me for Bagisto eCommerce Platform Support? Hire me | |
🤔 Need to know more about Bagisto eCommerce Platform Support!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Class with static methods to encode/decode Hamming code | |
* with even parity in the 31-26 format, | |
* which is at most 26 data bits with 5 parity bits. | |
*/ | |
public class HammingCode { | |
public static int encode(int msg) { | |
int bitThree = (msg & 0x1) << 2; | |
int bitsFiveToSeven = (msg & 0xe) << 3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script found at https://superuser.com/a/997448 | |
# Swap details found at https://www.mavjs.org/post/swap-ctrl-and-capslock-on-windows | |
# Improvement provided by Davido264 in comment below | |
$hexified = "00,00,00,00,00,00,00,00,03,00,00,00,1d,00,3a,00,3a,00,1d,00".Split(',') | % { "0x$_"}; | |
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout'; | |
$scancodeMap = Get-ItemProperty -Path $kbLayout -Name "Scancode Map" -ErrorAction Ignore | |
if ( -not $scancodeMap ) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function swap_worktree_branch_with() { | |
# Run the command again to get the error message | |
error_message=$(git switch $1 2>&1) | |
culprit_worktree=$(echo $error_message | grep "is already used by worktree at" | cut -d "'" -f4) | |
if [ -z "$culprit_worktree" ]; then | |
return | |
fi | |
# Save the branch in current worktree, and detach the HEAD so that we can switch to this branch in the culprit worktree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gpt3__whatgpt3 { | |
display: flex; | |
flex-direction: column; | |
padding: 2rem; | |
background: var(--color-footer); | |
/* ff 3.6+ */ | |
background:-moz-radial-gradient(circle at 30% -100%, #042c54 25%, rgba(4, 44, 84, 1) 85%, rgba(27, 120, 222, 1) 100%); |
NewerOlder