Skip to content

Instantly share code, notes, and snippets.

View eleboss's full-sized avatar

Shijie Lin eleboss

  • The University of Hong Kong
View GitHub Profile
@qin-yu
qin-yu / configure-git.md
Last active May 13, 2024 14:22
Configure Git and setup GitHub on new machine
@Kukanani
Kukanani / generate_checkerboard.py
Last active September 5, 2023 02:19
A script to generate a gazebo checkerboard. I built this while interning at Diligent Robotics in Summer 2018. The company is awesome, check them out at diligentrobots.com!
#!/usr/bin/env python
#
# Copyright (c) Diligent Robotics, 2018
# Copyright (c) Adam Allevato, 2018
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
@marcan
marcan / canon-ef-protocol-notes.md
Last active May 16, 2024 20:47
Canon EF protocol notes

Testing done using a Canon EOS 600D and a Canon EF-S18-55mm f/3.5-5.6 IS II.

Pinout

  1. VBAT
  2. DET (common with P-GND on lens side)
  3. P-GND
  4. VDD
  5. DCL
  6. DLC
@kenzotakahashi
kenzotakahashi / pytorch_gru.py
Last active February 4, 2020 17:35
PyTorch GRU example with a Keras-like interface.
import numpy as np
from sklearn.model_selection import train_test_split
import torch
import torch.nn as nn
from torch.autograd import Variable
np.random.seed(1337)
MAX_LEN = 30