Skip to content

Instantly share code, notes, and snippets.

Pieter Gorsira pgorsira

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am pgorsira on github.
  • I am pgorsira (https://keybase.io/pgorsira) on keybase.
  • I have a public key whose fingerprint is 0AD5 BB8B 04E7 F7FA E6B4 C5A1 69C8 0F90 8D91 6E93

To claim this, I am signing this object:

View _affixWithinContainer.md

What this does:

Within an <ion-scroll>, this directive creates sticky item headers that get bumped out of the way by the next item.

Demo: http://cl.ly/2u2X390s0H1a

Requirements:

  • Needs UnderscoreJS for its _.throttle utility.
  • Must be used within an <ion-scroll> or <ion-content>
@pgorsira
pgorsira / install
Last active Aug 29, 2015
Remote developer console for iOS 7 Mobile Safari in Ubuntu 13.10
View install
# This should not be necessary in 14.04
# be sure to uninstall any previous versions of libimobiledevice, usbmuxd, libplist that were installed by your package manager
# get reqd tools/dependencies
sudo apt-get install libxml2 make automake autoconf libtool pkg-config gcc
mkdir -p ~/ios-dev-console
# install libplist
cd ~/ios-dev-console
@pgorsira
pgorsira / deploy
Last active Dec 14, 2018
Deploying to Artifactory with Python requests library
View deploy
artifactory_url = 'artifactory.com' # your artifactory instance
artifactory_username = 'username' # your username
artifcatory_password = 'password' # your password
content_type = 'application/java-archive' # your content-type header
filename = 'file' # your file to upload (in current working directory)
url = artifactory_url + '/' + filename # where we want the file stored on artifactory
# checksums are useful for making sure the upload was successful
headers = {'content-type': content_type,
You can’t perform that action at this time.