aws-iot-device-sdk
buffer
process
util
@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:
fn mount<T, P, B: FnMut(&mut P)>( | |
component: fn(this: Option<T>, props: P, block: B) -> T, | |
props: P, | |
block: B, | |
) { | |
component(None, props, block); | |
} | |
struct Props<T: FnMut()> { | |
on_click: T, |
const LinkedHeightContainer = ({ children, link }) => { | |
const ref = useRef(null); | |
useEffect(() => { | |
const observer = new ResizeObserver((entries) => { | |
const entry = entries[entries.length - 1]; | |
const height = `${entry.contentRect.height}px`; | |
ref.current.style.height = height; | |
}); |
const effects = []; | |
let isCollectingEffects = false; | |
const data = (init) => { | |
const deps = []; | |
let oldValue = init; | |
return (value) => { |
type SubtractOne<T> = | |
T extends '9' ? '8' | |
: T extends '8' ? '7' | |
: T extends '7' ? '6' | |
: T extends '6' ? '5' | |
: T extends '5' ? '4' | |
: T extends '4' ? '3' | |
: T extends '3' ? '2' | |
: T extends '2' ? '1' | |
: T extends '1' ? '0' |
Math.max(NaN, 100) === NaN |
const useDebug = (deps: Record<string, any>) => { | |
Object.entries(deps).forEach(([key, value]) => { | |
useEffect(() => console.log(`${key} Changed`), [value]); | |
}); | |
}; |
console.log(self.events.map(x => [x[0], x[1].type, x[2].sliceSerialize(x[1], true)]).map(x => x.join(' | ')).reduce((prev, curr) => { | |
if (curr.startsWith('enter')) { | |
prev = { i: prev.i, t: prev.t + '\n' + ' '.repeat(prev.i) + curr }; | |
prev.i+=2 | |
return prev | |
} else { | |
prev.i-=2 | |
return { i: prev.i, t: prev.t + '\n' + ' '.repeat(prev.i) + curr } | |
} | |
}, { i: 0, t: '' }).t) |
{ | |
"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 |