Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| { | |
| "openapi": "3.0.3", | |
| "info": { | |
| "title": "Bmi Screen Event", | |
| "description": "All of events will be there which one is trigger on Bmi Screen ui", | |
| "version": "1.0.0" | |
| }, | |
| "paths": {}, | |
| "tags": [{ | |
| "name": "Event Details" |
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
| curl -L -H 'Accept: application/octet-stream' -H "Authorization: token $TOKEN" 'https://api.github.com/repos/:owner/:repo/releases/assets/:asset_id' --output output.format |
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
| # Need at least Python 3.7 To Run this code | |
| import asyncio | |
| import aiohttp | |
| endpoint = "https://randomuser.me/api/" | |
| num_concurrent_requests = 20 | |
| async def fetch(session, url): | |
| async with session.get(url) as response: |
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 axios = require("axios"); | |
| const endpoint = "https://randomuser.me/api"; | |
| const totalRequests = 20; | |
| (async () => { | |
| let requests = []; | |
| for (let i = 0; i < totalRequests; i++) { | |
| requests.push(axios.get(endpoint)); | |
| } | |
| Promise.all(requests) | |
| .then((responses) => { |
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
| ssh -i key.pem -R remote_open_port:localhost:local_open_port user@domain | |
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 torch | |
| import torch.nn as nn | |
| from torch.autograd import Variable | |
| batch_size = 3 | |
| max_length = 3 | |
| hidden_size = 2 | |
| n_layers =1 | |
| # container |
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
| sudo apt-get install -y python3.8 python3.8-dev | |
| rm -rf /app/tradingbot/venv | |
| cd /app/tradingbot | |
| virtualenv venv --python /usr/bin/python3.8 |
NewerOlder