This file contains hidden or 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
I'd be happy to help you create a simple fish shell configuration. Let's break this down into manageable pieces to address your requirements. | |
## 1. Simple Two-Line Prompt with SSH Awareness | |
For a two-line prompt that indicates when you're SSH'd into your dev server, we can create a simple config file. Here's what we'll do: | |
1. First, let's create or edit your fish configuration file | |
2. Add a simple two-line prompt configuration | |
3. Make sure it shows when you're SSH'd into a server |
This file contains hidden or 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
package location | |
type LocationType string | |
const ( | |
Governorate LocationType = "governorate" | |
District LocationType = "district" | |
Subdistrict LocationType = "subdistrict" | |
Community LocationType = "community" | |
) |
This file contains hidden or 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
{ | |
"location": { | |
"id": "SY01", | |
"type": "governorate", | |
"names": { | |
"en": "Damascus", | |
"ar": "دمشق" | |
}, | |
"coordinates": { | |
"lat": 33.471206, |
This file contains hidden or 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
{ | |
"location": { | |
"id": "SY02", | |
"type": "governorate", | |
"names": { | |
"en": "Aleppo", | |
"ar": "حلب" | |
}, | |
"coordinates": { | |
"lat": 36.258315, |
This file contains hidden or 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
private async getGitHubToken(scopes: readonly string[]): Promise<[string, string]> { | |
return window.withProgress<[string, string]>({ | |
location: ProgressLocation.Notification, | |
title: "Signing in to GitHub...", | |
cancellable: true | |
}, async (_, token) => { | |
const state = uuid(); | |
const scopeString = scopes.join(' '); | |
const authUrl = `${GITHUB_AUTH_URL}` + | |
`?client_id=${config.githubClientId}` + |
This file contains hidden or 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
package report | |
import ( | |
"time" | |
"github.com/google/uuid" | |
"github.com/zouhir/syria-open-data/internal/domain" | |
) | |
// Constants for validation and business logic | |
const ( |
This file contains hidden or 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
const fs = require('fs'); | |
const papa = require('papaparse'); | |
// Helper function to properly escape Arabic text | |
const escapeArabic = (text) => { | |
return text.replace(/"/g, '\\"'); | |
}; | |
// Read and parse the CSV file | |
const processCSV = (filePath) => { |
This file contains hidden or 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
<!doctype HTML> | |
<!-- | |
This test creates a flex box with 10,000 non-trivial items. It locks the | |
container and adjusts its width continuously. If content-visibility is properly | |
optimized, then the width adjustments are very quick (< one frame). Otherwise, | |
the layout recalculation leaks into the children element and the width | |
adjustments are slow. | |
--> |
This file contains hidden or 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 # -e: exit on error | |
####################################### | |
# macOS Command Line Tools | |
####################################### | |
if pkgutil --pkgs=com.apple.pkg.CLTools_Executables >/dev/null; then | |
echo CommandLineTools: $(pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | awk '/version:/ {print $2}') |
NewerOlder