Deploy an Azure VM to help Folding@Home
This is an Azure VM template which deploys a GPU-enabled VM of your choice to help the Folding@Home project find ways to combat COVID-19.
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "net" | |
| "github.com/redis/go-redis/v9" | |
| ) |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "net" | |
| "github.com/redis/go-redis/v9" | |
| ) |
| apiVersion: batch/v1 | |
| kind: Job | |
| metadata: | |
| name: testjob | |
| spec: | |
| # Never retry this job. | |
| backoffLimit: 0 | |
| template: | |
| spec: | |
| containers: |
| build: | |
| gpu: false | |
| python_version: "3.11" | |
| predict: "predict.py:Predictor" |
| package main | |
| import ( | |
| "bytes" | |
| "context" | |
| "errors" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "net/http/httptrace" | |
| "time" |
| import argparse | |
| import math | |
| import textwrap | |
| from datetime import timedelta | |
| DURATIONS = {"s": 1, "m": 60, "h": 3600, "d": 86400, "w": 604800} | |
| ERROR_RATES = [ | |
| 0.0001, | |
| 0.0005, | |
| 0.001, |
Deploy an Azure VM to help Folding@Home
This is an Azure VM template which deploys a GPU-enabled VM of your choice to help the Folding@Home project find ways to combat COVID-19.
| import React from "react"; | |
| import PropTypes from "prop-types"; | |
| import { compose } from "redux"; | |
| import { connect } from "react-redux"; | |
| import { isEmpty, populate, withFirebase } from "react-redux-firebase"; | |
| import AppDrawerAuth from "./AppDrawerAuth"; | |
| class AppDrawerAuthContainer extends React.Component { | |
| render() { | |
| const { profile, signOut } = this.props; |
| def responds_to?(method_name) | |
| ->(obj) { obj.respond_to?(method_name) } | |
| end | |
| [ | |
| 1, | |
| "string", | |
| %w{an array}, | |
| {a: 'hash'} | |
| ].each do |object| |