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
{axis: [0.0,0.7078125,0.0], w: 0.70781255} | |
{axis: [0.0,-0.70922744,0.0], w: 0.7064004} |
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
#include <iostream> | |
int main() | |
{ | |
char text[] = { 'U', 'N', 'I', 'X' }; | |
uint16_t* p = reinterpret_cast<uint16_t*>(text); | |
for (int i = 0; i < sizeof(text)/sizeof(uint16_t); i++) | |
{ | |
uint16_t a = *p; |
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
# ref: https://sjohannes.wordpress.com/tag/win32/ | |
from __future__ import print_function | |
import ctypes | |
from ctypes import windll | |
import sys | |
Win32 = windll.user32 | |
EnumWindowsProc = ctypes.WINFUNCTYPE(ctypes.c_int, ctypes.POINTER(ctypes.c_int), ctypes.POINTER(ctypes.c_int)) |
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 sys | |
import enum | |
from PySide2 import QtCore | |
from PySide2.QtWidgets import QApplication, QWidget, QMainWindow, QLabel, QPushButton, QVBoxLayout | |
def fibo(): | |
a = 0 | |
b = 1 | |
while True: | |
c = a + b |
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 timeit | |
import itertools | |
from pathlib import Path | |
from dataclasses import dataclass | |
from argparse import ArgumentParser | |
import torch | |
from torch import nn | |
import torchvision | |
import torchvision.transforms as transforms | |
from torch.utils.data import DataLoader |
OlderNewer