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
| # DICTIONARIES/REFERENCES | |
| locals { | |
| _SEP = { | |
| lower = "" | |
| upper = "" | |
| snake = "_" | |
| spinal = "-" | |
| camel = "" | |
| pascal = "" | |
| } |
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
| { | |
| "go.useLanguageServer": true, | |
| "go.languageServerFlags": [ | |
| "-rpc.trace", | |
| "serve", | |
| "--debug=localhost:6060", | |
| ], | |
| "go.alternateTools": { | |
| "go-langserver": "gopls" | |
| }, |
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
| #!/bin/bash | |
| # | |
| # This script ... | |
| # This script has been tested with the following OSs: | |
| # - Ubuntu 16.04 | |
| # - Ubuntu 18.04 | |
| # | |
| set -e |
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
| import { createAction } from "typesafe-actions"; | |
| import { MessageLevel, DEFAULT_TTL } from "."; | |
| export type ShowPayload = { | |
| level?: MessageLevel; | |
| header?: TKey; | |
| content?: TKey; | |
| list?: TKey[]; | |
| autoDismiss?: false | number; | |
| }; |
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
| # check out the regexp HAHA | |
| # | |
| # the formula takes the current timestamp and parses it into a valid, | |
| # non-repeating (run-once; subsequent runs is scheduled by the process itself) | |
| # AWS CloudWatch Event schedule-expression rule. This is for a very specific | |
| # use-case; the event rule is set to trigger a self-updating ECS cron job | |
| # 10 minutes from the time provisioning completes successfully, assumming | |
| # provisioning takes less than 10 minutes. | |
| # | |
| # see: |
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
| locals { | |
| object_map = { | |
| id = 12 | |
| name = "arkansas" | |
| pending = "true" | |
| amount = 112.25 | |
| outstanding = "" | |
| send_receipt = false | |
| } | |
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
| declare module "unchanged" { | |
| type PathSelector = string[] | number[] | number | string; | |
| export interface GetFn { | |
| <T>(path: PathSelector, target: T): T; | |
| } | |
| export interface GetOrFn { | |
| <T, F = any>(fallback: F, path: PathSelector, target: T): T; | |
| } |
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
| // credits and references: | |
| // - http://xtf.dk | |
| // - https://developer.mozilla.org/en-US/docs/Web/API/Window/open | |
| const createCenteredPopup = popupWindowRef => (url, title, options) => { | |
| try { | |
| if (!!popupWindowRef && !popupWindowRef.closed) { | |
| return ( | |
| popupWindowRef.focus(), |
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
| import * as React from 'react' | |
| import { Redirect, RouteComponentProps } from 'react-router-dom' | |
| export interface Props extends RouteComponentProps<{}> {} | |
| export interface State { | |
| readonly nextPage: boolean | |
| } | |
| class Welcome extends React.PureComponent<Props, State> { |
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
| /** | |
| * Centralized routes config | |
| */ | |
| import * as React from "react"; | |
| import { RouteProps as ReactRouteProps } from "react-router-dom"; | |
| import { isDev, isHMR } from "@app/utils/flags"; | |
| // dynamically import the route module |
NewerOlder