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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<key>UserDefinedName</key> | |
<string>MY_PROFILE_NAME</string> | |
<key>PayloadDisplayName</key> |
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 com.mongodb.BasicDBObject; | |
import com.mongodb.util.JSON; | |
import org.jivesoftware.smack.SmackException; | |
import org.jivesoftware.smack.StanzaListener; | |
import org.jivesoftware.smack.XMPPException; | |
import org.jivesoftware.smack.filter.StanzaTypeFilter; | |
import org.jivesoftware.smack.packet.ExtensionElement; | |
import org.jivesoftware.smack.packet.StandardExtensionElement; | |
import org.jivesoftware.smack.packet.Stanza; | |
import org.jivesoftware.smack.roster.Roster; |
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
# -*- coding: utf-8 -*- | |
""" | |
apns-server-http2.py | |
~~~~~~~~~~~~~~~~~ | |
A simple Python script to mock the Apple push notification gateway (requires Python 3.5). | |
Usage: | |
$ python3.5 apns-server-http2.py /path/to/certificate.pem /path/to/key.pem certificate_password port |
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 com.wizrocket.br; | |
import android.annotation.TargetApi; | |
import android.os.Build; | |
import com.clevertap.android.sdk.ActivityLifecycleCallback; | |
import com.clevertap.android.sdk.CleverTapAPI; | |
public class MyApplication extends android.app.Application { | |
@TargetApi(Build.VERSION_CODES.HONEYCOMB) | |
@Override |
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
#!/bin/bash | |
exploded_artifact_path=/Users/jude/developer/WizRocket/out/artifacts/Dashboard_war_exploded | |
less=/usr/local/bin/lessc | |
function update { | |
target=`echo $1 | sed s/web\\// | sed s/.less/.css/` | |
echo "Generating $exploded_artifact_path/$target" | |
$less $1 $exploded_artifact_path/$target |
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 com.judepereira.jetty.apns.http2; | |
import org.eclipse.jetty.client.HttpClient; | |
import org.eclipse.jetty.client.api.ContentResponse; | |
import org.eclipse.jetty.client.api.Request; | |
import org.eclipse.jetty.client.util.StringContentProvider; | |
import org.eclipse.jetty.http2.client.HTTP2Client; | |
import org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2; | |
import org.eclipse.jetty.util.ssl.SslContextFactory; |
NewerOlder