Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Always available to collaborate.

Miguel Silva aeonSolutions

💭
Always available to collaborate.
View GitHub Profile
View BleService.java
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;
@aeonSolutions
aeonSolutions / ajax.js
Created Jan 31, 2016 — forked from Xeoncross/ajax.js
Simple, cross-browser Javascript POST/GET xhr request object. Supports request data and proper AJAX headers.
View ajax.js
/**
* 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 {