Skip to content

Instantly share code, notes, and snippets.

View hdmdhr's full-sized avatar

Daniel hdmdhr

  • SmartNews
  • Tokyo
  • 18:32 (UTC +09:00)
View GitHub Profile
@hdmdhr
hdmdhr / LanguageCode+Bundle.swift
Created September 6, 2023 00:55
Find bundle for a given language code, aka a String
import Foundation
typealias LanguageCode = String
extension LanguageCode {
var bundle: Bundle {
let path = Bundle.main.path(forResource: self, ofType: "lproj") ??
Bundle.main.path(forResource: "Base", ofType: "lproj")
return path.map { Bundle(path: $0) ?? .main } ?? .main
@hdmdhr
hdmdhr / pr-template.md
Created July 18, 2023 05:06 — forked from jaimejazarenoiii/pr-template.md
Pull Request Template

📲 What

  • Description of what's the pr about.

🤔 Why

  • Why is this created? Is it a fix for a bug or a new feature?

🛠 How

@hdmdhr
hdmdhr / Staging.xcconfig
Last active April 11, 2022 22:43
Staging.xcconfig before including Base config
// Staging.xcconfig
// API URL
API_BASE_URL = http:/$()/my-less-cool-staging-url.com
// API Key
API_KEY = my_super_secret_staging_api_key
// Backward Compatible Values
IS_PRODUCTION = NO
@hdmdhr
hdmdhr / menu.json
Last active February 18, 2022 22:41
A list of available products for our vending machine in JSON format
[
{
"ID": 1,
"Name": "Apple",
"Price": 1.0,
"Type": "Fruit"
},
{
"ID": 2,
"Name": "Banana",
@hdmdhr
hdmdhr / Program.cs
Last active February 20, 2022 21:42
C# Program Main Hello World
namespace SolidVendingMachine
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
@hdmdhr
hdmdhr / README-Template.md
Created April 29, 2019 20:06 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites