Skip to content

Instantly share code, notes, and snippets.

View jsdario's full-sized avatar

Jesús Darío jsdario

View GitHub Profile
@jsdario
jsdario / automatedBuildAndUploadToTestflight.sh
Created February 22, 2017 10:18 — forked from djacobs/automatedBuildAndUploadToTestflight.sh
Automated Xcode build and upload to TestFlight.
#!/bin/sh
# Current as working as of 2012/4/17
# Xcode 4.3.2
PROJECT_ROOT="$HOME/SomeDirWhereYourProjectLives/XXXXXXXX"
WORKSPACE="$PROJECT_ROOT/XXXXXXXX.xcodeproj/project.xcworkspace"
CONFIG="AdHoc"
SCHEME="XXXXXXXX"
@jsdario
jsdario / .travis.yml
Created February 21, 2017 18:41 — forked from johanneswuerbach/.travis.yml
Deploy an iOS app to testflight using Travis CI
---
language: objective-c
before_script:
- ./scripts/travis/add-key.sh
after_script:
- ./scripts/travis/remove-key.sh
after_success:
- ./scripts/travis/testflight.sh
env:
global:
@jsdario
jsdario / get-npm-package-version
Created November 18, 2016 12:06 — forked from yvele/get-npm-package-version.sh
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g' \
| tr -d '[[:space:]]')
echo $PACKAGE_VERSION
@jsdario
jsdario / CustomHeader.js
Created November 14, 2016 23:45
ex-navigation with custom navbar on andorid, plus navbar actions unified on both platforms
// These are some stores injected as props with the MobX Provider (through context).
// Redux has the same functionality too
// the useful side effect is that you can use these stores in the Screen.js in the onPress functions
// without explicitly passing them from the screen from which you're navigating
@inject("userStore", "jobStore", "projectStore")
@withNavigation
@observer
export default class CustomHeader extends PureComponent {