Skip to content

Instantly share code, notes, and snippets.

@dphov
dphov / is_installed.sh
Created November 30, 2017 06:38 — forked from JamieMason/is_installed.sh
Check if a program exists from a bash script.Thanks to twitter.com/joshnesbitt and twitter.com/mheap for the help with detecting npm packages.
#!/bin/bash
# Functions ==============================================
# return 1 if global command line program installed, else 0
# example
# echo "node: $(program_is_installed node)"
function program_is_installed {
# set to 1 initially
local return_=1
@dphov
dphov / ioslocaleidentifiers.csv
Last active May 9, 2018 09:01 — forked from jacobbubu/ioslocaleidentifiers.csv
iOS Locale Identifiers
Locale Identifier Locale Name
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)