Skip to content

Instantly share code, notes, and snippets.

View nguyenvanhoangnhan's full-sized avatar
☁️
Buying a Stairway to Heaven

Nhân Nguyễn nguyenvanhoangnhan

☁️
Buying a Stairway to Heaven
View GitHub Profile
@jetfir3
jetfir3 / tmpdevmodify.sh
Last active January 4, 2025 00:51
Temporarily enable developer mode for the Spotify desktop client on Linux and macOS.
#!/usr/bin/env bash
# Temporarily enable developer mode for the Spotify desktop client on Linux and macOS.
showHelp () {
echo -e \
"Usage: ./tmpdevmodify.sh [option]\n
Options:
-c, --clearcache Clear Spotify app cache
-d, --debug Add Debug Tools to user dropdown menu
@hibiyasleep
hibiyasleep / GodDrinksJava.java
Last active February 26, 2025 15:57
world.execute(me);
package goddrinksjava;
/**
* The program GodDrinksJava implements an application that
* creates an empty simulated world with no meaning or purpose.
*
* @author momocashew
* @lyrics hibiyasleep
*/
@parmentf
parmentf / GitCommitEmoji.md
Last active March 5, 2025 18:01
Git Commit message Emoji
@gchudnov
gchudnov / cpp_utf8_utf16.cpp
Created November 6, 2014 19:33
C++ string conversion UTF8 <-> UTF16
#include <string>
#include <locale>
#include <codecvt>
//UTF-8 to UTF-16
std::string source;
//...
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>,char16_t> convert;
std::u16string dest = convert.from_bytes(source);