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
| from enum import Enum | |
| from typing import List | |
| from dataclasses import dataclass, field | |
| class OrderType(Enum): | |
| LIMIT = 1 | |
| STOP = 2 | |
| MARKET = 3 | |
| @dataclass |
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 pyautogui | |
| import time | |
| from datetime import datetime, timedelta | |
| import random | |
| import argparse | |
| import os | |
| def auto_click(duration): | |
| """ | |
| Automatically clicks the mouse at random intervals for a specified duration. |
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 redis | |
| POOL = redis.ConnectionPool(host='localhost', port=6379, db=0, decode_responses=True) | |
| r = redis.Redis(connection_pool=POOL) |
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
| from collections import OrderedDict | |
| import hmac | |
| import time | |
| import hashlib | |
| import requests | |
| from urllib.parse import urlencode | |
| token = "helloworld" | |
| payload = {'ravi': '10', 'rajnish': '9', | |
| 'sanjeev': '15', 'yash': '2', 'suraj': '32'} |
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
| <template> | |
| <div> | |
| <!-- <v-flex v-for="c in conversations" :key="c.id"> | |
| <v-card> | |
| {{c[0].id}} | |
| </v-card> | |
| </v-flex> | |
| <p>token: {{ token }}</p> 0--> | |
| <div class="text-center"></div> | |
| <v-progress-circular |
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
| package ai.certifai.solution.classification; | |
| import org.datavec.api.io.filters.RandomPathFilter; | |
| import org.datavec.api.io.labels.ParentPathLabelGenerator; | |
| import org.datavec.api.split.FileSplit; | |
| import org.datavec.api.split.InputSplit; | |
| import org.datavec.image.loader.BaseImageLoader; | |
| import org.datavec.image.recordreader.ImageRecordReader; | |
| import org.deeplearning4j.core.storage.StatsStorage; | |
| import org.deeplearning4j.datasets.datavec.RecordReaderDataSetIterator; |
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
| package ai.certifai.solution.classification; | |
| import org.datavec.api.io.filters.RandomPathFilter; | |
| import org.datavec.api.io.labels.ParentPathLabelGenerator; | |
| import org.datavec.api.split.FileSplit; | |
| import org.datavec.api.split.InputSplit; | |
| import org.datavec.image.loader.BaseImageLoader; | |
| import org.datavec.image.recordreader.ImageRecordReader; | |
| import org.deeplearning4j.core.storage.StatsStorage; | |
| import org.deeplearning4j.datasets.datavec.RecordReaderDataSetIterator; |
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
| package ai.certifai.solution.datavec.loadimage; | |
| import org.datavec.api.io.filters.BalancedPathFilter; | |
| import org.datavec.api.io.filters.RandomPathFilter; | |
| import org.datavec.api.io.labels.ParentPathLabelGenerator; | |
| import org.datavec.api.split.FileSplit; | |
| import org.datavec.api.split.InputSplit; | |
| import org.datavec.image.loader.BaseImageLoader; | |
| import org.datavec.image.recordreader.ImageRecordReader; | |
| import org.deeplearning4j.datasets.datavec.RecordReaderDataSetIterator; |
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
| #!/bin/bash | |
| # This script will install pytorch, torchvision, torchtext and spacy on nano. | |
| # If you have any of these installed already on your machine, you can skip those. | |
| sudo apt-get -y update | |
| sudo apt-get -y upgrade | |
| #Dependencies | |
| sudo apt-get install python3-setuptools |
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
| package global.skymind.solution.classification.transferlearning; | |
| import global.skymind.solution.classification.DogBreedDataSetIterator; | |
| import org.deeplearning4j.nn.conf.layers.DenseLayer; | |
| import org.deeplearning4j.nn.conf.layers.OutputLayer; | |
| import org.deeplearning4j.nn.graph.ComputationGraph; | |
| import org.deeplearning4j.nn.transferlearning.FineTuneConfiguration; | |
| import org.deeplearning4j.nn.transferlearning.TransferLearning; | |
| import org.deeplearning4j.nn.weights.WeightInit; | |
| import org.deeplearning4j.optimize.listeners.ScoreIterationListener; |
NewerOlder