Skip to content

Instantly share code, notes, and snippets.

View jukiginanjar's full-sized avatar

Nanang Rafsanjani jukiginanjar

View GitHub Profile
@jukiginanjar
jukiginanjar / number_to_words_id.kt
Created January 18, 2021 02:42
Convert Number to Indonesian Words
private const val TRILIUN = 1000000000000000
private const val MILIAR = 1000000000000
private const val JUTA = 1000000000
fun Long.toWords(): String {
return when (this) {
0L -> ""
1L -> "Satu"
2L -> "Dua"
3L -> "Tiga"
# Signs a framework with the provided identity
code_sign() {
# Use the current code_sign_identitiy
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1"
/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1"
}
# Set working directory to product’s embedded frameworks
cd "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}"
@jukiginanjar
jukiginanjar / CarrierChecker.m
Last active September 11, 2015 07:45
Checking what carrier you're using
//
// CarrierChecker.m
// RagunanZoo
//
// Created by Nanang Rafsanjani on 8/26/15.
// Copyright (c) 2015 Onebit. All rights reserved.
//
#import "CarrierChecker.h"
#import <CoreTelephony/CTTelephonyNetworkInfo.h>