Skip to content

Instantly share code, notes, and snippets.

View yume-yu's full-sized avatar
🤔

まっつん yume-yu

🤔
View GitHub Profile
@yume-yu
yume-yu / code.py
Created September 29, 2024 05:20
Picoで右クリックbotを作る
import usb_hid
from adafruit_hid.mouse import Mouse
import time
import board
import digitalio
# use GPIO15 as button
# connected as False / disconnected as True
btn1 = digitalio.DigitalInOut(board.GP16)
-- MySQL dump 10.13 Distrib 5.7.40, for Linux (x86_64)
--
-- Host: localhost Database: testlink
-- ------------------------------------------------------
-- Server version 5.7.40
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

Keybase proof

I hereby claim:

  • I am yume-yu on github.
  • I am yume_yu (https://keybase.io/yume_yu) on keybase.
  • I have a public key whose fingerprint is 2947 4857 261E 301D B17E 2A38 223B AB8B 95E5 8197

To claim this, I am signing this object:

@yume-yu
yume-yu / config.toml.sample
Last active November 29, 2021 12:03
Twitter API Quick Start?
[global]
# plese do not change
Tweet_limit = 100
Tweet_id_buffer = 100
[APIkeys]
API_Key = "your apo key"
API_Key_Secret = "your app key secret"

daiko-bot 開発環境構築

from pprint import pprint
import connectgoogle as con
from apiclient.http import MediaFileUpload
gcon = con.ConnectGoogle()
file_metadata = {
"name": "img.jpg",
"mimetype": "image/jpeg",
"parents": ["1WM6yJVBgoqU9azui7d_EhGuFp5KDIjAN"],
from __future__ import print_function
import datetime as dt
import os.path
import pickle
import re
import sys
import googleapiclient.errors as g_errors
from google.auth.transport.requests import Request
import pickle
from pprint import pprint
from googleapiclient.discovery import build
# con = cg.ConnectGoogle()
TOKEN_FILENAME = "token.pickle"
creds = None
with open(TOKEN_FILENAME, "rb") as token:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>EmailAccountDescription</key>
<string>i.softbank.jp</string>
<key>EmailAccountName</key>
@yume-yu
yume-yu / CardStyleView_inGoogleResult.user.js
Last active June 20, 2019 09:40
Card style View in Google result for Tampermonkey
// ==UserScript==
// @name Card style View in Google result
// @namespace https://twitter.com/yume_yu
// @homepage https://github.com/yume-yu/CardStyleView-in-GoogleResult
// @supportURL https://twitter.com/yume_yu
// @version 0.5
// @description This scripts add cardView to your GoogleSearchResult.
// @author @yume_yu
// @match https://www.google.com/search*
// @match https://www.google.co.jp/search*