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 { Write, atomicWrite } from '../../util/atomic-write'; | |
describe('write', () => { | |
const createWrite = (retries: number, shouldSucceed: boolean): Write => { | |
let attempts = 0; | |
return { | |
id: `${shouldSucceed ? 'success' : 'failure'}-${retries}-retries-${Math.floor(Math.random() * 100)}`, | |
perform: jest.fn(() => (shouldSucceed && (attempts += 1) > retries ? Promise.resolve() : Promise.reject())), | |
revert: jest.fn(), |
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 os | |
from argparse import ArgumentParser | |
import torch | |
import torch.nn as nn | |
import torch.utils.data as data | |
import torchvision as tv | |
import torch.nn.functional as F | |
import lightning as L |
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
#! python -m pip install streamlit | |
import lightning as L, torch, torch.nn as nn | |
import requests, time, threading, os | |
from lightning.app.utilities.state import AppState | |
from lightning.app.frontend import StreamlitFrontend | |
class PyTorchComponent(L.LightningWork): | |
def run(self): |
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
#!/bin/sh | |
git clone [email protected]:gridai/lightning-ui.git /tmp/lightning-ui | |
cd /tmp/lightning-ui && yarn install && yarn build | |
cp -r /tmp/lightning-ui/build/* $HOME/work/PyTorchLightning/lightning/lightning/ui |
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
{ | |
"status": "online" | |
} |
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
ENTERPRISE_LOGO_URL: /static/img/quay-horizontal-color.svg | |
FEATURE_MAILING: false | |
FEATURE_SUPER_USERS: true | |
SUPER_USERS: | |
- admin | |
PREFERRED_URL_SCHEME: https | |
REGISTRY_TITLE: Quay | |
REGISTRY_TITLE_SHORT: Quay | |
SERVER_HOSTNAME: quay-app.quay-enterprise |
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
apiVersion: operators.coreos.com/v1alpha1 | |
kind: CatalogSource | |
metadata: | |
name: operatorhubio-catalog | |
labels: | |
olm-visibility: hidden | |
openshift-marketplace: "true" | |
spec: | |
sourceType: grpc | |
image: quay.io/operator-framework/upstream-community-operators:latest |
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
--- | |
kind: Deployment | |
apiVersion: apps/v1 | |
metadata: | |
name: abject-testament | |
labels: | |
secscan.quay.redhat.com/severity: critical | |
spec: | |
replicas: 1 | |
selector: |
Adds scanner and matcher implementations for NodeJS. Utilizes the NodeJS security working group database.
NewerOlder