Skip to content

Instantly share code, notes, and snippets.

View lucasnpinheiro's full-sized avatar

Lucas Nunes Pinto Pinheiro lucasnpinheiro

View GitHub Profile
@lucasnpinheiro
lucasnpinheiro / packages.md
Created November 8, 2019 12:36 — forked from alvr/packages.md
Available Packages
Path Version Description
add-ons;addon-google_apis-google-15 3 Google APIs
add-ons;addon-google_apis-google-16 4 Google APIs
add-ons;addon-google_apis-google-17 4 Google APIs
add-ons;addon-google_apis-google-18 4 Google APIs
add-ons;addon-google_apis-google-19 20 Google APIs
add-ons;addon-google_apis-google-21 1 Google APIs
add-ons;addon-google_apis-google-22
2019-07-10 17:06:45.343 932-1162/? I/ThermalEngine: handle_thresh_sig: TM Id SKIN-BATTERY-MONITOR Sensor xo_therm Temp 34000
2019-07-10 17:06:45.343 932-1162/? I/ThermalEngine: TM Id 'SKIN-BATTERY-MONITOR' Sensor 'xo_therm' - alarm raised 1 at 34.0 degC
2019-07-10 17:06:45.343 932-1162/? I/ThermalEngine: j=0 i=0 TM Id SKIN-BATTERY-MONITOR Sensor xo_therm: Action battery value 0
2019-07-10 17:06:45.460 703-3207/? E/ANDR-PERF-MPCTL: poll() has timed out for /sys/module/msm_performance/events/cpu_hotplug
2019-07-10 17:06:45.461 703-3207/? E/ANDR-PERF-MPCTL: Block on poll()
2019-07-10 17:06:48.465 703-3207/? E/ANDR-PERF-MPCTL: poll() has timed out for /sys/module/msm_performance/events/cpu_hotplug
2019-07-10 17:06:48.465 703-3207/? E/ANDR-PERF-MPCTL: Block on poll()
--------- beginning of system
2019-07-10 17:06:50.559 2184-6325/? I/ActivityManager: Killing 25630:com.android.chrome:sandboxed_process0/u0a117i33 (adj 0): isolated not needed
@lucasnpinheiro
lucasnpinheiro / Dockerfile
Created March 17, 2018 17:24 — forked from jcavat/Dockerfile
docker-compose with php/mysql/phpmyadmin/apache
FROM php:7.1.2-apache
RUN docker-php-ext-install mysqli
@lucasnpinheiro
lucasnpinheiro / audio-api-wrapper.ts
Created January 9, 2018 08:53 — forked from devfred/audio-api-wrapper.ts
Typescript: HTML5 Audio Wrapper for angular2
/**
* @class
* @description
* Wrapper for HTML5 audio.
*/
import {Injectable, NgZone} from 'angular2/core';
import {Observer} from 'rxjs/Observer';
import {Observable} from 'rxjs/Observable';
declare var AudioContext:any;
@lucasnpinheiro
lucasnpinheiro / Money.js
Created September 8, 2016 20:18 — forked from ipassynk/Money.js
AngularJS currency input directive. Use like: <input ng-pattern="/^$|^[0-9,]+$/" ng-model="value" money/>
mpwpApp.directive("money",function ($filter, $locale) {
return {
restrict: 'A',
require: 'ngModel',
link: function (scope, el, attr, ctrl) {
// format on init
formatMoney();
function formatMoney() {
var value = ctrl.$modelValue;
@lucasnpinheiro
lucasnpinheiro / DateTime.php
Created April 5, 2016 02:09 — forked from lstrojny/DateTime.php
Immutable DateTime
<?php
namespace InterNations\Component\Date\Value;
use DateTime as DateTimeBase;
use DateTimeZone;
use DateInterval;
class DateTime extends DateTimeBase
{
@lucasnpinheiro
lucasnpinheiro / Router.php
Created April 5, 2016 02:08
codeigniter router extension
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2015, British Columbia Institute of Technology
*
@lucasnpinheiro
lucasnpinheiro / arrayobject.php
Created March 1, 2016 00:54 — forked from tugrul/arrayobject.php
PHP BUG [SPL]: __get method is not calling
<?php
class MyArrayObject extends \ArrayObject
{
public function offsetGet($index)
{
if (!parent::offsetExists($index)) {
parent::offsetSet($index, new MyArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS));
}
<?php
header('Content-Type: text/html; charset=utf-8');
header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header ('Last-Modified: ' . gmdate("D,d M YH:i:s") . ' GMT');
header ('Cache-Control: no-cache, must-revalidate');
header ('Pragma: no-cache');
header ('Content-type: application/x-msexcel');
header ('Content-Disposition: attachment; filename="' . date('Y-m-d_H-i-s') . '.xls"');
header ("Content-Description: PHP Generated Data" );
<?php
App::uses('AppController', 'Controller');
App::import('Vendor', 'Facebook', array('file' => 'facebook-php-sdk/src/facebook.php'));
App::import('Network/Http', 'HttpSocket');
/**
* Users Controller
*
* @property User $User
*/