Skip to content

Instantly share code, notes, and snippets.

View asonni's full-sized avatar
🏠
Working from home

Aladdin Sonni asonni

🏠
Working from home
View GitHub Profile
@asonni
asonni / vscode-macos-context-menu.md
Created June 23, 2026 11:54 — forked from idleberg/vscode-macos-context-menu.md
“Open in Visual Studio Code” in macOS context-menu

Open in Visual Studio Code

  • Open Automator
  • Create a new document
  • Select Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
    • your default shell should already be selected, otherwise use /bin/zsh for macOS 10.15 (”Catalina”) or later
    • older versions of macOS use /bin/bash
  • if you're using something else, you probably know what to do 😉
@asonni
asonni / deckOfCards.dart
Created November 18, 2025 18:28
Deck of Cards
void main() {
var deck = new Deck();
// print(deck);
// deck.shuffle();
// print('After shuffling:');
// print(deck);
// print('Deck with Spades');
// print(deck.cardsWithSuit('Spades'));
// print('Deck with Hearts');
// print(deck.cardsWithSuit('Hearts'));
@asonni
asonni / 0_reuse_code.js
Created March 26, 2017 07:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console