aws-iot-device-sdkbufferprocessutil@types/aws-iot-device-sdk(optional)
While using @nrwl/web:build as the executor for the build target, add a custom webpack config file to your build configurations:
| { | |
| "Engineer": { | |
| "\"Warthog\" Auto 210": [ | |
| { | |
| "id": 25, | |
| "character_id": 1, | |
| "gun_id": 1, | |
| "overclock_type": "Clean", | |
| "overclock_index": 1, | |
| "overclock_name": "Stunner", |
| build-job: | |
| before_script: | |
| - | | |
| if [[ "${CI_COMMIT_BRANCH}" != "${CI_DEFAULT_BRANCH}" ]]; then | |
| git fetch origin $CI_DEFAULT_BRANCH | |
| SKIPPABLE_CHANGES=`git diff origin/$CI_DEFAULT_BRANCH --name-only $SKIP_SOURCE_STAGES_FOR_DIRS` | |
| ALL_CHANGES=`git diff origin/$CI_DEFAULT_BRANCH --name-only` | |
| if [[ $SKIPPABLE_CHANGES == "" ]]; then | |
| echo "There were no skippable changes, the script will continue" | |
| elif [[ $SKIPPABLE_CHANGES == $ALL_CHANGES ]]; then |
| type Loaded<T> = { | |
| state: 'loaded', | |
| data: unknown, | |
| }; | |
| type ErrorState = { | |
| state: 'error', | |
| error: Error, | |
| }; |
| Number.prototype[Symbol.iterator] = function*() { | |
| for (let n = 0; n <= this; n++) | |
| yield n; | |
| }; | |
| // this: [...4] | |
| // outputs: [0, 1, 2, 3, 4] |
| for (const x = { i: 0 }; x.i < 10; x.i++) { | |
| console.log(x.i); | |
| } |
| const _pushState = window.history.pushState.bind(window.history); | |
| window.history.pushState = (...args) => {debugger; return _pushState(...args)}; | |
| const _replaceState = window.history.replaceState.bind(window.history); | |
| window.history.replaceState = (...args) => {debugger; return _replaceState(...args)}; | |
| const _replace = window.location.replace.bind(window.location); | |
| window.location.replace = (...args) => {debugger; return _replace(...args)}; | |
| const _reload = window.location.reload.bind(window.location); |
| alias branch="git symbolic-ref --short HEAD" | |
| alias cki="git checkout \`recent | fzf | awk '{print \$1}'\`" | |
| alias pushn="git push origin \`branch\` --no-verify" | |
| alias push="git push origin \`branch\`" | |
| alias master="git checkout master" | |
| alias main="git checkout main" | |
| alias st="git status" | |
| alias changes="git diff --name-only HEAD master" | |
| alias bop='git stash pop' | |
| alias suc='git stash --keep-index --include-untracked' |
| use core::any::type_name; | |
| use std::ops::{Deref, DerefMut}; | |
| use std::sync::Mutex; | |
| use std::sync::atomic::{AtomicUsize, Ordering}; | |
| use std::collections::HashMap; | |
| pub struct TrackingStats { | |
| pub instance_count: usize, |
| const assertFieldsPresent = <T extends Record<string, unknown>, U extends keyof T>(data: T, fields: U[]): T & Required<Pick<T, U>> => { | |
| for (let field of fields) { | |
| const value = data[field]; | |
| if (value === undefined || value === null) { | |
| throw new Error(`[assertFields] Field "${field}" was not present`); | |
| } | |
| } | |
| // @ts-ignore; |