Skip to content

Instantly share code, notes, and snippets.

View llamadayo's full-sized avatar
🥊
🐫 🐑 🐶 🐱 🐰 🐹 🦊 🦁

Mr. Llama llamadayo

🥊
🐫 🐑 🐶 🐱 🐰 🐹 🦊 🦁
  • NCHU, NCTU
  • Taiwan
  • 22:47 (UTC +08:00)
View GitHub Profile
@llamadayo
llamadayo / check ports
Last active March 10, 2024 06:23
check ports (Caused by Hyper-V)
# 檢查被保留的 port
netsh interface ipv4 show excludedportrange protocol=tcp
net stop winnat
net start winnat
@llamadayo
llamadayo / p2a&i
Last active January 7, 2021 07:51
py to a
https://medium.com/@k1992313/python-for-android-%E8%B8%A9%E9%9B%B7%E5%BF%83%E5%BE%97-f07ac9c106ac
#!/usr/bin/env python
# coding: utf-8
# In[1]:
import dronekit
from dronekit import connect
#!/bin/bash
for i in $(seq 7001 9000)
do
curl -o ${i}.jpg https://gallery.twtainan.net/image/${i}/1024x768
done
// Make all batteryType be selectable
/*$("#inBCell > option").each(function() {
this.disabled = false
this.value = this.text;
console.log(this.text + ' ' + this.value);
});
// Make all escType be selectable
let escValue = "";
physical_devices = tf.config.experimental.list_physical_devices('GPU')
assert len(physical_devices) > 0, "Not enough GPU hardware devices available"
tf.config.experimental.set_memory_growth(physical_devices[0], True)
{
"editor.fontSize": 20,
"window.zoomLevel": 2,
"arduino.path":"/home/llama/Downloads/arduino-1.8.9",
"arduino.commandPath": "./arduino"
}