Compile-time internationalization with runtime language switch and plural/genders support
def flow_disocclusion(flow: np.ndarray) -> (np.ndarray): | |
h, w, _ = flow.shape | |
remap_flow = flow.transpose(2, 0, 1) | |
remap_xy = np.float32(np.mgrid[:h, :w][::-1]) | |
uv_new = (remap_xy + remap_flow).round().astype(np.int32) | |
mask = (uv_new[0] >= 0) & (uv_new[1] >= 0) & (uv_new[0] < w) & (uv_new[1] < h) | |
uv_new_ = uv_new[:, mask] | |
mask_remaped = np.zeros((h, w), np.int8) | |
mask_remaped[uv_new_[1], uv_new_[0]] = 255 | |
return mask_remaped |
Windows Registry Editor Version 5.00 | |
;Reveals the most used hidden power settings in Windows 10. The value Attributes=2 means reveal, where value of 1 or 0 means hide from Power Options. | |
;Good Tweaking! | |
;WLAN | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\19cbb8fa-5279-450e-9fac-8a3d5fedd0c1\12bbebe6-58d6-4636-95bb-3217ef867c1a] | |
"Attributes"=dword:00000002 | |
;Power Scheme Personality | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\245d8541-3943-4422-b025-13a784f679b7] |
import logging | |
import plotly.graph_objects as go | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
from plotly.subplots import make_subplots | |
logger = logging.getLogger(__name__) | |
logging.basicConfig(level=logging.INFO, format="[%(asctime)s] %(message)s", datefmt="%H:%M:%S") |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
import numpy as np | |
from scipy.optimize import linear_sum_assignment | |
from torch.utils.data import DataLoader, TensorDataset | |
class SimpleBoundingBoxPredictor(nn.Module): | |
def __init__(self): |
When I click middle mouse button, and current window name is "Visual Studio Code", instead of middle mouse click do left mouse click and then F12. I am using Fedora.
To achieve this behavior in Fedora, you can use a combination of xdotool and a custom script. Here's a step-by-step guide:
-
Install xdotool: This is a command-line tool that allows you to simulate keyboard and mouse input.
sudo dnf install xdotool
-
Create a script: This script will check the current window name and perform the desired actions.
FOR EDUCATIONAL PURPOSE ONLY, CHANGING IMEI IS ILLEGAL IN MOST COUNTRIES, MAKE SURE YOU CONVINCE YOUR ACTIONS BEFORE DOING THIS.
I DON'T RESPONSIBLE IF YOUR DEVICE IS BROKEN OR THE IMEI IS NOT CHANGED CAUSED BY YOU DIDN'T FOLLOW THE STEPS CAREFULLY OR HAVING A DIFFERENT EFS PARTITION SCHEME.
This guide was tested on Google Pixel 3, different device may also have a different EFS partition scheme, please make sure you adjust it with this guide. Other Google Pixel devices may use this guide without adjusting.
import copy | |
import itertools | |
import torch | |
import torch.nn as nn | |
import torch.optim as optim | |
import torch.nn.functional as F | |
from torch.utils.data import DataLoader, random_split | |
from torchvision import datasets, transforms | |
import plotly.graph_objs as go | |
import plotly.offline as pyo |