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.
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| |
#!/usr/bin/env python3 | |
import binascii | |
import sys | |
EAT_HEADERS = ( | |
b'CF-Connecting-IP:', | |
b'CF-IPCountry:', | |
b'CF-RAY:', |
Feature: Real-time websocket streaming # features/streamer.feature:1 | |
Scenario: Receiving recently-created annotations over the websocket # features/streamer.feature:2 | |
Given I am acting as the test user "smokey" # features/steps/api.py:44 | |
And I am listening for notifications on the websocket # features/steps/websocket.py:74 | |
2017-05-16 17:46:50 [DEBUG] client >> Frame(fin=True, opcode=1, data=b'{"value": "b7e94573-9de9-4599-8551-6ae4f4d2be5c", "messageType": "client_id"}') | |
2017-05-16 17:46:50 [DEBUG] client >> Frame(fin=True, opcode=1, data=b'{"filter": {"clauses": [], "match_policy": "include_all", "actions": {"update": true, "delete": true, "create": true}}}') | |
When I create a test annotation # features/steps/api.py:60 | |
Then I should receive a websocket notification within 30s # features/steps/websocket.py:102 | |
waiting up to 29.99999861093238s for a notification |
Feature: Real-time websocket streaming # features/streamer.feature:1 | |
Scenario: Receiving recently-created annotations over the websocket # features/streamer.feature:2 | |
Given I am acting as the test user "smokey" # features/steps/api.py:44 | |
And I am listening for notifications on the websocket # features/steps/websocket.py:75 | |
client >> Frame(fin=True, opcode=1, data=b'{"messageType": "client_id", "value": "c9c9cf10-7f4e-433a-9817-934ac8db6670"}') | |
2017-05-16 17:44:23 [DEBUG] client >> Frame(fin=True, opcode=1, data=b'{"messageType": "client_id", "value": "c9c9cf10-7f4e-433a-9817-934ac8db6670"}') | |
client >> Frame(fin=True, opcode=1, data=b'{"filter": {"clauses": [], "actions": {"create": true, "update": true, "delete": true}, "match_policy": "include_all"}}') | |
2017-05-16 17:44:23 [DEBUG] client >> Frame(fin=True, opcode=1, data=b'{"filter": {"clauses": [], "actions": {"create": true, "update": true, "delete": true}, "match_policy": "include_all"}}') | |
When I create a |