This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text; | |
using Newtonsoft.Json; | |
namespace Common; | |
public class MClient | |
{ | |
private readonly HttpClient _httpClient; | |
private readonly List<Task<HttpResponseMessage>> _requests; | |
private List<MClientResponse> _responses; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Reflection; | |
namespace Common; | |
public static class Mapper | |
{ | |
public static TDestination Map<TSource, TDestination>(TSource source) | |
where TSource : class | |
where TDestination : class, new() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function kkm(charge, startRate, endRate, days=92, percentage=17){ | |
let interest = charge * (percentage / 100) * (days / 365); | |
let forex = (endRate - startRate) * (charge / startRate); | |
if(forex > interest){ | |
return forex + charge; | |
} else { | |
return interest + charge; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
exec("git diff --name-only --diff-filter=d", $out); | |
exec("git ls-files --others --exclude-standard", $out2); | |
if (count($out) > 0 || count($out2) > 0) { | |
$zip = new ZipArchive(); | |
$zipName = "patch-" . date("YmdHi") . ".zip"; | |
if ($zip->open($zipName, ZipArchive::CREATE)) { | |
foreach ($out as $line) { |