Skip to content

Instantly share code, notes, and snippets.

View LeVadim's full-sized avatar

Vadim Denis Makarenko LeVadim

View GitHub Profile
@LeVadim
LeVadim / angular-obj-formatter.ts
Created July 3, 2016 13:34
Angular 2 code which substitutes $httpParamSerializerJQLike
private formatData(data){
let returnData = '';
console.log(data);
let count = 0;
for (let i in data){
if(count == 0){
returnData += i+'='+data[i];
}else{
returnData += '&'+i+'='+data[i];
}
@LeVadim
LeVadim / .php
Last active June 29, 2016 14:32
I was looking for a while for ISO3166-1-Alpha-2 both with country currency code. I wasn't able to find the best example for this. I made my own. Cheers.
<?php
/**
* Created by PhpStorm.
* Date => 4/18/16
* Time => 1 =>49 PM
*/
return [
'AF' => 'AFG',
'AL' => 'ALL',