Skip to content

Instantly share code, notes, and snippets.

View sei0o's full-sized avatar

Seio Inoue sei0o

  • The University of Tokyo (eeic2023)
  • Tokyo, Japan (UTC+9)
  • 04:37 (UTC +09:00)
View GitHub Profile
import socket
import threading
import time
import cv2
from easytello.stats import Stats
class Tello:
def __init__(self, tello_ip: str='192.168.10.1', debug: bool=True):
# Opening local UDP port on 8889 for Tello communication
self.local_ip = ''
@sei0o
sei0o / controller.py
Created November 17, 2020 06:01
CLI-based controllers for Tello
from easytello import tello
import cv2
import numpy as np
import time
# TELLO = False
TELLO = True
STEP = 50
d = tello.Tello()
@sei0o
sei0o / cam.py
Last active October 21, 2020 00:06
Use EasyTello + OpenCV to obtain the video stream from Tello
from easytello import tello
import time
import cv2
# see: https://stackoveflow.com/questions/50916903
d = tello.Tello()
d.takeoff()
d.streamon()
@sei0o
sei0o / mute.rb
Created September 15, 2019 16:04
Mute 'em All
require 'twitter' # $ gem install twitter
# use your app's credentials
client = Twitter::REST::Client.new do |conf|
conf.consumer_key = ""
conf.consumer_secret = ""
conf.access_token = ""
conf.access_token_secret = ""
end
@sei0o
sei0o / ghidra_il2cppdumper_load..py
Created September 10, 2019 16:23
Ghidra scripts to load script.py which IL2CppDumper exported (forked from @worawit's one)
#TODO write a description for this script
#@author
#@category _NEW_
#@keybinding
#@menupath
#@url
#@toolbar
# forked from: https://gist.github.com/worawit/c8788723a667f990ba9aebe9d69f2fc4
# see also: https://github.com/ghidraninja/ghidra_scripts/blob/371da70c6589d6c8a689224bf8069a957e4daf8c/golang_renamer.py
@sei0o
sei0o / keybindings.json
Created August 27, 2019 23:50
VSCode shortcuts
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+k",
"command": "workbench.action.navigateEditorGroups"
},
{
"key": "alt+left",
"command": "workbench.action.navigateBack"
},
sei0o@sei0oarch ~/D/sekigae> cat after_zenki_chukan_2.csv
9, 37, 17, 39, 24, 18
15, 28, 11, 33, 13, 27
0, 26, 31, 16, 40, 3
22, 14, 6, 1, 41, 34
38, 32, 8, 2, 19, 23
30, 29, 10, 35, 20, 21
7, 42, 36, 4, 25, 12
5
sei0o@sei0oarch ~/D/sekigae> sha256sum after_zenki_chukan_2.csv

Keybase proof

I hereby claim:

  • I am sei0o on github.
  • I am sei0o (https://keybase.io/sei0o) on keybase.
  • I have a public key ASA-7Q-FW0ixdvr9Bh0gzHRYolSr68npeggU5H6fNRVOGgo

To claim this, I am signing this object:

@sei0o
sei0o / hhkb.json
Created December 27, 2018 09:30
Assigns Right Alt of HHKB to toggle the input mode (eisuu/kana). Karabiner required. Put the file below in ~/.config/karabiner/assets/complex_modifications .
{
"title": "HHKB sei0o settings",
"rules": [
{
"description": "Set Right Alt key to toggle the input mode",
"manipulators": [
{
"type": "basic",
"description": "hogehoge",
"from": { "key_code": "right_alt" },
@sei0o
sei0o / index.js
Created May 6, 2018 00:30
Kokkai Speed Battle
const puppeteer = require('puppeteer')
const URLs = [
'http://abehiroshi.la.coocan.jp/',
'https://www.jcp.or.jp/',
'https://www.komei.or.jp/',
'https://cdp-japan.jp/',
'https://kibounotou.jp/',
'https://o-ishin.jp/',
'http://www.liberalparty.jp/',
'http://www5.sdp.or.jp/',