Skip to content

Instantly share code, notes, and snippets.

View pedro-stanaka's full-sized avatar

Pedro Tanaka pedro-stanaka

View GitHub Profile
"LCM"
0.2 67223.5
0.3 57739.8
0.4 26998.7
0.5 17645.0
0.6 12286.6
0.7 9280.72
0.8 7321.65
0.9 5972.66
@pedro-stanaka
pedro-stanaka / locations.json
Last active May 17, 2016 20:58
Inserting positions from Google Location History on CouchBase
{
"locations" : [ {
"timestampMs" : "1463503818004",
"latitudeE7" : -233295844,
"longitudeE7" : -511776429,
"accuracy" : 38,
"activitys" : [ {
"timestampMs" : "1463503813318",
"activities" : [ {
"type" : "still",
@pedro-stanaka
pedro-stanaka / .gitignore
Last active June 13, 2016 13:41 — forked from superscott/kafka
Simple Kafka Ubuntu init.d Startup Script
# Created by https://www.gitignore.io/api/windows
### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
@pedro-stanaka
pedro-stanaka / 0_base_post_install.sh
Created November 28, 2017 19:03
Post Install Script for Manjaro
#!/bin/bash
################################
######### VARIABLES ############
################################
EMAIL="email@provider.com"
AUTHOR="Pedro Tanaka"
################################
# Update pacman and install keyring to avoid signature problems
@pedro-stanaka
pedro-stanaka / 0_base_post_install.sh
Last active May 14, 2019 17:15
Very Opinionated Post Install Script Ubuntu 17.10
#!/bin/bash
####### DISCLAIMER: ###############################################################
# Use this script at your own risk, I DO NOT HOLD RESPONSABILITIES FOR DAMAGES! #
# READ EVERYTHING BEFORE RUNNING! YOU'VE BEEN WARNED! #
###################################################################################
## Config ##
<?php
if (!isset(static::$_formatters[$key])) {
if ($timezone === '+00:00' || $timezone === 'Z') {
$timezone = 'UTC';
} elseif ($timezone[0] === '+' || $timezone[0] === '-') {
$timezone = 'GMT' . $timezone;
}
static::$_formatters[$key] = datefmt_create(
$locale,
$dateFormat,
@pedro-stanaka
pedro-stanaka / date_formatting.php
Created March 26, 2018 15:20
Date Formatting with Intl
<?php
$fmt = datefmt_create(
'en_US',
IntlDateFormatter::FULL,
IntlDateFormatter::FULL,
'UTC',
IntlDateFormatter::GREGORIAN,
"y-MM-dd'T'H:mm:ssX"
);
@pedro-stanaka
pedro-stanaka / vimVixen.config.json
Created April 17, 2018 13:08
vimVixen.config.json
{
"keymaps": {
"0": { "type": "scroll.home" },
":": { "type": "command.show" },
"o": { "type": "command.show.open", "alter": false },
"O": { "type": "command.show.open", "alter": true },
"t": { "type": "command.show.tabopen", "alter": false },
"T": { "type": "command.show.tabopen", "alter": true },
"w": { "type": "command.show.winopen", "alter": false },
"W": { "type": "command.show.winopen", "alter": true },
@pedro-stanaka
pedro-stanaka / gitflow-breakdown.md
Created May 17, 2018 18:07 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

--TEST--
Verifies that generated remote object will pass default parameters in method declaration to Adapter.
--FILE--
<?php
require_once __DIR__ . '/init.php';
use ProxyManager\Factory\RemoteObject\AdapterInterface;
interface FooServiceInterface