This file contains 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
🌞 Morning 88 commits ████▋░░░░░░░░░░░░░░░░ 22.5% | |
🌆 Daytime 154 commits ████████▎░░░░░░░░░░░░ 39.4% | |
🌃 Evening 93 commits ████▉░░░░░░░░░░░░░░░░ 23.8% | |
🌙 Night 56 commits ███░░░░░░░░░░░░░░░░░░ 14.3% |
This file contains 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
# Author. Hwanseok Kang, tttkhs96@gmail.com | |
FROM node:14.15.1-alpine3.12 AS build | |
RUN apk update && apk add curl bash | |
RUN curl -sfL https://gobinaries.com/tj/node-prune | bash -s -- -b /usr/local/bin | |
COPY package*.json /build/ | |
WORKDIR /build |
This file contains 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
export const debouncer = ( | |
func: (...args: unknown[]) => unknown, | |
params: { [key: string]: unknown }, | |
debounceMilliseconds: number, | |
debounceId: string, | |
): unknown => { | |
const lastExecuteTimeFromString: string = window.localStorage.getItem(debounceId) | |
const lastExecuteTime = _.parseInt(lastExecuteTimeFromString) | |
const currentTime = new Date().getTime() |
This file contains 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
import 'dart:async'; | |
void main() { | |
final broadcaster = StateBroadcaster(); | |
} | |
class StateBroadcaster { | |
final _sinkMap = <Type, StreamController<dynamic>>{}; | |
void notify<T>(T value) { |
This file contains 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
import 'package:intl/date_symbol_data_local.dart'; | |
import 'package:intl/intl.dart'; | |
test('formats', () async { | |
final time = DateTime(2022, 1, 1, 13, 12); | |
for (final locale in DateFormat.allLocalesWithSymbols()) { | |
final format = DateFormat.jm(locale); | |
final formattedTime = format.format(time); | |
print('$locale: $formattedTime'); |
This file contains 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
brew install gnupg | |
curl -sSL https://get.rvm.io | bash | |
rvm list known | |
rvm install ruby-3.3.0 --with-openssl-dir=$(brew --prefix openssl) | |
rvm alias create default 3.3.0 | |
## gem install cocoapods |