Deno v2.5.3
deno run https://gist.github.com/jihchi/2d993c308031cf848c404acd06bf0f8a/raw/solve.ts
Deno v2.5.3
deno run https://gist.github.com/jihchi/2d993c308031cf848c404acd06bf0f8a/raw/solve.ts
import { TZDate } from 'npm:@date-fns/tz'; | |
import { UTCDate } from "npm:@date-fns/utc"; | |
import * as DF from 'npm:date-fns'; | |
console.log('Use `TZDate` or `UTCDate` for date construction. All `date-fn` utilities are available in `DF` (e.g. `DF.format()`)'); | |
console.log('TZCDate: https://github.com/date-fns/tz'); | |
console.log('UTCDate: https://github.com/date-fns/utc'); | |
console.log('`date-fn` utilities: https://date-fns.org/docs/Getting-Started'); |
FROM ubuntu:22.04 | |
RUN apt-get update \ | |
&& apt-get -y --no-install-recommends install \ | |
wget ca-certificates \ | |
build-essential g++ libtool autotools-dev automake \ | |
libpoco-dev | |
WORKDIR /tmp |
process.env.NEXT_PUBLIC_*
, for example:// call-site, agents.js
const restaurantApi = axios.createConfig({
baseUrl: process.env.NEXT_PUBLIC_RESTAURANT_API_URI,
123 |
curl -sSL https://git.io/Jv0mR | sudo bash
/** | |
AsyncData represents the state of data that is being loaded asynchronously. | |
This type does not represent failures by default, but it can by using Belt.Result.t as your 'a type. | |
The reason for this is that not all async data loading mechanisms will necessarily fail. | |
The other interesting bit is that `Reloading` can be used if you already have data (e.g. an Ok or Error Result), | |
but you need to reload the data to get a new Result. | |
*/ |
// source: https://github.com/notablemind/renm/blob/master/src/utils/Lets.re | |
module Async = { | |
type t('a) = Js.Promise.t('a); | |
let try_ = (promise, continuation) => Js.Promise.catch(continuation, promise); | |
let let_ = (promise, continuation) => | |
Js.Promise.then_(continuation, promise); | |
let resolve = Js.Promise.resolve; | |
let reject = Js.Promise.reject; | |
let map = (promise, fn) => Js.Promise.then_(v => Js.Promise.resolve(fn(v)), promise); |
[@react.component] | |
let make = (~id: string, ~children) => | |
ReasonReact.cloneElement(children, ~props={"data-test-id": id}, [||]); |
# Remove previous installations | |
sudo apt-get remove vim vim-runtime vim-tiny vim-common | |
# Install dependencies | |
sudo apt-get install libncurses5-dev python-dev libperl-dev ruby-dev liblua5.2-dev | |
# Fix liblua paths | |
sudo ln -s /usr/include/lua5.2 /usr/include/lua | |
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/local/lib/liblua.so |