Skip to content

Instantly share code, notes, and snippets.

View mehmetsalihyaldiz's full-sized avatar
🎯
Avid Focusing ☠

Mehmet Salih YALDIZ mehmetsalihyaldiz

🎯
Avid Focusing ☠
View GitHub Profile
@munho
munho / left_fn.json
Created June 3, 2020 23:55
Home, End, Page Up, Page Down keys for Logitech K380 (with Logitech Options uninstalled for fn and installed for option)
{
"title": "Home, End, Page Up, Page Down keys for Logitech K380 (with Logitech Options uninstalled)",
"rules": [
{
"description": "Change left arrow + fn to home",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_arrow",
@fgilio
fgilio / axios-catch-error.js
Last active April 11, 2024 19:02
Catch request errors with Axios
/*
* Handling Errors using async/await
* Has to be used inside an async function
*/
try {
const response = await axios.get('https://your.site/api/v1/bla/ble/bli');
// Success 🎉
console.log(response);
} catch (error) {
// Error 😨