Skip to content

Instantly share code, notes, and snippets.

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

Ari Supriatna arisupriatna14

🏠
Working from home
View GitHub Profile
@mecid
mecid / Calendar.swift
Last active July 16, 2025 00:02
SwiftUI Calendar view using LazyVGrid
import SwiftUI
extension Calendar {
func generateDates(
inside interval: DateInterval,
matching components: DateComponents
) -> [Date] {
var dates: [Date] = []
dates.append(interval.start)
@uhooi
uhooi / project.yml
Last active January 16, 2025 06:47
XcodeGen project spec sample
name: {Project Name}
options:
bundleIdPrefix: {Bundle ID Prefix}
deploymentTarget:
iOS: 13.0
xcodeVersion: "11.3.1" # 倉わらγͺγ„οΌŸ
# findCarthageFrameworks: true # δ½™θ¨ˆγͺγƒ•γƒ¬γƒΌγƒ γƒ―γƒΌγ‚―γΎγ§θΏ½εŠ γ•γ‚Œγ¦γ—γΎγ†γŸγ‚γ‚³γƒ‘γƒ³γƒˆγ‚’γ‚¦γƒˆ
carthageExecutablePath: mint run Carthage/Carthage carthage
@fabianfett
fabianfett / Change Xcode version in GitHub Actions
Created August 21, 2019 09:37
How to change the Xcode version in GitHub Actions
# Change Xcode version in GitHub Actions
As of today (2019-08-21) I haven't found any documentation on changing Xcode versions when
using GitHub actions. So I checked the applications folder and everything we need is
already there. 🀩
```
> ls -n /Applications/ | grep Xcode*
lrwxr-xr-x 1 0 80 30 Aug 2 19:31 Xcode.app -> /Applications/Xcode_10.2.1.app
drwxr-xr-x 3 501 20 96 Oct 20 2018 Xcode_10.1.app
// Models
class FoodList {
final String name;
final String imageUrl;
FoodList({this.name, this.imageUrl});
}
List<FoodList> foodList = [
FoodList(
@bgauduch
bgauduch / multiple-repository-and-identities-git-configuration.md
Last active May 2, 2025 13:16
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine πŸ˜‰

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:
@norsez
norsez / JSONSaveLoad.swift
Created May 7, 2018 04:47
Load and Save JSON objects into a local file (written in Swift)
import Foundation
/**
Extension to save/load a JSON object by filename. (".json" extension is assumed and automatically added.)
*/
extension JSONSerialization {
static func loadJSON(withFilename filename: String) throws -> Any? {
let fm = FileManager.default
@chourobin
chourobin / 0-bridging-react-native-cheatsheet.md
Last active July 7, 2025 21:06
React Native Bridging Cheatsheet
@emilianoeloi
emilianoeloi / Makefile.mk
Last active October 11, 2024 21:33
Makefile for React Native Project
.SILENT:
.PHONY: android ios
setup:
@npm install
reset:
@watchman watch-del-all
@rm -rf node_modules
@npm cache clean