- Turing Pi 2
- Pico PSU 160w
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
| # Update appropriately to find your languages long term support release, or latest. | |
| FROM node:20 | |
| # Embrace linux standards. | |
| WORKDIR /usr/src/app | |
| # Embrace layers. Update to appropriate language/framework file(s). | |
| ADD package*.json ./ | |
| # Grab the rest of the local files. |
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
| REQUIRED_CONFIGS=( | |
| CONFIG_BPF | |
| CONFIG_BPF_SYSCALL | |
| CONFIG_NET_CLS_BPF | |
| CONFIG_BPF_JIT | |
| CONFIG_NET_CLS_ACT | |
| CONFIG_NET_SCH_INGRESS | |
| CONFIG_CRYPTO_SHA1 | |
| CONFIG_CRYPTO_USER_API_HASH | |
| CONFIG_CGROUPS |
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
| on: | |
| push: | |
| branches: | |
| - master | |
| name: Git Tag | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| jobs: | |
| check_version: | |
| name: Check Version |
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
| module Instrumentation | |
| DEFAULT_OPERATION = 'method.execution' | |
| def self.trace(operation: DEFAULT_OPERATION, resource:, **options) | |
| options.merge!(resource: resource).compact! | |
| Datadog.tracer.trace(operation, options) do |span| | |
| Datadog::Analytics.set_measured(span) | |
| yield | |
| end | |
| rescue StandardError |
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
| .highlight { | |
| border-radius: 1em 0 1em 0; | |
| background-image: linear-gradient(-100deg, rgba(255,224,0,0.3), rgba(255,224,0,0.7) 95%, rgba(255,224,0,0.1)); | |
| } |
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
| def step(min: 1, comp: 20) | |
| return 0 if min == comp | |
| (1 - (min - comp).abs / (min - comp).to_f) / 2 | |
| end |
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
| name: 'Close stale issues and PR' | |
| on: | |
| schedule: | |
| - cron: '30 1 * * *' | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@v3 |
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 { useState, useLayoutEffect } from "react"; | |
| export const useViewportSize = (debounceTime = 250) => { | |
| const [viewportSize, setViewportSize] = useState({ | |
| width: undefined, | |
| height: undefined | |
| }); | |
| const debounce = (fn, ms) => { | |
| let timer; | |
| return () => { |
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
| const { build } = require('esbuild'); | |
| const manifestPlugin = require('esbuild-plugin-manifest'); | |
| const options = { | |
| entryPoints: ['src/index.js'], | |
| entryNames: '[dir]/[name]-[hash]', | |
| outdir: 'dist', | |
| bundle: true, | |
| minify: true, | |
| plugins: [manifestPlugin()], |

