Skip to content

Instantly share code, notes, and snippets.

View aeonSolutions's full-sized avatar
😍
Always available to collaborate.

Miguel Tomas Silva aeonSolutions

😍
Always available to collaborate.
View GitHub Profile
@aeonSolutions
aeonSolutions / ajax.js
Created January 31, 2016 22:25 — forked from xeoncross/ajax.js
Simple, cross-browser Javascript POST/GET xhr request object. Supports request data and proper AJAX headers.
/**
* IE 5.5+, Firefox, Opera, Chrome, Safari XHR object
*
* @param string url
* @param object callback
* @param mixed data
* @param null x
*/
function ajax(url, callback, data, x) {
try {
package com.zjw.wearheart.service;
import android.annotation.SuppressLint;
import android.app.Notification;
import android.app.PendingIntent;
import android.app.Service;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothAdapter.LeScanCallback;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothGatt;