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
import {Componente} from '@angular/core'; | |
import {Platform, ionicBootstrap} from 'ionic-angular'; | |
import {PushwooshService} from './services/pushwoosh.service'; | |
@Component({ | |
template: '<ion-nav [root]="rootPage" #ionNav></ion-nav>', | |
}) | |
export class MyApp { | |
constructor(private platform:Platform, |
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
import {Injectable} from "@angular/core"; | |
import {Device} from 'ionic-native'; | |
declare var cordova : any; | |
var PUSHWOOSH_APP_ID = 'XXXXX-XXXXX'; | |
var GOOGLE_PROJECT_NUMBER = 'XXXXXXXXXXXXX'; | |
// For iOS, open your project .pList file in xCode and add: | |
// 1) "Pushwoosh_APPID" key with the Pushwoosh App Id value |
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
// Minimum viable app.ts pulled from https://github.com/driftyco/ionic2-starter-blank/tree/41b4da8329636a95ab05d2579efd3a1527d2e830 | |
// This snapshot is likely [email protected] compatable | |
import 'es6-shim'; | |
import {App, Platform} from 'ionic-angular'; | |
import {StatusBar} from 'ionic-native'; | |
import {HomePage} from './pages/home/home'; | |
@App({ | |
template: '<ion-nav [root]="rootPage"></ion-nav>', |
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
// Create a queue, but don't obliterate an existing one! | |
window.analytics = window.analytics || []; | |
// A list of the methods in Analytics.js to stub. | |
window.analytics.methods = ['identify', 'group', 'track', | |
'page', 'pageview', 'alias', 'ready', 'on', 'once', 'off', | |
'trackLink', 'trackForm', 'trackClick', 'trackSubmit']; | |
// Define a factory to create stubs. These are placeholders | |
// for methods in Analytics.js so that you never have to wait |
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 type="text/javascript"> | |
function readCookie(name) { | |
var nameEQ = name + "="; | |
var ca = document.cookie.split(';'); | |
for (var i = 0; i < ca.length; i++) { | |
var c = ca[i]; | |
while (c.charAt(0) == ' ') c = c.substring(1, c.length); | |
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); | |
} | |
return null; |
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 type="text/javascript"> | |
var getUrlParams = function() { | |
var params = {}, hash; | |
var hashes = decodeURI(window.location.href).replace(/\+/g," ").slice(window.location.href.indexOf('?') + 1).split('&'); | |
for (var i=0; i<hashes.length; i++) { | |
hash = hashes[i].split('='); | |
params[hash[0]] = hash[1]; | |
} | |
return params; | |
}; |
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
bash -c ' | |
<% if knife_config[:bootstrap_proxy] -%> | |
( | |
cat <<'EOP' | |
<%= "proxy = #{knife_config[:bootstrap_proxy]}" %> | |
EOP | |
) > ~/.curlrc | |
<% end -%> | |
if [ ! -f /usr/bin/chef-client ]; then |