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
| 1. install ipfs desktop: https://github.com/ipfs/ipfs-desktop/releases | |
| 2. open ipfs-desktop and visit http://localhost:8080/ipns/3.jetbra.in in browser | |
| 2.1 or http://localhost:8080/ipfs/bafybeih65no5dklpqfe346wyeiak6wzemv5d7z2ya7nssdgwdz4xrmdu6i | |
| 1. use shadon search for 'Location: https://account.jetbrains.com/fls-auth' to find a active server |
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
| <div style="position:absolute;top:-999px;left:-999px"> | |
| <svg | |
| id="effectSvg" | |
| width="200" | |
| height="200" | |
| viewBox="0 0 200 200" | |
| xmlns="http://www.w3.org/2000/svg"> | |
| <filter id="displacementFilter4"> |
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
| REM Delete eval folder with licence key and options.xml which contains a reference to it | |
| for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do ( | |
| for /d %%a in ("%USERPROFILE%\.%%I*") do ( | |
| rd /s /q "%%a/config/eval" | |
| del /q "%%a\config\options\other.xml" | |
| ) | |
| ) | |
| REM Delete registry key and jetbrains folder (not sure if needet but however) | |
| rmdir /s /q "%APPDATA%\JetBrains" |
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.multiprocessing as mp | |
| from absl import app, flags | |
| from torchvision.models import AlexNet | |
| FLAGS = flags.FLAGS | |
| flags.DEFINE_integer("num_processes", 2, "Number of subprocesses to use") |
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 torchtext import data | |
| class DataFrameDataset(data.Dataset): | |
| def __init__(self, df, text_field, label_field, is_test=False, **kwargs): | |
| fields = [('text', text_field), ('label', label_field)] | |
| examples = [] | |
| for i, row in df.iterrows(): | |
| label = row.sentiment if not is_test else None | |
| text = row.text |
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 MaterialApp and other widgets which we can use to quickly create a material app | |
| import 'package:flutter/material.dart'; | |
| // Code written in Dart starts exectuting from the main function. runApp is part of | |
| // Flutter, and requires the component which will be our app's container. In Flutter, | |
| // every component is known as a "widget". | |
| void main() => runApp(new TodoApp()); | |
| // Every component in Flutter is a widget, even the whole app itself | |
| class TodoApp extends StatelessWidget { |
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
| def augment(images, labels, | |
| resize=None, # (width, height) tuple or None | |
| horizontal_flip=False, | |
| vertical_flip=False, | |
| rotate=0, # Maximum rotation angle in degrees | |
| crop_probability=0, # How often we do crops | |
| crop_min_percent=0.6, # Minimum linear dimension of a crop | |
| crop_max_percent=1., # Maximum linear dimension of a crop | |
| mixup=0): # Mixup coeffecient, see https://arxiv.org/abs/1710.09412.pdf | |
| if resize is not None: |
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 cv2 | |
| # Read the images | |
| foreground = cv2.imread("puppets.png") | |
| background = cv2.imread("ocean.png") | |
| alpha = cv2.imread("puppets_alpha.png") | |
| # Convert uint8 to float | |
| foreground = foreground.astype(float) | |
| background = background.astype(float) |
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
NewerOlder