This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // MapViewController.m | |
| // AppGyver | |
| // | |
| // Created by Rafael on 6/03/14. | |
| // Copyright (c) 2014 AppGyver Inc. All rights reserved. | |
| // | |
| #import "MapViewController.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.appgyver.runtime.standalone.chromium" | |
| android:windowSoftInputMode="adjustPan"> | |
| <!-- Essentials --> | |
| <uses-permission android:name="android.permission.INTERNET" /> | |
| <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| if(!self.mapView){ | |
| // create the map view | |
| self.mapView = [[MKMapView alloc] initWithFrame:self.view.frame]; | |
| //configure the transparency of the webview | |
| //and disable the interaction.. so all events are handled in the mapview |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.apache.cordova; | |
| import com.appgyver.ui.webview.AGWebViewInterface; | |
| import android.view.View; | |
| import android.view.ViewParent; | |
| import android.webkit.WebChromeClient; | |
| import java.util.HashMap; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| function onDeviceReady() { | |
| pushNotification = window.plugins.pushNotification | |
| tokenHandler = function(a) { console.log(a); steroids.logger.log(a); }; | |
| errorHandler = function(a) { console.log(a); steroids.logger.log(a); }; | |
| onNotificationAPN = function(a) { console.log(a); steroids.logger.log(a); }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Convert a Quick Time screencast to GIF | |
| # Creates two gifs, one HUGE and one optimized. | |
| # | |
| # Dependencies: | |
| # % brew install ffmpeg imagemagick | |
| # | |
| # Props to http://schneems.com/post/41104255619/use-gifs-in-your-pull-request-for-good-not-evil | |
| function gifify { | |
| SRC="$1" | |
| DEST="$2" |
NewerOlder