Skip to content

Instantly share code, notes, and snippets.

View ekuinox's full-sized avatar
📛
TOFU ON FIRE

ekuinox ekuinox

📛
TOFU ON FIRE
View GitHub Profile
@ekuinox
ekuinox / create_list.py
Last active March 11, 2023 07:32
Twitter API v2 Scripts
import csv
import yaml
import requests
MAX_FOLLOWING_RESULTS = 1000
def headers(token: str):
return {
'Authorization': f'Bearer {token}'
### Keybase proof
I hereby claim:
* I am ekuinox on github.
* I am lm0x (https://keybase.io/lm0x) on keybase.
* I have a public key ASDtoMY6G2OWe3o5ETUQCFPWsnxtH5ZUs84SZKkRnKUzswo
To claim this, I am signing this object:
@ekuinox
ekuinox / main.rs
Last active July 14, 2022 21:56
twitter-oauth2-rust-example
//! ```cargo
//! [package]
//! name = "twitter-oauth2-rust-example"
//! version = "0.1.0"
//! edition = "2021"
//!
//! # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
//!
//! [dependencies]
//! anyhow = "1.0.58"
@ekuinox
ekuinox / computers.md
Last active February 9, 2022 12:46
うち

うちのコンピュータ類

neofetch,screenfetchをかけてるだけ

メイン

Windows機 これでゲームとかする

PS C:\WINDOWS\system32> neofetch
@ekuinox
ekuinox / main.md
Last active December 11, 2021 10:33
ekuinox的プログラミング言語評2021

この記事は朝活 Advent Calendar 2021の11日目の記事です。


僕なりにこれまで触ってきた言語に対して感じていることなど書こうと思った。

予防線

  • 解像度低めなので、読んでも面白くないと思う。
  • コード例みたいなのが出てくるけど、試してはないからもしかしたら間違っている。
@ekuinox
ekuinox / m5atom_bme280.ino
Last active January 9, 2021 13:56
M5AtomでBME280の気温などを読み取る
#include <BME280I2C.h>
#include <Wire.h>
#define SERIAL_BAUD 115200
#define SCK_PIN (19) // SCL
#define SDI_PIN (22) // SDA
BME280I2C bme;
void setup() {
@ekuinox
ekuinox / atom_led_switch.ino
Last active December 26, 2020 09:30
M5 AtomのLEDをボタンで切り替えるサンプル
#include "M5Atom.h"
#define Pin (19) // G19
void setup() {
Serial.begin(115200);
pinMode(Pin, OUTPUT);
}
void loop() {
#include <Servo.h>
#include <WiFi.h>
#define WIFI_SSID ("")
#define WIFI_PASSWORD ("")
WiFiServer server(80);
std::string header;
@ekuinox
ekuinox / Main.scala
Last active March 8, 2020 16:16
ackcord-ping-pong-sample
import ackcord._
import ackcord.syntax._
object Main extends App {
require(sys.env.contains("BOT_TOKEN"), "export BOT_TOKEN=XXXX")
val token = sys.env("BOT_TOKEN")
val settings = ClientSettings(token)
import settings.executionContext
@ekuinox
ekuinox / main.cpp
Created February 17, 2020 14:11
C++のコンテナクラスでfoldLeftしたかったやつ
#include <cstdint>
#include <iostream>
#include <functional>
#include <vector>
#include <map>
template <typename Container>
class ContainerExtended {
using Iterator = typename Container::const_iterator;
using T = typename Container::value_type;