Skip to content

Instantly share code, notes, and snippets.

@MrMeison
MrMeison / inflation.gs
Created January 8, 2020 11:52
Формула для Google Sheets для получения инфляции в стране за произвольный период
var ENTRYPOINT = "https://www.statbureau.org/calculate-inflation-rate-json";
/**
* Получаем инфлацию за произвольный период
*
* @param {string} country - страна (belarus, brazil, canada, european-union, eurozone, france, germany, greece, india, japan, kazakhstan, mexico, russia, spain, turkey, ukraine, united-kingdom, united-states)
* @param {Date} start - первый месяц, включительно
* @param {Date} end - последний месяц, включительно
* @return Получаем инфляцию за произвольный период
* @customfunction
@ih2502mk
ih2502mk / list.md
Last active June 3, 2024 04:28
Quantopian Lectures Saved
@batmat
batmat / get-jenkins-build-time.groovy
Last active June 3, 2024 04:27
Quick Jenkins system groovy script to compute how many minutes of build you had in the last N hours
def numberOfHoursBack = 7*24
def totalBuildTime =
Jenkins.instance.getItems(Job.class).collect { job ->
job.getBuilds().byTimestamp(System.currentTimeMillis()-numberOfHoursBack*60*60*1000, System.currentTimeMillis())
}
.flatten()
.collect { build -> build.getDuration() }
.sum()
@nyuichi
nyuichi / gist:3320261
Created August 11, 2012 03:01
delimited continuation in post increment
// 後置インクリメントは限定継続を使って表せるし、
// 逆に限定継続の一番身近な例が後置インクリメント
// http://www.kmonos.net/pub/Presen/fltv/FLTV.pdf
class BigInt {
BigInt&/<noreturn> operator++(int) {
var f = rest_of_full_expression();
var g = after_full_expression();
var r = f(*this);
this->incr();
g(r);
@guest271314
guest271314 / file-system-access.md
Last active June 3, 2024 04:26
File system access prior art, current implementations and disambiguation: The difference between WICG File System Access and WHATWG File System
@imba-tjd
imba-tjd / .Cloud.md
Last active June 3, 2024 04:23
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合

@fitzhang
fitzhang / .Cloud.md
Created June 3, 2024 04:23 — forked from imba-tjd/.Cloud.md
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合

Acquia BLT in Azure DevOps Pipelines

This guide will get you started with Acquia BLT and AzDo (Azure DevOps).

I wrote a guide for running BLT on Windows that will complement this tutorial.

I also wrote a Getting Started with BLT guide.

Set up your Azure Repo

@jjxtra
jjxtra / HttpContext_RemoteIPAddress.cs
Last active June 3, 2024 04:20
C# / .NET core: Get Remote IP Address with Proxy / CDN Support
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
namespace HttpContext_RemoteIPAddress