Skip to content

Instantly share code, notes, and snippets.

View DaniloOliveira28's full-sized avatar
😁

Danilo Oliveira DaniloOliveira28

😁
View GitHub Profile
print!
@DaniloOliveira28
DaniloOliveira28 / file1.txt
Created November 24, 2014 02:06
rest api
#!/usr/bin/env python
"""
restapi.py Learn REST API with Python script
Usage: restapi.py [options]
Options:
-e --exer <number> exercise number
-h this help
Mail bug reports and suggestion to : Larry Cai <larry.caiyu AT gmail.com>
#!/usr/bin/env python
"""
restapi.py Learn REST API with Python script
Usage: restapi.py [options]
Options:
-e --exer <number> exercise number
-h this help
Mail bug reports and suggestion to : Larry Cai <larry.caiyu AT gmail.com>
for tag in xmlDetalhes['Indexacao'].split(","):
tagAux = tag
if tagAux[0] == " ":
tagAux = tagAux.lstrip(" ")
if tagAux[-1:] == ".":
tagAux = tagAux[:-1]
tagAux = tagAux.upper()
if(tagAux not in mpv['SLP_TAGS']):
com.ibm.mobile.services.cordova.push.CDVIBMPush.sendResponseToJavaScript(CDVIBMPush.java:482)
03-09 17:00:52.448 13210 13721 E AndroidRuntime: at com.ibm.mobile.services.cordova.push.CDVIBMPush.access$800(CDVIBMPush.java:37)
03-09 17:00:52.448 13210 13721 E AndroidRuntime: at com.ibm.mobile.services.cordova.push.CDVIBMPush$6.onReceive(CDVIBMPush.java:499)
03-09 17:00:52.448 13210 13721 E AndroidRuntime: at com.ibm.mobile.services.push.IBMPush.dispatchPending(IBMPush.java:858)
03-09 17:00:52.448 13210 13721 E AndroidRuntime: at com.ibm.mobile.services.push.IBMPush.listen(IBMPush.java:307)
03-09 17:00:52.448 13210 13721 E AndroidRuntime: at com.ibm.mobile.services.cordova.push.CDVIBMPush.listenToPush(CDVIBMPush.java:504)
03-09 17:00:52.448 13210 13721 E AndroidRuntime: at com.ibm.mobile.services.cordova.push.CDVIBMPush.access$400(CDVIBMPush.java:37)
03-09 17:00:52.448 13210 13721 E AndroidRuntime: at com.ibm.mobile.services.cordova.push.CDVIBMPush$5.then(CDVIBMPush.java:376)
03-09 17:00:52.448 13210 1372
E/chromium(26821): [ERROR:unix_domain_client_socket_posix.cc(101)] Not implemented reached in virtual int net::UnixDomainClientSocket::GetPeerAddress(net::IPEndPoint*) const
E/chromium(26821): [ERROR:unix_domain_client_socket_posix.cc(101)] Not implemented reached in virtual int net::UnixDomainClientSocket::GetPeerAddress(net::IPEndPoint*) const
I/ThermalEngine( 353): Sensor:chg_therm:32000 mC
E/chromium(26821): [ERROR:unix_domain_client_socket_posix.cc(101)] Not implemented reached in virtual int net::UnixDomainClientSocket::GetPeerAddress(net::IPEndPoint*) const
E/chromium(26821): [ERROR:unix_domain_client_socket_posix.cc(101)] Not implemented reached in virtual int net::UnixDomainClientSocket::GetPeerAddress(net::IPEndPoint*) const
I/SBar.MotoNetworkCtrlr( 1377): onReceive: WifiManager.RSSI_CHANGED_ACTION Received
I/SBar.MotoNetworkCtrlr( 1377): refreshSignalCluster[0]: wifi: mWifiConnected=true Wifi=0x7f020130=stat_sys_wifi_signal_3_fully Activity=0x00000000=( none ) Accessibility="Wi-Fi three bars."
E/c
// Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.services' is found in services.js
// 'starter.controllers' is found in controllers.js
angular.module('starter', ['ionic', 'starter.controllers', 'starter.services'])
.run(function($ionicPlatform, PushNotification) {
angular.module('starter.controllers', [])
.controller('DashCtrl', function($scope) {})
.controller('ChatsCtrl', function($scope, Chats) {
$scope.chats = Chats.all();
$scope.remove = function(chat) {
Chats.remove(chat);
}
})
angular.module('starter.services', [])
.factory('Chats', function() {
// Might use a resource here that returns a JSON array
// Some fake testing data
var chats = [{
id: 0,
name: 'Ben Sparrow',
lastText: 'You on your way?',
0 1 5
0 4 2
0 5 1
0 6 1
0 7 1
0 9 1
0 10 1
0 13 2
0 14 1
0 16 3