Skip to content

Instantly share code, notes, and snippets.

View changx03's full-sized avatar
🏠
Working from home

Luke Chang changx03

🏠
Working from home
  • The University of Auckland
  • Auckland
  • 11:38 (UTC +12:00)
View GitHub Profile
@changx03
changx03 / requirements.txt
Created May 19, 2024 07:38
A basic requirements file for Kivy 1.11.1 on Python 3.7
Kivy==1.11.1
Kivy-examples==1.11.1
opencv-python==4.9.0.80
@changx03
changx03 / .clang-format
Created May 7, 2024 06:17
Clang-Format for QGroundControl
# Based on Google style
BasedOnStyle: Google
# Set a large limit to avoid line wrapping
ColumnLimit: 0
# Keep include order and style
IncludeBlocks: Preserve
SortIncludes: false
@changx03
changx03 / settings.json
Created May 7, 2024 06:16
VS Code Settings for work
{
"editor.rulers": [
80,
120
],
"cmake.options.statusBarVisibility": "visible",
"cmake.showOptionsMovedNotification": false,
"git.enableSmartCommit": true,
"git.confirmSync": false,
"git.autofetch": true,
@changx03
changx03 / foxglove.md
Created April 4, 2024 04:16
Instruction on running Foxglove V1 and recording ROS2 outputs
@changx03
changx03 / find_and_remove.bash
Created January 24, 2024 03:02
Find then remove
find . -name ".git" -exec rm -rvf {} \;

Create a clone image from a disk

Check device location:

lsblk 
@changx03
changx03 / .clang-format
Last active November 15, 2023 00:03
C++ format based on Microsoft
Language: Cpp
BasedOnStyle: Microsoft
IndentWidth: 4
TabWidth: 4
UseTab: Never
ColumnLimit: 130
SpaceBeforeParens: Never
ReflowComments: true
AllowShortBlocksOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
@changx03
changx03 / latex.gitignore
Created October 5, 2023 10:51
git ignore for LaTex
# Autogenerated LaTeX-related files
*.aux
*.toc
*.log
*.nav
*.vrb
*.snm
*.tuc
# (La)TeX:
# Lists:

Structure of most recent surveys on adversarial attacks and defenses

  • Only included surveys after 2020;
  • Surveys with low H-Index and fewer than 20 pages are excluded;

IEEE Communications Surveys & Tutorials

  • Double column
  • H-Index: 240
  • Country: US
@changx03
changx03 / kge_fb15k_237.py
Created August 21, 2023 01:17
PyTorch Geometric example for FB15K
import argparse
import os.path as osp
import torch
import torch.optim as optim
from torch_geometric.datasets import FB15k_237
from torch_geometric.nn import ComplEx, DistMult, RotatE, TransE
model_map = {