Skip to content

Instantly share code, notes, and snippets.

View wgrafael's full-sized avatar
:octocat:

Rafael Dantas wgrafael

:octocat:
  • PagSeguro
  • São Paulo, SP
View GitHub Profile
import { Component, OnInit } from '@angular/core';
import { Recipient } from './model';
import { GetRecipientStart } from './store';
import {
recipientLoading,
selectAllRecipient
} from './store/recipient.selector';
import { Observable } from 'rxjs';
import { MatTableDataSource } from '@angular/material';
import { select, Store } from '@ngrx/store';
@wgrafael
wgrafael / functions.php
Last active July 6, 2023 18:04
Convert array with key in dot notation for multidimensional array
<?php
/**
* Convert array with key in dot notation for multidimensional array
*
* Example:
* Input: [ "name.firstname" => "Rafael", "name.lastname" => "Dantas", "a.b.c" => "d" ]
* Output: [ "name" => [ "firstname" => "Rafael", "lastname" => "Dantas" ], "a" => [ "b" => [ "c" => "d" ] ]
*
* @param $array Array with key in dot notation
/*!
* jQuery TextChange Plugin
* http://www.zurb.com/playground/jquery-text-change-custom-event
*
* Copyright 2010, ZURB
* Released under the MIT License
*/
(function ($) {
$.event.special.textchange = {