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 svg_to_icns(){ | |
# Dependencies | |
# $ brew install png2ico | |
# $ brew install svg2png | |
# | |
# Usage example | |
# $ svg2png -V | |
# 0.1.3 | |
# | |
# $ png2ico -V |
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
// Prevents additional console window on Windows in release, DO NOT REMOVE!! | |
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] | |
pub mod sidecar_lifecycle_service; | |
use std::sync::Mutex; | |
use tauri_plugin_log::LogTarget; | |
use tauri::{Manager, State, WindowEvent}; | |
use sidecar_lifecycle_service::SidecarLifeCycleService; |
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
#!/bin/bash | |
set -e | |
########################## | |
# New macOS setup script # | |
########################## | |
USER_EMAIL="<YOUR EMAIL>" | |
USER_NAME="<YOUR_NAME>" | |
# SSH |
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
'use client'; | |
import { useHydrate } from 'use-hydrate'; | |
import { setData } from './redux/my.slice'; | |
import { selectData } from './redux/data.selector'; | |
interface Props { | |
existing?: MyData[] | |
} |
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
import React, { ReactNode, use } from 'react'; | |
interface Props { | |
params: { | |
id: string; | |
}, | |
children: ReactNode; | |
} |
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
import { ActionCreatorWithPayload } from '@reduxjs/toolkit'; | |
import { useEffect } from 'react'; | |
import { useDispatch, useSelector } from 'react-redux'; | |
interface Props< | |
TValue, | |
TAction extends ActionCreatorWithPayload<TValue>, | |
// eslint-disable-next-line @typescript-eslint/no-explicit-any | |
TSelector extends (state: any) => TValue |