Skip to content

Instantly share code, notes, and snippets.

View NobleOsinachi's full-sized avatar

Noble Osinachi NobleOsinachi

View GitHub Profile
@NobleOsinachi
NobleOsinachi / Autocomplete.tsx
Created November 21, 2023 06:35 — forked from Seeyko/Autocomplete.tsx
React Autocomplete, with tailwind and daisyui
import React, { useState } from 'react';
const noOptionTitle = "No option !";
const Autocomplete = ({ options, name }: { options: string[], name: string }) => {
const [activeOption, setActiveOption] = useState(0);
const [filteredOptions, setFilteredOptions] = useState(options);
const [showOptions, setShowOptions] = useState(false);
const [userInput, setUserInput] = useState('');
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace GraphQLSampleApp.DataAccess.Entity
{
public class Employee
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
@NobleOsinachi
NobleOsinachi / vscode-macos-context-menu.md
Created April 5, 2023 13:38 — 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 😉
@NobleOsinachi
NobleOsinachi / mac-pain.md
Created March 14, 2023 13:29 — forked from jakub-g/mac-pain.md
MacOS for Windows users: overcoming the annoyances

Introduction

For a long time Windows user, starting using Mac can be an exercise in frustration and keeping your nerves at bay. Many things don't work as expected, need to be activated in some ways, keyboard shortcuts are non-existent or wildly different.

This page is a living reference of a Windows long-timer trying to do basic stuff on a Mac. If you see an easier way to achieve certain things, don't hesitate to drop a comment.

Related links: