Skip to content

Instantly share code, notes, and snippets.

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

Atlas Koray siniradam

🏠
Working from home
View GitHub Profile
@siniradam
siniradam / VSCodeFileNesting.md
Last active May 5, 2023 18:27
You can group config files like a folder to declutter your vscode file explorer, here is my take for sveltekit.

VSCode File Nesting / File Grouping

If you go to your VSCode defaultSettings.json you'll see explorer.fileNesting.patterns key, turns out VSCode can group files based on some patterns.

Here is that section;

	// Controls nesting of files in the Explorer. `explorer.fileNesting.enabled` must be set for this to take effect. Each __Item__ represents a parent pattern and may contain a single `*` character that matches any string. Each __Value__ represents a comma separated list of the child patterns that should be shown nested under a given parent. Child patterns may contain several special tokens:
	// - `${capture}`: Matches the resolved value of the `*` from the parent pattern
	// - `${basename}`: Matches the parent file's basename, the `file` in `file.ts`
@siniradam
siniradam / GoogleMap.svelte
Created February 13, 2023 01:13
Google maps component for SvelteKit.
<script>
const dispatch = createEventDispatcher();
import { onMount } from 'svelte';
import { createEventDispatcher } from 'svelte';
//import mapStyles from './map-styles'; // optional
const key = '';
@siniradam
siniradam / turkeycities.json
Created February 9, 2023 21:06
Turkey's cities and districts
{
"provinces": [
{
"id": 1,
"name": "Adana",
"area": 13844,
"population": 2263373,
"areaCode": [
322
],
@siniradam
siniradam / liveserverOnDemand.md
Last active January 18, 2023 01:06
Tutorial for creating live server for any folder on macos.

How to create a live server for any folder on osx?

With this node package you can create a live server by just right clicking

Install Live-Server Package.

Assuming you alread have node installed; You need to install live-server package globally

npm install -g live-server

@siniradam
siniradam / Awesome-Nostr-Table.md
Last active July 21, 2023 23:33
Roughly every Nostr implmentation is here, pretty much same content on https://github.com/aljazceru/awesome-nostr/blob/main/README.md with languages in table format
Name Type Language Description Link
nostr Resource overview and FAQ
@siniradam
siniradam / whatisnostr.md
Last active December 29, 2022 20:57
Some basic information about NOSTR Protocol.

NOSTR ELI5

Explanation of NOSTR for all newbies.


What is NOSTR

Nostr is a protocol built on websockets.

It's consisting of 2 main components.

  • Relays - a server.
@siniradam
siniradam / cloudAliases.md
Last active March 11, 2024 11:35
Useful Full-Stack Bash Aliases

Useful aliases for front-end & back end developers

By adding the lines below to your ~/.zshrc or ~/.bashrc you can use quick aliases to perform some firebase and aws commands.

Run iOS Simulator (osx)

#XCode
alias simulator='open -a simulator'