Skip to content

Instantly share code, notes, and snippets.

View LeVadim's full-sized avatar

Vadim Denis Makarenko LeVadim

View GitHub Profile
@LeVadim
LeVadim / Package.resolved
Created October 3, 2026 12:32
Pinned Swift gRPC 2.4.3 TLS deadline and unary cancellation reproduction
{
"pins": [
{
"identity": "grpc-swift-2",
"kind": "remoteSourceControl",
"location": "https://github.com/grpc/grpc-swift-2.git",
"state": {
"revision": "ac33066eb6edb1a21a6ca172ea8184a9b06f3cc7",
"version": "2.4.3"
}
@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',