Skip to content

Instantly share code, notes, and snippets.

function unspiral(i, j) {
/**
* j
* ^
* |
* 12 13 14 15 16
* 11 2 3 4 17
* 10 1 0 5 18 --> i
* 9 8 7 6 19
* 24 23 22 21 20
@marwahaha
marwahaha / releasing.md
Last active December 13, 2018 06:29
Moment release process
  1. Make sure there are no unmerged PRs or unresolved critical bugs that should be part of the release

All changes should be squash-merged to develop at this point.

The commit description is the PR title. What makes a good Pull Request title?

  • It should start with an identifier, i.e. [bugfix]
  • It has meaningful text describing the code change
  • If applicable, it references a ticket, i.e. (fixes #23)
  1. Run tests on sauce.

As of 2017.11.20, some of the Windows 7 tests and IE8 tests are flaky, we need to investigate.

moment 2.23.0 changelog

Bugfixes

  • #4417 [bugfix] isBetween should return false for invalid dates
  • #4700 [bugfix] Fix #4698: Use ISO WeekYear for HTML5_FMT.WEEK

Features

  • #4563 [feature] Fix #4518: Add support to add/subtract ISO weeks

moment 2.24.0 changelog

Bugfixes

  • #4445 [bugfix] (TypeScript) allow update of a single relativeTime handler
  • #4338 [bugfix] Fix startOf/endOf DST issues while boosting performance
  • #4849 [bugfix] locale/en-ie.js date format
  • #4887 [bugfix] Make Duration#as work with quarters
  • #4912 [bugfix] pipeline breaks with rollup v0.68

moment 2.28.0 changelog

Bugfixes

  • #5580 [bugfix] Fix bug where .format() modifies original moment instance

Locale improvements

  • #5676 [locale] Update dow for Konkani locales
  • #5675 [locale] az: fix a word

moment 2.29.0 changelog

Bugfixes

  • #5601 [bugfix] fix moment.months() for PL locale
  • #5574 [bugfix] More complete type definitions for strict formatless parsing #4611
  • #5637 [bugfix] expose deprecation handler in typings
  • #5647 [bugfix] allow calendar with falsy input

New locales

moment 2.26.0 changelog

Bugfixes

  • #5548 [bugfix] isoWeeksInISOWeekYear in moment.d.ts
  • #5526 [bugfix] Add 'w' to supported time units
  • #5525 [bugfix] Update the type definition of the humanize() API, fix compilation error

Locale improvements

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@marwahaha
marwahaha / awqms.r
Last active February 10, 2022 21:45
library(digest)
library(httr)
library(jsonlite)
encryptionKey <- "test"
userLoginName <- "test"
uri <- "https://awqms.goldsystems.com/api/ContinuousResultsVer1?OrganizationIdentifiersCsv=BISHOP_PAIUTE_TRIBE_WQX&MonitoringLocationIdentifiersCsv=SW-1&MinDate=02-01-2021&MaxDate=02-02-2021"
getUTCTime <- function() {
time <- Sys.time()
as.numeric(time)
attr(time, "tzone") <- "UTC"

moment 2.27.0 changelog

Bugfixes

  • #5566 [bugfix] update moment.d.ts for calendar

New locales

  • #5522 [new locale] tk: Add Turkmen